/* Loopweek home, "Golden Hour": limestone, ink, one sodium-gold accent, dusk for the calendar and photos.
   Bodoni Moda for moments, Jost for facts. Same tokens as the app (projects/weekline/v2/app.css).
   Physical padding and margin properties throughout, so every inset is easy to audit. */
:root {
  --paper: #F4EEE5;
  --paper-2: #EAE1D3;
  --ink: #16120E;
  --ink-2: #5E554B;
  --rule: rgba(22, 18, 14, .14);
  --rule-2: rgba(22, 18, 14, .26);
  --sun: #EFA937;
  --sun-deep: #B87414;
  --dusk: #1A1511;
  --on-dusk: #EFE6DA;
  --on-dusk-2: #B3A694;
  --rule-d: rgba(239, 230, 218, .14);
  --rule-d2: rgba(239, 230, 218, .3);
  --serif: "Bodoni Moda", Didot, "Bodoni 72", serif;
  --sans: "Jost", Futura, "Avenir Next", sans-serif;
  --gutter: 20px;
  --max: 1160px;
  --focus: var(--ink);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--dusk); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* The canvas is dusk. Every light section sets its own limestone, so text over a photo never falls back to a light page. */
body {
  margin: 0; background: var(--dusk); color: var(--ink);
  font: 400 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; font-style: normal; letter-spacing: -.022em; line-height: 1.02; text-wrap: balance; }
em { font-style: italic; }
h1 em, h2 em, h3 em { font-style: normal; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.sprite { position: absolute; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 20; background: var(--paper); color: var(--ink); padding: 14px 18px; border-radius: 2px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* type scale: 42 / 33 / 26 / 17 px at 375, 78 / 54 / 40 / 17 px at 1280. Each level is at least 1.25x the next. */
h2 { font-size: clamp(2.0625rem, 1.52rem + 2.3vw, 3.4rem); }
h3 { font-size: clamp(1.625rem, 1.27rem + 1.5vw, 2.5rem); line-height: 1.05; }
.lede { font-size: 18px; line-height: 1.4; }
.fine { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.credit { font-size: 12px; line-height: 1.4; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* the wordmark and its gold dot */
.wm { font: 400 26px/1 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.wm i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-left: 3px; vertical-align: .12em; }

/* a plain label for anything that is an example, not a listing */
.ex { display: inline-block; font: 400 12px/1 var(--sans); letter-spacing: .01em; padding: 6px 9px; border: 1px solid currentColor; border-radius: 2px; margin-right: 8px; vertical-align: 1px; white-space: nowrap; }

/* buttons */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 52px; padding: 10px 22px; border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  font: 500 17px/1.2 var(--sans); letter-spacing: .01em; text-align: center; text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.btn small { font-size: 13px; font-weight: 400; letter-spacing: 0; color: rgba(22, 18, 14, .84); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.sun:hover { background: #F4B850; }
.btn.line { background: transparent; border-color: var(--rule-2); color: var(--ink); }
.btn.line:hover { border-color: var(--ink); }

/* text over a photo sits in a scrim: clear at the top, at least 78% dusk where the words start */
.scrim { width: 100%; padding-top: 96px; background: linear-gradient(180deg, rgba(26, 21, 17, 0) 0, rgba(26, 21, 17, .78) 76px, rgba(26, 21, 17, .93) 140px, rgba(26, 21, 17, .96) 100%); }

/* ---------- top bar, over the hero photo ---------- */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; color: #fff; --focus: #fff; }
.top-in { display: flex; justify-content: space-between; align-items: center; padding-top: max(10px, env(safe-area-inset-top)); }
.top .wm { padding: 9px 0; }
.top-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; text-decoration-color: rgba(255, 255, 255, .55); }
.top-link:hover { text-decoration-color: #fff; }

/* ---------- 1. hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  min-height: max(calc(100vh - 48px), 700px); min-height: max(calc(100svh - 48px), 700px);
  padding-top: 72px; background-color: #1A1511; color: #fff; --focus: #fff;
}
.hero-photo {
  position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 72%; object-fit: cover; object-position: 12% 50%;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}
/* keeps the wordmark and the top link readable over the sky */
.hero-shade { position: absolute; top: 0; left: 0; right: 0; z-index: -1; height: 112px; background: linear-gradient(180deg, rgba(26, 21, 17, .84) 0, rgba(26, 21, 17, .84) 56px, rgba(26, 21, 17, 0) 100%); }
.hero-in { padding-bottom: 20px; }
.hero h1 { font-size: clamp(2.625rem, 1.69rem + 4vw, 4.9rem); line-height: .99; letter-spacing: -.028em; max-width: 10.4em; }
.hero h1 em { color: var(--sun); }
.hero .lede { margin-top: 16px; max-width: 34ch; color: rgba(255, 255, 255, .95); }
.hero-btn { width: 100%; margin-top: 22px; }
.hero .credit { margin-top: 14px; color: rgba(255, 255, 255, .88); }

/* ---------- 2. goal picker ---------- */
.pick { background: var(--paper); border-bottom: 1px solid var(--rule); }
.pick-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 28px; padding-bottom: 32px; }
.pick-hint { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip {
  position: relative; display: flex; align-items: center; min-height: 52px; padding: 10px 30px 10px 16px;
  border: 1px solid var(--rule-2); border-radius: 2px; background: transparent; cursor: pointer;
  font: 400 15px/1.15 var(--sans); text-align: left; transition: background-color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip .ck { position: absolute; right: 8px; top: 50%; margin-top: -9px; opacity: 0; }
.chip[aria-pressed="true"] { background: var(--sun); border-color: var(--sun); font-weight: 500; }
.chip[aria-pressed="true"] .ck { opacity: 1; }
.chip[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.chip[aria-disabled="true"]:hover { border-color: var(--rule-2); }
.pick-go { display: grid; gap: 10px; }
.pick-go .btn, .last-go .btn { min-height: 62px; }

/* ---------- 3. the loop, on dusk ---------- */
.loop { background: var(--dusk); color: var(--on-dusk); padding: 60px 0 28px; --focus: #fff; }
.loop h2 { margin-bottom: 36px; }
.beat { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 22px; padding: 36px 0; border-top: 1px solid var(--rule-d); }
.beat-t p { margin-top: 10px; max-width: 36ch; color: var(--on-dusk-2); }
.loop figcaption { font-size: 13px; color: var(--on-dusk-2); }

/* example answers */
.slip { max-width: 480px; background: var(--paper); color: var(--ink); border-radius: 2px; padding: 18px 20px 6px; --focus: var(--ink); }
.slip figcaption { color: var(--ink-2); padding-bottom: 14px; }
.slip .r { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-top: 1px solid var(--rule); }
.slip dt { font-size: 15px; color: var(--ink-2); flex: none; }
.slip dd { font-size: 16px; text-align: right; }
.slip .g dt { font: 400 21px/1.1 var(--serif); letter-spacing: -.015em; color: var(--ink); }

/* the week: time down the left, days across. Blocks sit tight to the grid lines, as they do in the app. */
.wk { display: flex; flex-direction: column; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); min-width: 0; }
.wk-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 var(--gutter) 16px; }
.cal { --hr: 36px; --gut: 44px; --gap-h: 24px; --rows: 7; border-top: 1px solid var(--rule-d2); }
.cal-hd { display: grid; grid-template-columns: var(--gut) repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--rule-d2); }
.dh { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; border-left: 1px solid var(--rule-d); font-size: 12px; line-height: 1; color: var(--on-dusk-2); }
.dh b { font: 400 19px/1 var(--serif); color: var(--on-dusk); }
.cal-body { display: grid; grid-template-columns: var(--gut) minmax(0, 1fr); padding-top: 11px; padding-bottom: 10px; }
.gut, .cols { position: relative; height: calc(var(--rows) * var(--hr) + var(--gap-h)); }
.gut span, .gut .ss, .ln, .sunline, .blk, .notfree { position: absolute; top: calc(var(--r) * var(--hr) + var(--g, 1) * var(--gap-h)); }
.gut span { right: 7px; transform: translateY(-50%); font-size: 12px; line-height: 1; color: var(--on-dusk-2); white-space: nowrap; }
.gut .ss { right: -4px; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--sun); z-index: 3; }
.cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); }
.col { position: relative; border-left: 1px solid var(--rule-d); }
.ln { left: 0; right: 0; border-top: 1px solid var(--rule-d); }
.sunline { left: 0; right: 0; border-top: 1px dashed rgba(239, 169, 55, .6); }
.gapband { position: absolute; left: 0; right: 0; top: calc(2 * var(--hr)); height: var(--gap-h); z-index: 1; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); background: #221B15; font-style: normal; }
.gapband span { font-size: 12px; line-height: 1; color: var(--on-dusk-2); letter-spacing: .03em; }
.blk {
  left: 2px; right: 2px; z-index: 2; height: calc(var(--d) * var(--hr) - 3px); margin-top: 1px; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px; padding: 4px 4px 3px; border-radius: 2px; font-size: 11px; line-height: 1.16;
}
.blk b { font-weight: 500; overflow-wrap: anywhere; }
.blk .bt { white-space: nowrap; opacity: .82; }
.blk .w { display: none; }
.blk.own { background: var(--on-dusk); color: var(--ink); }
/* proposed = dashed gold. approved = solid gold. */
.blk.prop { background: rgba(239, 169, 55, .15); color: var(--on-dusk); }
.blk.prop::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 1.5px dashed var(--sun); border-radius: 2px; }
.wk[data-state="approved"] .blk.prop { background: var(--sun); color: var(--ink); }
.wk[data-state="approved"] .blk.prop::after { opacity: 0; }
.wk[data-state="approved"] .blk.prop, .wk[data-state="approved"] .blk.prop::after {
  transition: background-color .45s ease, color .45s ease, opacity .3s ease; transition-delay: calc(var(--i) * 80ms + 60ms);
}
.notfree {
  left: 2px; right: 2px; height: calc(var(--d) * var(--hr) - 3px); margin-top: 1px; border-radius: 2px; padding: 6px 3px 0;
  display: flex; justify-content: center; text-align: center; font-size: 11px; line-height: 1.16; color: var(--on-dusk-2);
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(239, 230, 218, .1) 5px 6px);
}
/* the one motion on the page: sunlight crossing the week when you approve it */
.sweep { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 5; overflow: hidden; pointer-events: none; }
.sweep::before {
  content: ""; position: absolute; top: -45%; bottom: -45%; left: 0; width: 46%; opacity: 0;
  background: linear-gradient(90deg, rgba(239, 169, 55, 0), rgba(255, 196, 96, .5) 50%, rgba(239, 169, 55, 0));
  mix-blend-mode: screen; transform: translateX(-150%) rotate(24deg);
}
.wk.lit .sweep::before { animation: sweep 1.5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes sweep {
  from { opacity: 1; transform: translateX(-150%) rotate(24deg); }
  to { opacity: 1; transform: translateX(340%) rotate(24deg); }
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px var(--gutter) 0; font-size: 13px; line-height: 1; color: var(--on-dusk-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.sw-prop, .sw-ok, .sw-own, .sw-busy { display: inline-block; width: 13px; height: 13px; border-radius: 2px; flex: none; }
.sw-prop { background: rgba(239, 169, 55, .15); border: 1.5px dashed var(--sun-deep); }
.loop .legend .sw-prop { border-color: var(--sun); }
.sw-ok { background: var(--sun); }
.sw-own { background: var(--on-dusk); }
.sw-busy { background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(239, 230, 218, .32) 3px 4px); box-shadow: inset 0 0 0 1px var(--rule-d); }
.sw-sun { display: inline-block; width: 15px; border-top: 1px dashed var(--sun); }

.b23 { row-gap: 0; }
.b23 .wk { margin-top: 22px; }
.b23 .t3 { margin-top: 36px; padding-top: 36px; border-top: 1px solid var(--rule-d); }

/* the approve bar */
.okbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 16px 16px 16px 20px; background: var(--paper); color: var(--ink); border-radius: 2px; --focus: var(--ink); }
.okbar p { font-size: 15px; line-height: 1.25; }
.okbar b { font-weight: 500; }
.okbar small { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.okbar .btn { flex-direction: row; gap: 7px; flex: none; padding-left: 16px; padding-right: 16px; font-size: 16px; }
.okbar .btn.line .ic { display: none; }

/* one pick, opened */
.why { margin-top: 24px; }
.why-card { background: var(--paper); color: var(--ink); border-radius: 2px; padding: 20px; }
.why-k { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.why-k > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.why-k .ex { margin-right: 0; }
.why-title { font: 400 clamp(1.5rem, 1.3rem + .85vw, 1.875rem)/1.04 var(--serif); letter-spacing: -.022em; margin-top: 12px; }
.why-m { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.why-list { margin-top: 16px; border-top: 1px solid var(--rule); }
.why-list li { display: flex; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.3; }
.why-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sun-deep); flex: none; }
.why-acts, .inv-btns { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; margin-top: 16px; }
.fb { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 2px; font-size: 15px; font-weight: 500; }
.fb.sun { background: var(--sun); }
.fb.line { border: 1px solid var(--rule-2); }
.why-over { font: italic 400 20px/1.25 var(--serif); margin-top: 24px; padding-bottom: 14px; }
.alt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 0; border-top: 1px solid var(--rule); }
.alt .tt { font-size: 15px; font-weight: 500; line-height: 1.25; }
.alt .mm { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.swap { font-size: 13px; line-height: 1; padding: 10px 14px; border: 1px solid var(--rule-2); border-radius: 2px; white-space: nowrap; }
.why-src { font-size: 13px; color: var(--ink-2); padding-top: 16px; border-top: 1px solid var(--rule); }
.why figcaption { margin-top: 12px; }

/* the year so far */
.yr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.yr-n b { display: block; font: 400 clamp(6rem, 4.6rem + 6vw, 9.5rem)/.82 var(--serif); letter-spacing: -.04em; color: var(--sun); }
.yr-n span { display: block; margin-top: 10px; font: italic 400 24px/1 var(--serif); }
.yr-bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 5px; align-items: end; height: 132px; }
.yb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.yb span, .yb small { font-size: 12px; line-height: 1; color: var(--on-dusk-2); min-height: 12px; }
.yb i { display: block; width: 100%; height: calc(var(--h, 0) * var(--u, 13px)); min-height: 3px; border-radius: 1px; background: rgba(244, 238, 229, .86); }
.yb.peak i { background: var(--sun); }
.yb.peak span { color: var(--on-dusk); }
.yb.later i { background: rgba(244, 238, 229, .3); }

/* ---------- 4. the rule ---------- */
.rule-sec { background: var(--paper); padding: 64px 0 68px; }
.rule-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.rule { counter-reset: rule; border-top: 1px solid var(--ink); }
.rule li {
  counter-increment: rule; display: grid; grid-template-columns: 1.7em minmax(0, 1fr); align-items: baseline; padding: 16px 0 17px; border-bottom: 1px solid var(--rule);
  font: 400 clamp(1.3rem, 1.05rem + 1.05vw, 1.8rem)/1.22 var(--serif); letter-spacing: -.015em; text-wrap: balance;
}
.rule li::before { content: counter(rule); font-style: italic; color: var(--ink-2); }

/* ---------- 5. bring someone ---------- */
.bring { background: var(--paper); }
.bring-photo { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 520px; background-color: #1A1511; color: #fff; --focus: #fff; }
.bring-photo > img, .inv-photo > img, .ypage-photo > img { position: absolute; top: 0; left: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.bring-photo > img { object-position: 62% 30%; }
.bring-t { padding-bottom: 22px; }
.bring-t .lede { margin-top: 12px; max-width: 34ch; color: rgba(255, 255, 255, .95); }
.bring-t .credit { margin-top: 14px; color: rgba(255, 255, 255, .88); }
.bring-v { padding-top: 26px; padding-bottom: 60px; }
.inv { max-width: 400px; }
.inv-msg { max-width: 330px; margin: 0 0 10px auto; padding: 14px 16px; background: var(--paper-2); border-radius: 2px; }
.inv-msg-k { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; }
.inv-msg-t { font-size: 15px; line-height: 1.35; }
.lnk { display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lnk .ic { width: 15px; height: 15px; }
.inv-page { background: var(--paper); border: 1px solid var(--rule-2); border-radius: 2px; overflow: hidden; }
.inv-photo, .ypage-photo { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; background-color: #1A1511; color: #fff; }
.inv-photo { min-height: 264px; }
.inv-photo > img { object-position: 50% 60%; }
.inv-photo .scrim, .ypage-photo .scrim { padding: 56px 20px 18px; background: linear-gradient(180deg, rgba(26, 21, 17, 0) 0, rgba(26, 21, 17, .82) 48px, rgba(26, 21, 17, .94) 100%); }
/* labels on a photo get their own solid dusk */
.inv-from { display: flex; justify-content: space-between; gap: 8px; padding: 16px 16px 0; font-size: 13px; line-height: 1; }
.inv-from span, .ypage-tag .ex { background-color: #1A1511; border: 0; padding: 7px 10px; border-radius: 2px; }
.inv-title { font: 400 clamp(1.625rem, 1.45rem + .75vw, 2rem)/1 var(--serif); letter-spacing: -.022em; }
.inv-when { font-size: 14px; margin-top: 8px; color: rgba(255, 255, 255, .95); }
.inv-who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.inv-who .names { font-size: 14px; }
.inv-who .cnt { text-align: right; font: 400 30px/.9 var(--serif); }
.inv-who .cnt small { display: block; font: 400 12px/1.3 var(--sans); color: var(--ink-2); }
.inv-form { display: grid; gap: 7px; padding: 12px 20px 0; }
.inv-lbl { font-size: 14px; color: var(--ink-2); }
.inv-inp { display: block; height: 46px; border: 1px solid var(--rule-2); border-radius: 2px; background: #fff; }
.inv-btns { margin-top: 5px; }
.inv-safe { display: flex; align-items: center; gap: 8px; padding: 16px 20px 20px; font-size: 13px; color: var(--ink-2); }
.inv figcaption, .ypage figcaption { font-size: 13px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; }

/* ---------- 6. your year ---------- */
.year-sec { background: var(--paper-2); padding: 60px 0 64px; }
.year-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.year-t .lede { margin-top: 14px; max-width: 34ch; color: var(--ink-2); }
.ypage-photo { aspect-ratio: 16 / 10; border-radius: 2px 2px 0 0; }
.ypage-photo > img { object-position: 62% 40%; }
.ypage-tag { text-align: right; padding: 16px 16px 0; line-height: 1; }
.ypage-tag .ex { margin-right: 0; }
.ytitle { font: 400 clamp(1.9rem, 1.5rem + 1.75vw, 2.9rem)/.95 var(--serif); letter-spacing: -.03em; }
.ylist { background: var(--paper); padding: 4px 20px 8px; border-radius: 0 0 2px 2px; }
.ylist-h, .ymonth { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ylist-h { padding: 18px 0 14px; border-bottom: 1px solid var(--ink); font: 400 22px/1.1 var(--serif); letter-spacing: -.015em; }
.ylist-h small, .ymonth small { font: 400 13px/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.ymonth { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ymonth:last-child { border-bottom: 0; }
.ymonth b { font: 400 20px/1 var(--serif); }
.ymonth.open b { font-style: italic; }
.yrow { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.3; }
.yrow b { font: 400 16px/1 var(--serif); }
.yrow small { display: block; font-size: 13px; color: var(--ink-2); }
.lv { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); outline: 1px solid var(--sun-deep); margin: 0 5px 0 6px; vertical-align: .12em; }
.lv-t { font-size: 13px; color: var(--ink-2); }

/* ---------- last step and footer, back on dusk ---------- */
.last, .foot { background: var(--dusk); color: var(--on-dusk); --focus: #fff; }
.last { padding: 60px 0 44px; }
.last-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.last-go { display: grid; gap: 10px; }
.last .fine { color: var(--on-dusk-2); }
.foot { padding-bottom: 36px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 26px; padding: 10px 0; border-top: 1px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); }
.foot-nav a { display: inline-flex; align-items: center; min-height: 48px; font-size: 16px; text-decoration-color: rgba(239, 230, 218, .45); }
.foot-nav a:hover, .foot a:hover { text-decoration-color: currentColor; }
.honest { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 30px 0 34px; }
.facts { display: grid; gap: 20px; }
.facts dt, .credits-h { font-size: 15px; font-weight: 500; color: var(--on-dusk); margin-bottom: 4px; }
.facts dd, .credits li { font-size: 15px; line-height: 1.5; color: var(--on-dusk-2); max-width: 54ch; }
.credits li { font-size: 13px; padding: 3px 0; }
.foot a { text-decoration-color: rgba(239, 230, 218, .45); }
.foot-end { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-top: 24px; border-top: 1px solid var(--rule-d); font-size: 13px; color: var(--on-dusk-2); }
.foot-end .wm { font-size: 22px; color: var(--on-dusk); }
.foot-end .wm i { width: 7px; height: 7px; }

/* ---------- 700 and up ---------- */
@media (min-width: 700px) {
  :root { --gutter: 32px; }
  .hero { min-height: max(calc(100vh - 110px), 600px); min-height: max(calc(100svh - 110px), 600px); }
  .hero-photo { height: 100%; object-position: 30% 45%; -webkit-mask-image: none; mask-image: none; }
  .hero-in { padding-bottom: 28px; }
  .hero-btn { width: auto; min-width: 250px; margin-top: 26px; }
  .hero .lede { max-width: 40ch; }

  .pick-in { gap: 20px; padding-top: 32px; padding-bottom: 36px; }
  .pick-q { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
  .pick-hint { margin-top: 0; }
  .chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chip { font-size: 16px; }
  .pick-go { grid-template-columns: 270px minmax(0, 1fr); align-items: center; gap: 20px; }
  .pick-go .fine { max-width: 40ch; }

  .loop { padding: 80px 0 40px; }
  .wk { margin-left: 0; margin-right: 0; }
  .wk-cap { padding-left: 0; padding-right: 0; }
  .legend { padding-left: 0; padding-right: 0; }
  .cal { --hr: 54px; --gut: 58px; --gap-h: 26px; }
  .gut span { right: 11px; font-size: 13px; }
  .dh { font-size: 13px; padding: 11px 0 10px; }
  .dh b { font-size: 22px; }
  .blk { padding: 6px 7px; font-size: 13px; line-height: 1.18; }
  .blk .n { display: none; }
  .blk .w { display: inline; }
  .notfree { font-size: 13px; padding-top: 9px; }
  .why-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 28px; padding: 24px; }
  .why-alts { border-left: 1px solid var(--rule); padding-left: 28px; }
  .why-over { margin-top: 0; }
  .yr { grid-template-columns: auto minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .yr figcaption { grid-column: 1 / -1; }
  .yr-bars { --u: 16px; height: 150px; gap: 8px; }

  .rule-sec { padding: 88px 0 92px; }
  .bring-photo { min-height: 580px; }
  .bring-t { padding-bottom: 28px; }
  .bring-v { padding-top: 32px; padding-bottom: 72px; }
  .year-sec { padding: 80px 0 88px; }
  .ypage-photo .scrim { padding-left: 24px; padding-right: 24px; padding-bottom: 22px; }
  .ylist { padding-left: 24px; padding-right: 24px; }

  .last { padding: 80px 0 52px; }
  .last-go { grid-template-columns: 270px minmax(0, 1fr); align-items: center; gap: 20px; }
  .honest { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
}

/* ---------- 1024 and up: the bridge keeps the left of the photo, the words take the right ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .hero { align-items: stretch; justify-content: flex-end; padding-top: 0; }
  .hero-photo { object-position: 50% 42%; }
  .hero .scrim { display: flex; align-items: flex-end; width: min(66%, 900px); background: linear-gradient(90deg, rgba(26, 21, 17, 0) 0, rgba(26, 21, 17, .9) 150px, rgba(26, 21, 17, .94) 100%); }
  .hero-in { max-width: none; margin: 0; padding-left: clamp(152px, 14vw, 180px); padding-bottom: 40px; }
  .hero h1 { max-width: 640px; }

  .loop h2 { margin-bottom: 52px; }
  .beat { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: 64px; row-gap: 0; padding: 56px 0; }
  .beat-t { position: sticky; top: 40px; align-self: start; }
  .b23 .t2 { grid-column: 1; grid-row: 1; }
  .b23 .wk { grid-column: 2; grid-row: 1; margin-top: 0; }
  .b23 .wk .legend { order: 1; padding: 0 0 16px; }
  .b23 .wk .cal { order: 2; }
  .b23 .t3 { grid-column: 1; grid-row: 2 / span 2; margin-top: 0; padding-top: 24px; }
  .b23 .okbar { grid-column: 2; grid-row: 2; margin-top: 0; padding: 16px 16px 16px 24px; border-radius: 0 0 2px 2px; }
  .b23 .why { grid-column: 2; grid-row: 3; margin-top: 28px; }
  .cal-body { padding-bottom: 0; }
  .cols { border-bottom: 0; }
  .gut span:last-of-type { display: none; }

  .rule-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .rule-in h2 { position: sticky; top: 40px; }

  .bring { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: 640px auto; }
  .bring-photo { grid-column: 1; grid-row: 1; min-height: 0; }
  .bring-t { padding-bottom: 44px; }
  .bring-t h2, .bring-t .lede { max-width: 440px; }
  .bring-v { grid-column: 1; grid-row: 1 / span 2; position: relative; z-index: 2; display: flex; justify-content: flex-end; align-items: flex-start; padding-top: 160px; padding-bottom: 88px; pointer-events: none; }
  .inv { width: 400px; pointer-events: auto; }

  .year-in { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
  .year-t { position: sticky; top: 40px; }

  .last-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: end; }
  .last-go { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 1240 and up: chips and the button share one row ---------- */
@media (min-width: 1240px) {
  .pick-in { grid-template-columns: minmax(0, 1fr) 250px; grid-template-areas: "q q" "chips go"; align-items: center; gap: 22px 40px; padding-top: 34px; padding-bottom: 36px; }
  .pick-q { grid-area: q; }
  .chips { grid-area: chips; }
  .pick-go { grid-area: go; grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .wk.lit .sweep::before { animation: none; }
  .wk[data-state="approved"] .blk.prop, .wk[data-state="approved"] .blk.prop::after, .btn, .chip { transition: none; }
}
