/* Aguamiel shared styles: brand tokens, base type, and the pieces every page
   reuses (nav, mobile menu, buttons, footer, form, map). Page-specific layout
   stays inline in each page, as on the homepage. */

@font-face {
  font-family: 'ST Slemans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/st-slemans/ST-Slemans-V02.woff2") format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/space-mono/SpaceMono-Regular.woff2") format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-mono/SpaceMono-Bold.woff2") format('woff2');
}
@font-face {
  font-family: 'Homemade Apple';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/homemade-apple/HomemadeApple-Regular.woff2") format('woff2');
}

:root {
  --color-bg: #f5ead8;
  --color-surface: #ebddc5;
  --color-text: #201e1d;
  --color-accent: #c67139;
  --color-accent-2: #7a8a5e;
  --color-divider: color-mix(in srgb, #201e1d 16%, transparent);

  /* Tonal ramps, generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f9f4ed;
  --color-neutral-200: #eee7db;
  --color-neutral-300: #dcd3c4;
  --color-neutral-400: #c0b6a5;
  --color-neutral-500: #a19786;
  --color-neutral-600: #82796a;
  --color-neutral-700: #645c50;
  --color-neutral-800: #474238;
  --color-neutral-900: #2e2b25;

  --color-accent-100: #fff2eb;
  --color-accent-200: #ffe1d0;
  --color-accent-300: #ffc6a5;
  --color-accent-400: #f6a06b;
  --color-accent-500: #d67f48;
  --color-accent-600: #b2622d;
  --color-accent-700: #8c491a;
  --color-accent-800: #643312;
  --color-accent-900: #402310;

  --color-accent-2-100: #f0fae1;
  --color-accent-2-200: #e1eecc;
  --color-accent-2-300: #ccdbb2;
  --color-accent-2-400: #aebf92;
  --color-accent-2-500: #8fa073;
  --color-accent-2-600: #728157;
  --color-accent-2-700: #56633f;
  --color-accent-2-800: #3d472b;
  --color-accent-2-900: #272e1b;

  --font-heading: "ST Slemans", system-ui, sans-serif;
  --font-heading-weight: 400;
  --font-body: "Space Mono", ui-monospace, monospace;
  --font-script: "Homemade Apple", cursive;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2e2b25 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2e2b25 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2e2b25 22%, transparent);

  /* the Vanta fog's own average colours (sampled), so the backdrop it fades in
     over doesn't flash darker on every page load */
  --hero-gradient: radial-gradient(120% 100% at 30% 15%, #bb723d, #ae6735 55%, #a25e2e);
}

/* - page transitions: same-site navigations crossfade. The nav is the same on
   every page and in the same place, so it holds still through the fade - */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* - base - */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--color-bg); }
body {
  color: var(--color-text);
  font-family: var(--font-body), system-ui, sans-serif;
  font-size: 15px; line-height: 1.55; font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 8.8px;
}
p { margin: 0 0 13.2px; }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-600); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--color-bg); color: var(--color-accent-800); padding: 10px 16px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* - pill buttons - */
.am-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  text-decoration: none; border-radius: 999px; font-family: inherit; font-weight: 700;
  cursor: pointer; border: 0; transition: transform .15s ease, background .15s ease, color .15s ease;
}
.am-btn:active { transform: scale(.96); }
.am-btn-light { background: var(--color-bg); color: var(--color-accent-800); padding: 15px 34px; font-size: 17px; }
.am-btn-light:hover { background: #fff; color: var(--color-accent-800); }
.am-btn-ghost { border: 2px solid rgba(255,255,255,.75); color: #fff; padding: 13px 32px; font-size: 17px; }
.am-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.am-btn-accent { background: var(--color-accent); color: #fff; padding: 13px 28px; font-size: 15.5px; }
.am-btn-accent:hover { background: var(--color-accent-600); color: #fff; }
.am-btn-outline {
  border: 2px solid var(--color-accent); color: var(--color-accent-700);
  padding: 9px 18px; font-size: 13.5px;
}
.am-btn-outline:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); color: var(--color-accent-700); }

/* - top nav (sits on the brown hero) - */
.am-nav {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 20px 56px; color: #fff;
}
.am-nav-home { flex: none; display: block; border-radius: 4px; }
.am-nav-home img { width: auto; height: 52px; transition: transform .2s ease; }
.am-nav-home:hover img { transform: rotate(-8deg); }
.am-nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.am-nav-links a { text-decoration: none; color: #fff; }
.am-nav-links a:hover, .am-nav-links a[aria-current="page"] { color: var(--color-accent-200); }
.am-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 10px 6px;
}
.am-burger span { width: 26px; height: 3px; background: #fff; border-radius: 2px; }

/* - full-screen mobile menu - */
.am-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--color-accent-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  padding: 24px; overscroll-behavior: contain;
  animation: am-menu-in .2s ease-out;
}
.am-menu[hidden] { display: none; }
@keyframes am-menu-in { from { opacity: 0; } }
.am-menu-close {
  position: absolute; top: 18px; right: 20px; background: none; border: 0; color: #fff;
  font-size: 36px; line-height: 1; cursor: pointer; padding: 10px 14px;
}
.am-menu a:not(.am-btn) { text-decoration: none; color: #fff; font-family: var(--font-heading); font-size: 34px; }
.am-menu a:not(.am-btn):hover, .am-menu a[aria-current="page"] { color: var(--color-accent-200); }
.am-menu .am-btn { font-size: 18px; }
html.am-menu-open { overflow: hidden; }

/* - footer - */
.am-foot {
  background: var(--color-accent-900); border-top: 1px solid var(--color-accent-800);
  color: var(--color-accent-200); padding: 26px 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; font-size: 13.5px;
}
.am-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.am-foot a { color: inherit; }
.am-foot a:hover { color: #fff; }

/* - lifted cards (lineup, events) - */
.am-lift { transition: transform .3s ease, box-shadow .3s ease; }
.am-lift:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

/* - form - */
/* minmax(0, …): a field wider than its column (iOS date inputs) can't push
   the column, and the form, past the card's edge */
.am-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.am-form .full { grid-column: 1 / -1; }
.field > label, .field > .label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 7px; color: var(--color-neutral-700);
}
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--color-neutral-600); }
.input {
  width: 100%; min-height: 48px; padding: 11px 18px; font: inherit; font-size: 15px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-neutral-100);
  border: 1.5px solid var(--color-divider); border-radius: 999px;
  transition: border-color .15s ease, background .15s ease;
}
.input::placeholder { color: var(--color-neutral-500); }
.input:hover { border-color: color-mix(in srgb, var(--color-text) 40%, transparent); }
.input:focus-visible { border-color: var(--color-accent); background: #fff; outline: 2px solid color-mix(in srgb, var(--color-accent) 35%, transparent); outline-offset: 1px; }
textarea.input { min-height: 140px; border-radius: 24px; resize: vertical; line-height: 1.55; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c491a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.input:user-invalid { border-color: #b3261e; }
/* iOS Safari sizes date inputs to its native control and ignores width: 100% */
input[type="date"].input { -webkit-appearance: none; appearance: none; display: block; min-width: 0; }
input[type="date"].input::-webkit-date-and-time-value { text-align: left; }
.am-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.am-form-status { margin: 0; font-size: 14px; line-height: 1.5; min-height: 1.5em; }
.am-form-status[data-state="ok"] { color: var(--color-accent-2-700); font-weight: 700; }
.am-form-status[data-state="error"] { color: #b3261e; font-weight: 700; }
.am-form button[disabled] { opacity: .6; cursor: progress; }

/* - styled Google map + its no-JS / auth-failure fallback - */
.am-map { position: relative; overflow: hidden; background: var(--color-surface); }
.am-map-canvas { position: absolute; inset: 0; }
.am-map-fallback {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; padding: 24px; text-align: center; text-decoration: none;
  color: var(--color-accent-800);
  background:
    radial-gradient(circle at 50% 46%, var(--color-accent-200) 0 7%, transparent 7.5%),
    repeating-linear-gradient(32deg, transparent 0 46px, var(--color-neutral-100) 46px 51px),
    repeating-linear-gradient(-58deg, transparent 0 70px, var(--color-neutral-100) 70px 74px),
    var(--color-surface);
}
.am-map-fallback strong { font-family: var(--font-heading); font-weight: 400; font-size: 24px; }
.am-map-fallback span { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.am-map.is-live .am-map-fallback { visibility: hidden; }
/* Google's keyless embed (used when the JS API is unavailable), warmed
   towards the brand palette */
.am-map-embed {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: sepia(.35) saturate(.9) hue-rotate(-8deg) contrast(.95) brightness(1.02);
}
/* data-passive: the map is a preview; an invisible link on top opens Google
   Maps, so swipes over it always scroll the page */
.am-map[data-passive].is-live .am-map-fallback { visibility: visible; opacity: 0; z-index: 2; }
.am-pin {
  position: absolute; transform: translate(-50%, -100%); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; text-decoration: none;
}
.am-pin-label {
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--color-accent-700); color: #fff; padding: 7px 14px 7px 7px; border-radius: 999px;
  font-family: var(--font-heading); font-size: 17px; line-height: 1; box-shadow: var(--shadow-md);
}
.am-pin-label img { width: 26px; height: 26px; border-radius: 50%; }
.am-pin-tail { width: 3px; height: 14px; background: var(--color-accent-700); }
.am-pin-dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent-700); border: 2px solid #fff; }
.am-pin-dot::after {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 2px solid var(--color-accent); animation: am-ping 2.2s ease-out infinite;
}
@keyframes am-ping { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 768px) {
  .am-pad { padding-left: 24px !important; padding-right: 24px !important; }
  .am-nav { padding: 16px 24px; }
  .am-nav-home img { height: 44px; }
  .am-nav-links { display: none; }
  .am-burger { display: flex; }
  .am-grid2 { grid-template-columns: 1fr !important; }
  .am-float { width: 110px !important; }
  .am-foot { flex-direction: column; align-items: flex-start; padding: 26px 24px; }
  .am-form { grid-template-columns: minmax(0, 1fr); }
  /* iOS zooms the page into any field under 16px when it's tapped */
  .input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
