/* Augusta concept preview: design system and homepage sections.
   Tokens follow brief section 6.2. Contrast pairs checked against WCAG 2.2 AA (see docs/build-report.md). */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-opsz.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #F3EEE6;
  --paper-2: #EAE3D8;
  --ink: #15110E;
  --ink-muted: #5E5249;
  --roast: #3A2418;
  --cherry: #9C2B23;
  --cherry-light: #E0857A;
  --bean: #8B9A6E;
  --bean-dark: #5F6B48;
  --dusk: #1B2232;
  --dusk-muted: #B9AFA3;
  --rule: rgba(21, 17, 14, .16);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(.84rem, .8rem + .15vw, .92rem);
  --step-0: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  --step-1: clamp(1.25rem, 1.12rem + .55vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.6vw, 3.9rem);
  --step-4: clamp(2.8rem, 1.7rem + 5vw, 6.6rem);

  --gutter: clamp(1rem, 4.5vw, 5rem);
  --maxw: 90rem;
  --space-s: clamp(1rem, .8rem + .8vw, 1.5rem);
  --space-m: clamp(2rem, 1.4rem + 2.4vw, 4rem);
  --space-l: clamp(4rem, 2.6rem + 6vw, 9rem);
  --ribbon-h: 0px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.6; font-weight: 400; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--cherry); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .hero :focus-visible, .site-header.is-over-hero :focus-visible { outline-color: var(--paper); }
h1, h2, h3 { font-family: var(--display); font-weight: 380; line-height: 1.04; letter-spacing: -.015em; margin: 0; font-variation-settings: "opsz" 144; text-wrap: balance; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); font-variation-settings: "opsz" 72; }
p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
em { font-style: italic; }
.visually-hidden { position: absolute !important; 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: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--paper); padding: .75rem 1rem; text-decoration: none; }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.label { font-family: var(--mono); font-size: var(--step--1); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.lede { font-size: var(--step-1); line-height: 1.45; }

/* Buttons: 44 px minimum touch target */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 3rem; padding: .7rem 1.35rem; font: 500 1rem/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; border: 1px solid currentColor; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn--primary { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.btn--primary:hover { background: #7f211b; border-color: #7f211b; }
.btn--ghost { color: inherit; background: transparent; }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: .45em; min-height: 2.75rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; }
.link-arrow:hover .arrow { transform: translateX(3px); }
.link-arrow .arrow { transition: transform .25s var(--ease); }

/* Concept preview ribbon */
.ribbon { position: relative; z-index: 60; background: var(--ink); color: var(--paper); font-size: .875rem; line-height: 1.4; }
.ribbon__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding-block: .35rem; }
.ribbon p { margin: 0; max-width: none; }
.ribbon button { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.75rem; background: none; border: 0; color: inherit; cursor: pointer; font-size: 1.25rem; }
html.ribbon-closed .ribbon { display: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }
.brand { display: flex; align-items: center; min-height: 2.75rem; }
.brand img { width: clamp(10.5rem, 16vw, 13.5rem); height: auto; }
.brand .brand--light { display: none; }
.site-nav ul { display: flex; gap: clamp(1rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-weight: 450; }
.site-nav a:hover { text-decoration: underline; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-cta .btn { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .95rem; }
.menu-toggle { display: none; }
.site-header.is-over-hero { background: transparent; border-color: transparent; color: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-over-hero .brand--dark { display: none; }
.site-header.is-over-hero .brand--light { display: block; }
@media (max-width: 960px) {
  .site-nav { display: none; }
  .header-cta .btn { padding-inline: .9rem; }
}
@media (max-width: 420px) { .header-cta .btn { font-size: .875rem; padding-inline: .75rem; } .brand img { width: 9.5rem; } }

/* Roast curve: the signature line */
.roast-curve { overflow: visible; pointer-events: none; }
.roast-curve path { fill: none; stroke: var(--cherry); stroke-width: 1.5; stroke-linecap: round; }
.roast-curve .dot { fill: var(--cherry); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 175svh; margin-top: calc(-1 * var(--header-h)); background: var(--paper); }
.hero__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.hero__media { position: absolute; inset: 0; background: var(--roast); }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__media video.is-playing { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,17,14,.78) 0%, rgba(21,17,14,.55) 42%, rgba(21,17,14,.12) 75%), linear-gradient(0deg, rgba(21,17,14,.6) 0%, rgba(21,17,14,0) 45%); }
.hero__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 2rem); padding-bottom: clamp(2.5rem, 7svh, 5.5rem); color: var(--paper); }
.hero__eyebrow { margin-bottom: 1.25rem; color: var(--paper); }
.hero h1 { font-size: var(--step-4); max-width: 13ch; font-weight: 360; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { font-weight: 330; }
.hero__sub { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.45; max-width: 40ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin-top: 2rem; }
.hero__status { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; font-size: .95rem; }
.hero__status .pip { width: .55rem; height: .55rem; border-radius: 50%; background: var(--dusk-muted); }
.hero__status.is-open .pip { background: #7FD08B; box-shadow: 0 0 0 4px rgba(127, 208, 139, .22); }
.hero__curve { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 28%; z-index: 3; opacity: 0; }
.hero__caption { position: absolute; z-index: 3; left: var(--gutter); bottom: 2.5svh; color: var(--ink); opacity: 0; margin: 0; max-width: 40ch; }
.hero__caption .label { display: block; color: var(--cherry); margin-bottom: .3rem; }

/* ---------- The whole chain ---------- */
.chain { position: relative; padding-block: var(--space-l) var(--space-m); }
.chain__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-s); align-items: end; }
.chain__head h2 { grid-column: 1 / span 7; }
.chain__head p { grid-column: 8 / span 5; margin: 0; color: var(--ink-muted); }
.houses { list-style: none; margin: var(--space-m) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.house { padding: 1.5rem 1.5rem 0 0; }
.house + .house { padding-left: 1.5rem; border-left: 1px solid var(--rule); }
.house .label { color: var(--cherry); }
.house h3 { font-size: var(--step-1); margin: .8rem 0 .6rem; font-variation-settings: "opsz" 36; font-weight: 450; line-height: 1.2; }
.house p { font-size: 1rem; color: var(--ink-muted); margin: 0; }
.house--sourced .label { color: var(--bean-dark); }
.chain__curve { width: 100%; height: clamp(80px, 12vw, 180px); margin-top: var(--space-m); }
@media (max-width: 860px) {
  .chain__head { display: block; }
  .chain__head p { margin-top: 1rem; }
  .houses { grid-template-columns: 1fr 1fr; }
  .house:nth-child(3) { padding-left: 0; border-left: 0; }
  .house:nth-child(n+3) { margin-top: 1.5rem; border-top: 1px solid var(--rule); }
}
@media (max-width: 520px) {
  .houses { grid-template-columns: 1fr; }
  .house, .house + .house { padding: 1.25rem 0; border-left: 0; margin: 0; }
  .house + .house { border-top: 1px solid var(--rule); }
}

/* ---------- From farm to cup ---------- */
.story { position: relative; background: var(--ink); color: var(--paper); }
.story__intro { padding-block: var(--space-l) var(--space-m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-s); }
.story__intro .label { grid-column: 1 / -1; color: var(--cherry-light); }
.story__intro h2 { grid-column: 1 / span 7; }
.story__intro p { grid-column: 8 / span 5; align-self: end; margin: 0; color: var(--dusk-muted); }
.story__pin { position: relative; height: 380svh; }
.story__stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 1fr); gap: clamp(1.5rem, 3vw, 3.5rem); align-items: center; padding-block: clamp(1rem, 3svh, 2.5rem); }
.story__frame { position: relative; aspect-ratio: 16 / 9; max-height: 100%; width: 100%; background: #0d0b09; overflow: hidden; }
.story__frame canvas, .story__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story__frame img { transition: opacity .6s var(--ease); }
.story__frame .still { opacity: 0; }
.story__frame .still.is-active { opacity: 1; }
.story__frame figcaption { position: absolute; right: .75rem; bottom: .6rem; font-size: .75rem; color: rgba(243, 238, 230, .82); background: rgba(21, 17, 14, .55); padding: .15rem .45rem; }
.stages { list-style: none; margin: 0; padding: 0; position: relative; }
.stages::before { content: ""; position: absolute; left: .55rem; top: .4rem; bottom: .4rem; width: 1px; background: rgba(243, 238, 230, .22); }
.stages .progress { position: absolute; left: .55rem; top: .4rem; width: 1px; height: calc(100% - .8rem); background: var(--cherry-light); transform-origin: top; transform: scaleY(0); }
.stage { position: relative; padding: 0 0 clamp(1rem, 3svh, 2rem) 2.4rem; opacity: .42; transition: opacity .45s var(--ease); }
.stage::before { content: ""; position: absolute; left: .2rem; top: .35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--ink); border: 1px solid rgba(243, 238, 230, .5); transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.stage.is-active { opacity: 1; }
.stage.is-active::before { background: var(--cherry-light); border-color: var(--cherry-light); }
.stage .label { color: var(--cherry-light); }
.stage--sourced .label { color: #B5C49A; }
.stage h3 { font-size: var(--step-1); font-variation-settings: "opsz" 36; font-weight: 450; line-height: 1.2; margin: .35rem 0 .4rem; }
.stage p { font-size: 1rem; color: var(--dusk-muted); margin: 0 0 .3rem; }
.stage a { color: var(--paper); font-size: .95rem; }
.story__outro { padding-block: var(--space-m) var(--space-l); }
.story__outro p { color: var(--dusk-muted); font-size: var(--step-1); max-width: 46ch; }
.story__outro p strong { color: var(--paper); font-weight: 450; }

/* Phones and tablets: four stills that crossfade, no pin longer than one screen */
@media (max-width: 900px) {
  .story__intro { display: block; }
  .story__intro p { margin-top: 1rem; }
  .story__pin { height: auto; }
  .story__stage { position: relative; top: auto; height: auto; display: block; padding-block: 0; }
  .story__frame { position: sticky; top: calc(var(--header-h) + .5rem); z-index: 1; }
  .story__frame canvas { display: none; }
  .stages { padding-top: 1.5rem; }
  .stage { min-height: 24svh; padding-bottom: 1.5rem; }
}

/* ---------- Day to night ---------- */
.daynight { position: relative; background: var(--paper); color: var(--ink); --dn-muted: var(--ink-muted); --dn-accent: var(--cherry); }
.daynight.is-night { color: var(--paper); --dn-muted: var(--dusk-muted); --dn-accent: var(--cherry-light); }
.daynight, .daynight * { transition: color .5s var(--ease); }
.daynight__head { padding-block: var(--space-l) var(--space-m); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-s); align-items: end; }
.daynight__head h2 { grid-column: 1 / span 7; }
.daynight__head p { grid-column: 8 / span 5; margin: 0; color: var(--dn-muted); }
.daynight__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 6rem); padding-bottom: var(--space-l); }
.daynight__media { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.daynight__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.daynight__media .night { opacity: 0; }
.daynight__media figcaption { position: absolute; right: .75rem; bottom: .6rem; z-index: 2; font-size: .75rem; color: rgba(243, 238, 230, .9); background: rgba(21, 17, 14, .55); padding: .15rem .45rem; }
.daynight__media .tag { position: absolute; left: 1rem; top: 1rem; z-index: 2; background: var(--paper); color: var(--ink); padding: .3rem .6rem; }
.daynight__col { display: flex; flex-direction: column; gap: 0; }
.dn-block { padding-block: 0 clamp(4rem, 30svh, 18rem); }
.dn-block:last-child { padding-bottom: 0; }
.dn-block .label { color: var(--dn-accent); }
.dn-block h3 { margin: .6rem 0 1rem; }
.dn-block > p { color: var(--dn-muted); }
.menu-list { list-style: none; margin: 1.5rem 0 1.25rem; padding: 0; border-top: 1px solid currentColor; }
.menu-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .7rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.menu-list .group { font-family: var(--mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--dn-muted); }
.menu-list .price { font-family: var(--mono); font-size: .95rem; white-space: nowrap; }
.dn-hours { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-family: var(--mono); font-size: .9rem; color: var(--dn-muted); }
.daynight .dn-note { font-size: .9rem; color: var(--dn-muted); }
@media (max-width: 900px) {
  .daynight__head { display: block; }
  .daynight__head p { margin-top: 1rem; }
  .daynight__body { display: block; }
  .daynight__media { position: sticky; top: calc(var(--header-h) + .5rem); z-index: 1; margin-bottom: 2rem; aspect-ratio: 16 / 10; }
  .dn-block { padding-bottom: 5rem; }
}

/* ---------- Coming next band (checkpoint 2 only) ---------- */
.next { background: var(--paper-2); padding-block: var(--space-m); }
.next p { margin: 0; color: var(--ink-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: var(--space-l) 2rem; font-size: 1rem; }
.site-footer a { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid h2 { font-size: var(--step-1); font-variation-settings: "opsz" 36; font-weight: 450; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: 0; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.footer-brand img { width: 13rem; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--dusk-muted); }
.hours { width: 100%; max-width: 20rem; border-collapse: collapse; font-family: var(--mono); font-size: .88rem; }
.hours th { text-align: left; font-weight: 400; color: var(--dusk-muted); padding: .2rem 1rem .2rem 0; }
.hours td { padding: .2rem 0; }
.footer-base { margin-top: var(--space-m); padding-top: 1.5rem; border-top: 1px solid rgba(243, 238, 230, .2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .875rem; color: var(--dusk-muted); }
.footer-base p { margin: 0; max-width: none; }
.footer-base .preview-note { color: var(--paper); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Text reveal (clip-path). Only applied when motion is allowed and JS has run. */

/* Reduced motion and no JavaScript: every section reads as a normal static page */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero { height: 100svh; }
  .hero__media video { display: none; }
  .story__pin { height: auto; }
  .story__stage { position: relative; top: auto; height: auto; }
  .stage { opacity: 1; }
  .daynight__media .night { opacity: 0; }
}
html:not(.js) .hero { height: 100svh; }
html:not(.js) .story__pin { height: auto; }
html:not(.js) .story__stage { position: relative; top: auto; height: auto; }
html:not(.js) .stage { opacity: 1; }
html:not(.js) .story__frame .still:first-of-type { opacity: 1; }

/* ---------- Motion details ---------- */
address { font-style: normal; }
.hero__curve path { stroke: var(--cherry-light); stroke-width: 2; }
.story__frame canvas { z-index: 1; }
.story__frame figcaption { z-index: 2; }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.js-motion .hero h1 .line > span { animation: lineUp 1.05s var(--ease) both; }
.js-motion .hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.js-motion .hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.js-motion .hero__eyebrow, .js-motion .hero__sub, .js-motion .hero__actions, .js-motion .hero__status { animation: fadeUp .9s var(--ease) both; animation-delay: .45s; }
.js-motion .hero__actions { animation-delay: .55s; }
.js-motion .hero__status { animation-delay: .65s; }
.js-motion .reveal { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.js-motion .reveal.is-in { clip-path: inset(0 0 0 0); }
html:not(.ribbon-closed) .hero__content { padding-bottom: calc(clamp(2.5rem, 7svh, 5.5rem) + 2.75rem); }
.story__frame figcaption { transition: opacity .4s var(--ease); }
.story__frame figcaption.is-hidden { opacity: 0; }
figure { margin: 0; }
/* Keep the header readable over bright parts of the video */
.hero__scrim::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 28%; background: linear-gradient(180deg, rgba(21, 17, 14, .62) 0%, rgba(21, 17, 14, 0) 100%); }
.story__frame figcaption, .daynight__media figcaption { max-width: calc(100% - 1.5rem); }
.hero__credit { position: absolute; right: .75rem; bottom: .6rem; z-index: 2; margin: 0; font-size: .75rem; color: rgba(243, 238, 230, .85); background: rgba(21, 17, 14, .5); padding: .15rem .45rem; max-width: calc(100% - 1.5rem); }
