/* VELORA: a couture Didone over one continuous macro film.
   Colours come from the roast: parchment for the green bean, toast at first crack,
   cream for the finished cup, espresso for the ink. */
:root {
  --sc-canvas: #EFEADF;
  --sc-surface: #F6F0E6;
  --sc-ink: #2A1A12;
  --sc-ink-soft: #5B4436;
  --sc-accent: #B87A45;
  --sc-accent-ink: #F6F0E6;
  --sc-font-display: "Bodoni Moda", "Didot", "Bodoni 72", serif;
  --sc-font-text: "Jost", system-ui, sans-serif;
  --sc-font-mono: "Geist Mono", ui-monospace, monospace;

  --parchment: #EFEADF; --cream: #F6F0E6; --toast: #E8D6BD;
  --caramel: #B87A45; --copper: #8E5530; --espresso: #2A1A12; --roast-black: #140C08;
  --ink-2: #4E3A2E;
  --bar-h: 76px;
  color-scheme: light;
}

html { background: var(--parchment); }
body { margin: 0; background: var(--parchment); color: var(--espresso); font-family: var(--sc-font-text); font-weight: 300; -webkit-font-smoothing: antialiased; }
::selection { background: var(--caramel); color: var(--cream); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; }

.skip { position: fixed; left: 16px; top: 12px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--espresso); color: var(--cream); text-decoration: none; font-size: 15px; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* ---------- the logotype: a copper seam through the O ---------- */
.mark, .logotype { font-family: var(--sc-font-display); font-weight: 400; letter-spacing: 0.16em; color: var(--espresso); text-decoration: none; }
.mark .o, .logotype .o { position: relative; display: inline-block; }
.mark .o::after, .logotype .o::after { content: ""; position: absolute; left: 6%; right: 6%; top: 53%; height: 1px; background: var(--caramel); transform: rotate(-14deg); }
.mark { font-size: 21px; margin-right: -0.16em; white-space: nowrap; }

/* ---------- the bar: wordmark, the roast curve, the menu ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  height: var(--bar-h);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px;
  padding: env(safe-area-inset-top, 0px) var(--sc-gutter) 0;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--parchment) 88%, transparent), color-mix(in oklab, var(--parchment) 0%, transparent));
}
.bar__menu {
  justify-self: end;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--espresso) 40%, transparent); background: transparent;
  font: 400 15px/1 var(--sc-font-text); color: var(--espresso); cursor: pointer;
  transition: background-color .3s var(--sc-ease-out), color .3s var(--sc-ease-out), border-color .3s var(--sc-ease-out);
}
@media (hover: hover) { .bar__menu:hover { background: var(--espresso); color: var(--cream); border-color: var(--espresso); } }

.route { position: relative; justify-self: center; width: min(600px, 100%); height: 52px; }
.route__curve { position: absolute; left: 0; right: 0; top: 4px; width: 100%; height: 26px; overflow: visible; }
.route__curve path { fill: none; vector-effect: non-scaling-stroke; }
.route__track { stroke: color-mix(in oklab, var(--espresso) 22%, transparent); stroke-width: 1px; }
.route__done { stroke: var(--caramel); stroke-width: 1.6px; stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.route__now { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); box-shadow: inset 0 0 0 2px var(--caramel); pointer-events: none; will-change: transform; }
.route__now::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--caramel); }
.route__stops { margin: 0; padding: 0; list-style: none; }
.route__stops li { position: absolute; left: 0; top: 0; transform: translate(var(--x, 0), var(--y, 0)); }
.route__stops a {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  display: grid; justify-items: center; gap: 2px; min-width: 44px; min-height: 44px; padding-top: 16px;
  font: 400 12.5px/1 var(--sc-font-text); color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.route__stops a::before { content: ""; position: absolute; top: 18px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--parchment); box-shadow: inset 0 0 0 1px var(--copper); }
.route__stops li.is-past a::before, .route__stops a[aria-current]::before { background: var(--caramel); box-shadow: none; }
.route__stops a { padding-top: 30px; }
.route__stops a[aria-current] { color: var(--espresso); font-weight: 500; }
@media (hover: hover) { .route__stops a:hover { color: var(--espresso); } }

/* ---------- the film ---------- */
/* the light warms through the roast: multiply over the frames, so the ivory seamless turns to toast and the darks hold */
.roastlight { position: absolute; inset: 0; z-index: 140; pointer-events: none; background: radial-gradient(80% 80% at 60% 45%, #E9C79A, #DDB27E); mix-blend-mode: multiply; opacity: calc(var(--roast, 0) * 0.5); }

/* ---------- copy over the film ---------- */
.veil { background: linear-gradient(to right, color-mix(in oklab, var(--cream) 82%, transparent) 0%, color-mix(in oklab, var(--cream) 50%, transparent) 30%, transparent 52%); }
.beat { max-width: min(40rem, 44vw); }
.beat--high { top: calc(var(--bar-h) + clamp(2rem, 9vh, 6rem)); bottom: auto; }
.beat--hero { bottom: clamp(4rem, 16vh, 10rem); }
.display { margin: 0; font-family: var(--sc-font-display); font-weight: 400; font-optical-sizing: auto; letter-spacing: -0.015em; line-height: 0.98; text-wrap: balance; color: var(--espresso); }
.display--xl { font-size: clamp(3.4rem, 1.6rem + 5.6vw, 7.5rem); }
.display--lg { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5.2rem); }
.display--peak { font-size: clamp(3.8rem, 1.6rem + 7vw, 9rem); line-height: 0.92; }
.lede { margin: 22px 0 0; max-width: 34ch; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.25rem); line-height: 1.6; color: var(--ink-2); }
.measure { margin: 0 0 16px; font: 400 12.5px/1.4 var(--sc-font-mono); letter-spacing: 0.02em; color: var(--copper); }

/* ---------- the close: arrival at the cup ---------- */
.finale { left: var(--sc-gutter); top: 50%; bottom: auto; translate: 0 -46%; max-width: min(44rem, 50vw); }
.logotype { margin: 0 -0.16em 0 0; font-size: clamp(3.6rem, 1.2rem + 6.2vw, 8.4rem); line-height: 0.9; white-space: nowrap; }
.tagline { margin: 18px 0 0; font: 400 italic clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem)/1.2 var(--sc-font-display); color: var(--ink-2); }
.notes { max-width: 26rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; margin: 30px 0 0; padding-top: 16px; border-top: 1px solid color-mix(in oklab, var(--espresso) 18%, transparent); }
.notes dt { flex-basis: 100%; margin: 0 0 4px; }
.notes dd { margin: 0; font-size: 18px; color: var(--espresso); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font: 400 16px/1 var(--sc-font-text); cursor: pointer; touch-action: manipulation; transition: background-color .3s var(--sc-ease-out), color .3s var(--sc-ease-out), border-color .3s var(--sc-ease-out); }
.btn--ink { background: var(--espresso); color: var(--cream); border: 1px solid var(--espresso); }
.btn--line { background: transparent; color: var(--espresso); border: 1px solid color-mix(in oklab, var(--espresso) 45%, transparent); }
@media (hover: hover) { .btn--ink:hover { background: var(--copper); border-color: var(--copper); } .btn--line:hover { border-color: var(--espresso); background: color-mix(in oklab, var(--espresso) 6%, transparent); } }
.fine--phone { display: none; }
.fine { margin: 26px 0 0; max-width: 46ch; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }

/* ---------- the menu and the story ---------- */
.sheet { width: min(560px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--cream); color: var(--espresso); box-shadow: -30px 0 60px -30px rgba(20, 12, 8, 0.35); }
.sheet::backdrop { background: rgba(20, 12, 8, 0.32); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .55s var(--sc-ease-out); }
@keyframes sheet-in { from { transform: translateX(40px); opacity: 0; } }
.sheet__in { position: relative; min-height: 100%; padding: calc(env(safe-area-inset-top, 0px) + 84px) clamp(24px, 5vw, 56px) 56px; overflow-y: auto; overscroll-behavior: contain; }
.sheet__close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 20px); right: clamp(16px, 4vw, 40px); min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--espresso) 35%, transparent); background: transparent; font: 400 15px var(--sc-font-text); color: var(--espresso); cursor: pointer; }
.menu { margin: 34px 0 0; padding: 0; list-style: none; }
.menu li { padding: 20px 0; border-top: 1px solid color-mix(in oklab, var(--espresso) 15%, transparent); }
.menu h3 { margin: 0; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.1 var(--sc-font-display); }
.menu p { margin: 6px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.sheet .lede { max-width: 40ch; }

/* ---------- phones ---------- */
@media (max-width: 860px) {
  :root { --bar-h: 64px; }
  .bar { grid-template-columns: auto auto; gap: 12px; }
  .mark { font-size: 18px; }
  .bar__menu { min-height: 40px; padding: 0 18px; font-size: 14px; }
  /* the map moves to the foot of the screen: dots along the curve, the current stop named */
  .route { position: fixed; left: var(--sc-gutter); right: var(--sc-gutter); bottom: calc(env(safe-area-inset-bottom, 0px) + 10px); top: auto; justify-self: stretch; width: auto; height: 46px; z-index: var(--sc-z-chrome); }
  .route__stops a { padding-top: 26px; font-size: 11.5px; color: transparent; }
  .route__stops a[aria-current] { color: var(--espresso); }
  .veil { background: linear-gradient(to top, color-mix(in oklab, var(--cream) 92%, transparent) 0%, color-mix(in oklab, var(--cream) 70%, transparent) 30%, transparent 52%); }
  .beat, .finale { max-width: none; }
  .beat, .beat--hero { bottom: calc(env(safe-area-inset-bottom, 0px) + 92px); top: auto; }
  .beat--high { top: auto; }
  .lede { font-size: 16px; margin-top: 14px; }
  .display--xl { font-size: clamp(2.9rem, 13vw, 4.2rem); }
  .display--lg { font-size: clamp(2.3rem, 10.5vw, 3.4rem); }
  .display--peak { font-size: clamp(3rem, 15vw, 4.6rem); }
  .measure { margin-bottom: 10px; }
  .finale { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); translate: none; }
  .finale .fine { display: none; }
  .finale .fine--phone { display: block; margin-top: 12px; font-size: 12px; }
  .finale .notes { margin-top: 12px; }
  .logotype { font-size: clamp(2.6rem, 13.5vw, 4rem); }
  .tagline { margin-top: 8px; font-size: 1.35rem; }
  .notes { margin-top: 16px; padding-top: 10px; gap: 4px 16px; }
  .notes dd { font-size: 16px; }
  .actions { margin-top: 18px; gap: 10px; }
  .actions .btn { flex: 1 1 100%; min-height: 50px; }
  .fine { margin-top: 14px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open] { animation: none; }
  .route__now { transition: none; }
}
