:root {
  --p: 0;
  --paper: #f6f5f2;
  --paper-warm: #f6efe5;
  --ink: #15171a;
  --ink-soft: #464a50;
  --ink-quiet: #6a6e74;
  --rule: #dedad3;
  --blue: #0a57d0;
  --blue-deep: #0846ab;
  --head: "Urbanist", "Futura", "Avenir Next", system-ui, sans-serif;
  --text: "Literata", "Iowan Old Style", Georgia, serif;
  --gutter: clamp(16px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  background: color-mix(in oklab, var(--paper), var(--paper-warm) calc(var(--p) * 100%));
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px;
  font-family: var(--head); font-weight: 600; text-decoration: none; z-index: 10;
}
.skip:focus { top: 12px; }

/* Header */
.head {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1320px; margin: 0 auto;
  padding: 22px var(--gutter);
}
.brand img { width: auto; height: 30px; }
.head-cta {
  font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; color: var(--blue);
  padding: 8px 2px; border-bottom: 1.5px solid currentColor;
}
.head-cta:hover { color: var(--blue-deep); }

/* Layout: story on the left, the kitchen on the right */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  column-gap: clamp(32px, 5vw, 88px);
  max-width: 1320px; margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero { grid-column: 1; grid-row: 1; }
.story { grid-column: 1; grid-row: 2; }
.stage-col { grid-column: 2; grid-row: 1 / span 2; }

.stage {
  position: sticky; top: 24px;
  margin: 0;
  min-height: min(calc(100svh - 48px), 900px);
  display: flex; align-items: center; justify-content: center;
}
.scene {
  width: min(100%, calc((100svh - 48px) * 600 / 650), 830px);
  height: auto;
  aspect-ratio: 600 / 650;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 30px 60px -38px rgba(54, 44, 30, .45), 0 2px 6px -2px rgba(54, 44, 30, .12);
}

/* Hero */
.hero {
  min-height: min(calc(100svh - 74px), 860px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0 72px;
}
.eyebrow, .label {
  font-family: var(--head); font-weight: 600;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 22px;
}
.greeting, .close h2 {
  font-family: var(--head);
  font-size: clamp(3.1rem, 6.4vw, 5.9rem);
  line-height: .98; letter-spacing: -.035em;
  margin: 0 0 30px;
}
.g-hey { display: block; font-weight: 600; }
.g-morning { display: block; font-weight: 300; color: var(--ink-soft); white-space: nowrap; }

.lede {
  font-size: clamp(1.2rem, 1.6vw, 1.42rem); line-height: 1.5;
  color: var(--ink-soft); max-width: 30em; margin: 0 0 26px;
}

.nos {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--head); font-weight: 600; font-size: .98rem; color: var(--ink);
}
.nos li { display: flex; align-items: center; gap: 9px; }
.nos li::before {
  content: ""; width: 14px; height: 1.5px; background: var(--blue); border-radius: 1px;
}

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--blue); color: #fff; text-decoration: none;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em;
  padding: 15px 28px; border-radius: 999px;
  box-shadow: 0 10px 24px -14px rgba(10, 87, 208, .9);
  transition: background-color .2s ease, transform .2s ease;
}
.button::after {
  content: ""; width: 7px; height: 7px;
  border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor;
  transform: rotate(45deg); margin-left: 2px;
}
.button:hover { background: var(--blue-deep); transform: translateY(-1px); }
.text-link {
  font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--rule);
  text-decoration-thickness: 1.5px; text-underline-offset: 6px;
  transition: text-decoration-color .2s ease;
}
.text-link:hover { text-decoration-color: var(--blue); }

/* Story */
.story { padding-bottom: clamp(48px, 8vh, 96px); }
.beat {
  padding: clamp(72px, 12vh, 132px) 0;
  border-top: 1px solid var(--rule);
  max-width: 34em;
}
.beat h2 {
  font-family: var(--head); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 3.05rem);
  line-height: 1.05; letter-spacing: -.025em;
  margin: 0 0 22px;
}
.beat p { color: var(--ink-soft); margin: 0 0 16px; }
.beat .label { color: var(--blue); margin-bottom: 18px; }
.beat .where { font-style: normal; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 1rem; margin-top: 26px; }

.roasters {
  list-style: none; padding: 0; margin: 30px 0 0;
  font-family: var(--head); font-weight: 300;
  font-size: clamp(1.9rem, 3vw, 2.6rem); letter-spacing: -.02em; line-height: 1.15;
}
.roasters li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.roasters li:last-child { border-bottom: 0; }
.roasters .more { font-family: var(--text); font-size: 1.15rem; letter-spacing: 0; color: var(--ink-quiet); }

/* Closing */
.close {
  max-width: 1320px; margin: 0 auto;
  padding: clamp(80px, 13vh, 140px) var(--gutter) clamp(96px, 15vh, 160px);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.close h2 { margin-bottom: 22px; }
.close p { color: var(--ink-soft); font-size: 1.25rem; margin: 0 0 34px; }
.close .actions { justify-content: center; }

/* Footer */
.foot {
  max-width: 1320px; margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px 24px;
  font-family: var(--head); font-size: .92rem; color: var(--ink-quiet);
}
.foot-mark { width: 34px; height: auto; opacity: .85; }
.foot p, .foot address { margin: 0; font-style: normal; }
.foot-line { color: var(--ink); font-weight: 600; }
.foot address { grid-column: 2; grid-row: 2; }
.foot address a { color: var(--ink-soft); text-underline-offset: 4px; }
.foot-copy { grid-column: 3; grid-row: 1 / span 2; }

/* The morning: steam drifts and the light warms as the page scrolls */
.scene .steam { transform: translate(calc(var(--p) * 26px), calc(var(--p) * -30px)); }
.scene .s { stroke-dasharray: 170 60; animation: rise 7s linear infinite; }
.scene .s2 { animation-duration: 8.5s; animation-delay: -3s; }
.scene .s3 { animation-duration: 6s; animation-delay: -1.5s; }
.scene .s1, .scene .s2, .scene .s3 { transform-box: fill-box; transform-origin: 50% 100%; }
.scene .s1 { transform: rotate(calc(var(--p) * 7deg)); }
.scene .s2 { transform: rotate(calc(var(--p) * 10deg)) translateX(calc(var(--p) * 6px)); }
.scene .s3 { transform: rotate(calc(var(--p) * 13deg)); }
@keyframes rise { to { stroke-dashoffset: -230; } }

.scene .sky-warm { opacity: var(--p); }
.scene .sun { transform: translateY(calc(34px - var(--p) * 62px)); }
.scene .shafts { opacity: calc(.4 + var(--p) * .55); }
.scene .pool { opacity: calc(.35 + var(--p) * .55); }
.scene .warm { mix-blend-mode: multiply; opacity: calc(var(--p) * .17); pointer-events: none; }

/* Narrow screens: one column, the kitchen after the greeting */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .hero, .story, .stage-col { grid-column: 1; grid-row: auto; }
  .hero { min-height: 0; padding: 36px 0 40px; }
  .stage { position: static; min-height: 0; }
  .scene { height: auto; width: 100%; aspect-ratio: 600 / 650; border-radius: 22px; }
  .beat { padding: 64px 0; }
  .beat:first-child { margin-top: 56px; }
  .story { padding-bottom: 24px; }
  .close { padding: 72px var(--gutter) 88px; }
  .foot { grid-template-columns: auto 1fr; }
  .foot-copy { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 480px) {
  .brand img { height: 26px; }
  .greeting, .close h2 { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .actions { gap: 16px 22px; }
  .foot { grid-template-columns: 1fr; }
  .foot address, .foot-copy { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --p: 0 !important; }
  .scene .s { animation: none; stroke-dasharray: none; }
  .scene .steam, .scene .s1, .scene .s2, .scene .s3 { transform: none; }
  .scene .sun { transform: translateY(34px); }
  .button { transition: none; }
  .button:hover { transform: none; }
}
