/* ============================================================
   WILD GROUND · website styles, brand system v2 (November 2026)
   Taken from the room: plaster walls, navy banquettes, warm oak,
   blue and white tiles. Calm room, wild ground: the wild comes
   from the full stop, the swirl and the four boost colours.
   Type: Young Serif (headings, item names) + DM Sans (everything read)
   ============================================================ */

:root {
  /* core */
  --plaster: #F2ECE1;
  --paper: #FBF8F2;
  --sand: #E6DCCB;
  --line: #DDD3C2;
  --navy: #1F2E4D;
  --navy-deep: #16213A;
  --ink: #1C1A17;
  --muted: #5F5A51;
  /* materials: decorative only, never text */
  --oak: #A87445;
  --tile-blue: #7088AD;
  --brass: #B08D57;
  /* boost colours: the boost bar only */
  --boost-saskatoon: #6A2C5A;
  --boost-haskap: #5653A3;
  --boost-sea-buckthorn: #E08A2C;
  --boost-rosehip: #B8402F;

  --line-light: rgba(242, 236, 225, 0.22);

  --display: "Young Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* type: display-xl 72, display-l 48, heading 32, subheading 24 */
  --display-xl: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  --display-l: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --heading: clamp(1.6rem, 1.3rem + 1.1vw, 2rem);
  --subheading: clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --body-l: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --body: 1rem;
  --caption: 0.875rem;
  --label: 0.75rem;

  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
  --space-7: 96px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --max: 1200px;
  --pad: 28px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--plaster);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.08;
  color: var(--navy);
}
h1 { font-size: var(--display-xl); line-height: 1.04; }
h2 { font-size: var(--display-l); }
h3 { font-size: var(--heading); line-height: 1.15; }

.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
@media (max-width: 600px) { :root { --pad: 20px; } }

.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-6) 0; }
@media (max-width: 760px) { .section { padding: var(--space-6) 0; } }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--navy { background: var(--navy); color: var(--plaster); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--plaster); }

.lede { font-size: var(--body-l); line-height: 1.6; max-width: 38rem; }
.muted { color: var(--muted); }
.section--navy .muted, .section--navy .lede { color: rgba(242, 236, 225, 0.82); }

/* ---------- eyebrow: the logo's descriptor ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--sans);
  font-size: var(--label);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 8px; height: 8px;
  background: currentColor;
  /* the four-point star from the logo's descriptor */
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  flex: none;
}
.eyebrow { padding-right: 0.3em; } /* balance the tracking after the last letter */
.section--navy .eyebrow { color: var(--plaster); }

.label {
  font-size: var(--label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons: square-ish, never pills ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: var(--body);
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 15px 26px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--navy); color: var(--plaster); }
.btn--primary { background: var(--navy); color: var(--plaster); }
.btn--primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.btn--light { background: var(--plaster); color: var(--navy); border-color: var(--plaster); }
.btn--light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn--ghost-light { color: var(--plaster); border-color: rgba(242, 236, 225, 0.6); }
.btn--ghost-light:hover { background: var(--plaster); color: var(--navy); border-color: var(--plaster); }
.btn--small { padding: 10px 18px; font-size: var(--caption); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* small "Beta" tag inside a button */
.beta { display: inline-block; margin-left: 10px; padding: 3px 5px 2px 7px; border: 1px solid currentColor; border-radius: 2px; font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; vertical-align: 0.12em; opacity: 0.85; }
.beta-note { margin: 12px 0 0; font-size: var(--caption); color: var(--muted); max-width: 44ch; }

.text-link { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; }

/* ---------- announcement bar ---------- */
.annc {
  background: var(--navy);
  color: var(--plaster);
  text-align: center;
  font-size: var(--caption);
  padding: 9px var(--pad);
}
.annc a { color: var(--plaster); }

/* ---------- header ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--plaster); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--plaster);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand { display: block; line-height: 0; flex: none; }
.brand img { height: 30px; width: auto; }
@media (max-width: 600px) { .brand img { height: 24px; } }

.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); }
.site-nav a:not(.btn) {
  font-size: var(--body);
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--navy); }
.site-nav .btn { padding: 11px 20px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: transform 0.25s ease, opacity 0.25s ease; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0; top: 0;
    background: var(--plaster);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: 0 var(--pad);
    transform: translateY(-100%); visibility: hidden;
    transition: transform 0.35s ease, visibility 0.35s;
    z-index: -1;
  }
  .site-nav a:not(.btn) { font-family: var(--display); font-weight: 400; font-size: 2rem; }
  .site-nav .btn { margin-top: 10px; }
  .site-nav.open { transform: none; visibility: visible; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* ---------- the swirl ----------
   Cobalt for everyday bands, navy and brass on navy and for occasions.
   js/swirl.js turns any [data-swirl] element into a live surface you can stir;
   without it the image below stays as a still background. */
.swirl-band {
  position: relative;
  height: 96px;
  overflow: hidden;
  background: #A9BBD3 url("../assets/swirl/band-cobalt.jpg") center / cover;
  touch-action: pan-y;
}
.swirl-band--navy { background-color: var(--navy); background-image: url("../assets/swirl/band-navy.jpg"); }
.swirl-band--thin { height: 56px; }
.swirl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.swirl-live { cursor: grab; }
.swirl-live:active { cursor: grabbing; }

/* ---------- photos ---------- */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sand);
  aspect-ratio: 4 / 5;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ph img.is-broken { display: none; }
.ph .shot-note {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font-size: var(--label); letter-spacing: 0.06em; color: var(--muted);
}
.section--sand .ph { background: var(--paper); }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--land { aspect-ratio: 4 / 3; }
.ph--sq { aspect-ratio: 1; }
.ph--tall { aspect-ratio: 3 / 4; }

/* ---------- layout helpers ---------- */
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); } }
.section-head { max-width: 44rem; margin-bottom: var(--space-5); }
.section-head p { margin-top: 1rem; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: var(--space-7) 0 var(--space-6); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lede { margin-top: 1.4rem; }
@media (max-width: 760px) { .page-hero { padding: var(--space-6) 0 var(--space-5); } }

/* ---------- boost dots and cards ---------- */
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 9999px; flex: none; }
.dot--saskatoon { background: var(--boost-saskatoon); }
.dot--haskap { background: var(--boost-haskap); }
.dot--sea-buckthorn { background: var(--boost-sea-buckthorn); }
.dot--rosehip { background: var(--boost-rosehip); }

.boost-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 960px) { .boost-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .boost-cards { grid-template-columns: 1fr; } }
.boost-card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
/* each boost leads with a photo of the berry itself */
.boost-card__ph { aspect-ratio: 4 / 3; margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 6px; border-radius: 0; }
.boost-card__name { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: var(--subheading); color: var(--navy); line-height: 1.2; }
.boost-card .dot { width: 18px; height: 18px; }
.boost-card p { font-size: var(--caption); color: var(--muted); }
.boost-card__price { margin-top: auto; padding-top: 6px; font-size: var(--caption); font-weight: 500; color: var(--ink); }

/* ---------- menu items ---------- */
.mlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-6); }
@media (max-width: 780px) { .mlist { grid-template-columns: 1fr; } }
.mlist--one { grid-template-columns: 1fr; }
.mitem { padding: 14px 0; border-bottom: 1px dotted var(--line); }
.section--sand .mitem { border-bottom-color: #CFC3AE; }
.mitem__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mitem__name { font-family: var(--display); font-size: 1.25rem; line-height: 1.25; color: var(--navy); }
.mitem__price { font-size: var(--caption); font-weight: 500; color: var(--ink); white-space: nowrap; }
.mitem__desc { font-size: var(--caption); color: var(--muted); margin-top: 4px; max-width: 36rem; }
.diet { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: 2px; }
.diet span { font-family: var(--sans); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.section--navy .mitem { border-bottom-color: var(--line-light); }
.section--navy .mitem__name { color: var(--plaster); }
.section--navy .mitem__price { color: var(--plaster); }
.section--navy .mitem__desc, .section--navy .diet span { color: rgba(242, 236, 225, 0.75); }

/* dish cards: photo first */
.dishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5) var(--space-4); }
@media (max-width: 900px) { .dishes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .dishes { grid-template-columns: 1fr; } }
.dish .ph { margin-bottom: 14px; }
.dish .ph img { transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.dish:hover .ph img { transform: scale(1.03); }

/* ---------- forms ---------- */
.nl-form { display: flex; gap: 8px; margin-top: 16px; max-width: 28rem; }
.nl-form input {
  flex: 1; min-width: 0;
  font: inherit; font-size: var(--body);
  padding: 14px 16px;
  border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
}
.nl-form input::placeholder { color: var(--muted); }
.section--navy .nl-form input, .site-foot .nl-form input { background: transparent; border-color: rgba(242, 236, 225, 0.6); color: var(--plaster); }
.section--navy .nl-form input::placeholder, .site-foot .nl-form input::placeholder { color: rgba(242, 236, 225, 0.65); }
.nl-msg { font-size: var(--caption); margin-top: 10px; min-height: 1.2em; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: var(--plaster); }
.site-foot__body { padding-top: var(--space-6); padding-bottom: var(--space-5); }
.site-foot__logo { width: min(320px, 80%); margin-bottom: var(--space-5); }
.site-foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: var(--space-5); }
@media (max-width: 900px) { .site-foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot__grid { grid-template-columns: 1fr; } }
.site-foot h4 { font-family: var(--sans); font-size: var(--label); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--plaster); margin-bottom: 16px; }
.site-foot p, .site-foot li { font-size: var(--caption); color: rgba(242, 236, 225, 0.82); }
.site-foot ul { list-style: none; display: grid; gap: 8px; }
.site-foot a { color: var(--plaster); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  margin-top: var(--space-6); padding-top: var(--space-4);
  border-top: 1px solid var(--line-light);
  font-size: var(--label); letter-spacing: 0.06em; color: rgba(242, 236, 225, 0.7);
}
.site-foot__mono { width: 40px; height: auto; }

/* ---------- motion: gentle fade-in ---------- */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.js .fade.in { opacity: 1; transform: none; }

/* Even line breaks: headings balance their lines, body copy avoids single-word last lines. */
h1, h2, h3, .sf__fact { text-wrap: balance; }
p, li, .lede { text-wrap: pretty; }
