/* Salt Lake Capoeira — design system. Emerald ground, cream ink, one sunflower accent. Everything round. */

/* Tokens: palette, type, radii, timing */
:root {
  --ground: #0E7A4E;
  --shade: #0B6340;
  --cream: #FFF3D6;
  --ink: #0A2B1D;
  --sun: #FFD23F;
  --gourd: #C98A4B;
  --display: 'Bagel Fat One', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --text: 'Alegreya', Georgia, 'Times New Roman', serif;
  --fs-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-small: 1rem;
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  --fs-h2: clamp(2rem, 1.4rem + 3vw, 4rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 5vw, 6rem);
  --fs-ring: 14vw;
  --pill-h: 3rem;
  --r-panel: 3rem;
  --r-full: 999rem;
  --measure: 58ch;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --dock-space: 6.5rem;
  --sway: cubic-bezier(.45, .05, .35, 1.25);
  --settle: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 48rem) { :root { --pill-h: 3.5rem; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-padding-bottom: var(--dock-space); }
body {
  margin: 0; background: var(--ground); color: var(--cream);
  font-family: var(--text); font-size: var(--fs-body); line-height: 1.6;
  padding-bottom: var(--dock-space); overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, ul, ol, address, figure { margin: 0; }
address { font-style: normal; }
:focus-visible { outline: 0.19rem solid var(--sun); outline-offset: 0.19rem; border-radius: 0.5rem; }
::selection { background: var(--sun); color: var(--ink); }

/* Type scale: .h1 .h2 .h3 (or the tags), .lede for the sentence under an h1, .prose for running text */
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; text-wrap: balance; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.15; }
.lede { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem); line-height: 1.5; max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.sun { color: var(--sun); }
.small { font-size: var(--fs-small); }

/* Links: cream text with a soft yellow underline that thickens on hover */
a { color: inherit; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 0.18em; }

/* Skip link */
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--sun); color: var(--ink); padding: 0.75rem 1.25rem; border-radius: var(--r-full); text-decoration: none; }
.skip:focus { top: 1rem; }

/* Layout helpers: .wrap for the 12-column page, .col-text keeps text in a 58ch measure */
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 2.5rem; }
.grid > * { grid-column: 1 / -1; }
.col-text { max-width: var(--measure); }
.breath { height: clamp(4rem, 14vh, 9rem); }

/* Masthead: the name in Bagel Fat One, centred, scrolls away with the page */
.masthead { padding: 1.25rem var(--gutter) 0; text-align: center; }
.masthead__name { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--display); font-size: clamp(1.35rem, 5vw, 5rem); line-height: 1.05; text-wrap: balance; }
.mark { width: 1.75rem; height: 1.75rem; flex: none; }
.mark--top { width: 0.8em; height: 0.8em; }

/* Bottom dock: floating near-black pill, active item on yellow */
.dock {
  position: fixed; z-index: 50; left: 50%; bottom: 1rem; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.25rem;
  background: var(--ink); border-radius: var(--r-full); padding: 0.35rem;
  max-width: calc(100vw - 1.5rem);
}
.dock__home { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: var(--r-full); }
.dock__home[aria-current] { background: var(--shade); }
.dock__list { display: flex; list-style: none; padding: 0; gap: 0.15rem; }
.dock__link, .dock__more {
  display: flex; align-items: center; min-height: 2.9rem; padding: 0 1rem;
  border-radius: var(--r-full); color: var(--cream); text-decoration: none;
  font: 400 1.125rem/1 var(--text); white-space: nowrap; background: none; border: 0; cursor: pointer;
  transition: background-color .25s var(--settle), color .25s var(--settle);
}
.dock__link:hover, .dock__more:hover { background: var(--shade); }
.dock__link[aria-current="page"] { background: var(--sun); color: var(--ink); }
.dock__more { display: none; }
.sheet {
  position: absolute; bottom: calc(100% + 0.5rem); right: 0; width: min(17rem, calc(100vw - 1.5rem));
  background: var(--ink); border-radius: 1.75rem; padding: 0.6rem; display: grid; gap: 0.15rem;
}
.sheet[hidden] { display: none; }
.sheet__link { display: flex; align-items: center; gap: 0.6rem; min-height: 2.9rem; padding: 0 1rem; border-radius: var(--r-full); text-decoration: none; }
.sheet__link:hover { background: var(--shade); }
.sheet__link[aria-current="page"] { background: var(--sun); color: var(--ink); }
@media (min-width: 52rem) { .sheet { display: none !important; } }
@media (max-width: 51.99rem) {
  .dock { left: 0.75rem; right: 0.75rem; transform: none; max-width: none; justify-content: space-between; }
  .dock__home, .dock__li--extra { display: none; }
  .dock__list { flex: 1; justify-content: space-between; }
  .dock__link, .dock__more { padding: 0 0.7rem; font-size: 1rem; }
  .dock__more { display: flex; background: var(--shade); }
  .dock__more[aria-expanded="true"] { background: var(--sun); color: var(--ink); }
}
@media (max-width: 23rem) { .dock__link, .dock__more { padding: 0 0.5rem; font-size: 0.94rem; } }

/* Buttons and price tags: .pill, with .pill--sun (your place), .pill--shade (on ground), .pill--cream, .pill--ink */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: var(--pill-h); padding: 0 1.5em; border: 0; border-radius: var(--r-full);
  font: 400 1.125rem/1.2 var(--text); text-decoration: none; cursor: pointer;
  background: var(--shade); color: var(--cream);
  transition: transform .35s var(--sway), background-color .25s var(--settle);
}
.pill:hover { transform: translateX(0.2rem); }
.pill--sun { background: var(--sun); color: var(--ink); }
.pill--cream { background: var(--cream); color: var(--ink); }
.pill--ink { background: var(--ink); color: var(--cream); }
.pill--price { font-family: var(--display); font-size: 1.25rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 0.2em; cursor: pointer; min-height: 2.75rem; }

/* Content panel: deeper emerald, 48px radius, no outline */
.panel { background: var(--shade); border-radius: var(--r-panel); padding: clamp(1.5rem, 4vw, 3rem); }

/* Page opening: .opening holds .opening__text (h1 + .lede + .pill-row) beside .opening__figure (a ring or round photo) */
.opening { display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 6vh, 4rem) var(--gutter) clamp(2rem, 6vh, 4rem); max-width: 90rem; margin-inline: auto; }
.opening__text { display: grid; gap: 1.25rem; position: relative; z-index: 2; }
.opening__figure { position: relative; z-index: 1; }
@media (min-width: 60rem) {
  .opening { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
  .opening__text { grid-column: 1 / span 6; }
  .opening__figure { grid-column: 7 / -1; margin-right: calc(var(--gutter) * -2); }
}

/* Photographs: .photo with .photo--round (circle) or .photo--stadium; .figure + .caption for captions */
.photo { overflow: hidden; background: var(--shade); box-shadow: 0 0 0 0.35rem var(--gourd); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--round { border-radius: 50%; aspect-ratio: 1; }
.photo--stadium { border-radius: var(--r-full); aspect-ratio: 16 / 9; }
.figure { display: grid; gap: 1rem; }
.caption { font-size: var(--fs-small); font-style: italic; max-width: 40ch; color: var(--cream); }

/* THE DEVICE — open ring: .ring wraps .ring__svg (circle text or dots), .ring__centre, and .ring__seat (the yellow pill in the gap). Rotate with --turn (deg) */
.ring { position: relative; aspect-ratio: 1; width: 100%; max-width: 46rem; margin-inline: auto; display: grid; place-items: center; }
.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform: rotate(var(--turn, 0deg)); transition: transform .9s var(--sway); }
.ring__svg text { font-family: var(--display); fill: var(--cream); }
.ring__track { fill: none; stroke: var(--gourd); stroke-width: 0.25; }
.ring__centre { position: relative; z-index: 2; width: 52%; text-align: center; display: grid; gap: 0.75rem; justify-items: center; }
.ring__seat { position: absolute; z-index: 3; left: 50%; bottom: 3%; transform: translate(-50%, 50%); white-space: nowrap; }
.ring__seat.pill:hover { transform: translate(calc(-50% + 0.2rem), 50%); }

/* Dot ring and dot arc (built by site.js): <div class="dotring" data-dots="12" data-gap="7"></div>, or data-arc="24" on .dot-rule */
.dotring { aspect-ratio: 1; width: 100%; }
.dotring svg, .dot-rule svg { width: 100%; height: 100%; overflow: visible; }
.dotring__dot { fill: var(--cream); transition: fill .4s var(--settle), transform .5s var(--sway); }
.dotring__gap { fill: var(--sun); }
.dotring.is-dim .dotring__dot { fill: var(--shade); }
.dotring.is-lit .dotring__dot { fill: var(--sun); }

/* Divider: a row of small cream dots on a gentle arc — <div class="dot-rule" data-arc="21" aria-hidden="true"></div> */
.dot-rule { height: 2.5rem; width: min(100%, 40rem); margin: clamp(2.5rem, 8vh, 5rem) auto; }

/* Pinned scene: .scene (height via --scene, e.g. 160vh) > .scene__stick; site.js writes --p (0 to 1) on .scene */
.scene { position: relative; height: var(--scene, 160vh); }
.scene__stick { position: sticky; top: 0; min-height: 100vh; display: grid; align-items: center; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .scene { height: auto; } .scene__stick { position: relative; min-height: 0; } }

/* Ginga sway: add .sway to anything that should slide in with the 6px side-to-side settle */
@keyframes ginga { 0% { transform: translateX(-2.5rem); opacity: 0; } 55% { transform: translateX(0.375rem); opacity: 1; } 78% { transform: translateX(-0.375rem); } 100% { transform: none; } }
.sway.is-shown { animation: ginga .9s var(--settle) both; }

/* Reveal on scroll: data-reveal on below-the-fold blocks; site.js adds .is-shown */
.js [data-reveal]:not(.is-shown) { opacity: 0; transform: translateY(1.5rem); }
[data-reveal] { transition: opacity .7s var(--settle), transform .7s var(--settle); }

/* Spec list for product facts: <dl class="specs"><div><dt></dt><dd></dd></div></dl> */
.specs { margin: 0; display: grid; gap: 0.5rem; }
.specs > div { display: grid; grid-template-columns: minmax(7rem, 38%) 1fr; gap: 1rem; padding: 0.75rem 1.25rem; background: var(--shade); border-radius: var(--r-full); }
.specs dt { color: var(--sun); }
.specs dd { margin: 0; }
@media (max-width: 30rem) { .specs > div { grid-template-columns: 1fr; gap: 0; border-radius: 1.5rem; } }

/* Footer: three loose clusters, then the name across the full window, its lower half carried off */
.foot { margin-top: clamp(4rem, 12vh, 8rem); overflow: hidden; }
.foot__details { display: grid; gap: 2rem; padding: 0 var(--gutter) 2.5rem; font-size: var(--fs-small); max-width: 90rem; margin-inline: auto; }
.foot__cluster { display: grid; gap: 0.6rem; align-content: start; }
.foot__links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
.foot__links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot__links--small { opacity: .92; }
.foot__year { opacity: .85; }
@media (min-width: 52rem) {
  .foot__details { grid-template-columns: 1.1fr 1fr 1.2fr; column-gap: 4rem; }
  .foot__cluster:nth-child(2) { padding-top: 3rem; }
  .foot__cluster:nth-child(3) { padding-top: 1rem; }
}
.foot__giant { width: 100vw; margin-bottom: calc(var(--dock-space) * -1); }
.foot__giant svg { width: 100%; height: auto; }
.foot__giant text { font-family: var(--display); font-size: 160px; fill: var(--cream); }

/* Consent banner: small cream-on-ink slip above the dock, left side, never covering the page */
.consent {
  position: fixed; z-index: 45; left: 0.75rem; right: 0.75rem; bottom: 5.25rem;
  background: var(--ink); color: var(--cream); border-radius: 1.75rem;
  padding: 1rem 1.25rem; display: grid; gap: 0.75rem; font-size: var(--fs-small); line-height: 1.45;
}
.consent[hidden] { display: none; }
.consent__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.consent .pill { min-height: 2.75rem; padding: 0 1rem; font-size: 1rem; }
@media (min-width: 52rem) { .consent { right: auto; width: 24rem; } }

/* Offer: a sunflower ticket that sways down from the top edge */
.promo {
  position: fixed; z-index: 40; top: 0.75rem; left: 50%;
  width: min(36rem, calc(100vw - 1.5rem));
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--sun); color: var(--ink); border-radius: 1.75rem;
  padding: 0.6rem 0.6rem 0.6rem 1.1rem; font-size: var(--fs-small); line-height: 1.4;
  opacity: 0; transform: translate(-50%, -140%) rotate(-2deg);
  transition: transform .9s var(--sway), opacity .4s var(--settle);
}
.promo.is-in { opacity: 1; transform: translate(-50%, 0) rotate(0); }
.promo[hidden] { display: none; }
.promo p { flex: 1; }
.promo a { text-decoration-color: var(--ink); font-weight: 400; }
.promo__mark { width: 1.6rem; height: 1.6rem; flex: none; background: var(--ink); border-radius: 50%; padding: 0.15rem; }
.promo__x { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer; }

/* Reduced motion: everything arrives already in place */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal]:not(.is-shown) { opacity: 1; transform: none; }
}

/* A page never scrolls sideways. */
html, body { overflow-x: clip; }
/* Past a full-HD window the whole page grows with the window - type, gaps and pictures
   together - so a very wide screen (or a page zoomed far out) shows the same composition,
   not a small column of text lost in an enormous picture. */
@media (min-width: 1921px) { html { font-size: calc(100vw / 120); } }
/* What can be pressed in the chrome lies above the page: a huge headline's line box reaching
   into the navigation must not swallow the clicks meant for the links. */
header a, header button, nav a, nav button { position: relative; z-index: 2; }
