/* Cuckoo · cuckoo.day — the same paper system as the app. System typefaces only. */
:root {
  --desk: #DEDAD2; --paper: #F7F4EC; --ink: #141F22; --ink2: #4A565A; --ink3: #646D70;
  --hair: rgba(20,31,34,.11); --rule: rgba(20,31,34,.2);
  --spot: #185867; --signal: #B44C27; --sun: #DE7A4E;
  --slip: #FDFCF8; --slip-ink: #262A2B; --slip-ink2: #5A6164; --slip-rule: rgba(38,42,43,.28); --tape: rgba(246,240,222,.62);
  --shadow: 0 0 0 .5px rgba(60,45,30,.10), 0 1px 1px rgba(60,45,30,.08), 0 14px 28px -14px rgba(60,45,30,.30), 0 40px 70px -40px rgba(60,45,30,.35);
  --crease: rgba(70,50,30,.07);
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --serif-zh: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gap: clamp(22px, 3vw, 36px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: light) {
  html.dusk { --desk: #DDD6D3; --paper: #F6F1EE; --ink: #221C24; --ink2: #594F57; --ink3: #6F646C; --spot: #3A3566; --sun: #C9606A; --hair: rgba(34,28,36,.11); --rule: rgba(34,28,36,.2); --slip: #FEFBFA; }
}
@media (prefers-color-scheme: dark) {
  :root { --desk: #060809; --paper: #151B1D; --ink: #E6E9E4; --ink2: #A3ACAA; --ink3: #808B8C; --hair: rgba(230,233,228,.085); --rule: rgba(230,233,228,.17);
    --spot: #7FB8C4; --signal: #EE8D66; --sun: #EE8D66; --slip: #2B3133; --slip-ink: #E9ECE8; --slip-ink2: #A6AFAE; --slip-rule: rgba(233,236,232,.22); --tape: rgba(220,215,200,.16);
    --shadow: 0 0 0 .5px rgba(255,255,255,.06), 0 30px 60px -30px rgba(0,0,0,.9); --crease: rgba(0,0,0,.35); }
  html.dusk { --desk: #08070B; --paper: #18161D; --spot: #A7A0D8; --sun: #E28A8F; --slip: #2C2A33; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100dvh; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
html[data-lang="en"] [data-l="zh"], html[data-lang="zh"] [data-l="en"] { display: none !important; }
html[data-lang="zh"] .hl, html[data-lang="zh"] .serif { font-family: var(--serif-zh); }
.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--spot); outline-offset: 3px; border-radius: 2px; }

/* The sheet */
.sheet { position: relative; min-height: 100dvh; background: var(--paper);
  padding: clamp(20px, 4vw, 44px) max(clamp(20px, 4.2vw, 52px), calc((100% - 1096px) / 2)) clamp(28px, 4vw, 48px); isolation: isolate; overflow: hidden; }
.sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; opacity: .75; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .42  0 0 0 0 .38  0 0 0 0 .32  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
@media (prefers-color-scheme: dark) { .sheet::after { mix-blend-mode: screen; opacity: .45; } }
@media (prefers-contrast: more) { .sheet::after { display: none; } }

/* Masthead */
.folio { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font: 600 12px var(--sans); letter-spacing: .3em; color: var(--ink2); text-transform: uppercase; }
.folio .ed { display: inline-flex; align-items: center; gap: 9px; }
.folio .ed i { width: 9px; height: 9px; background: var(--signal); }
.folio .date { font: 600 15px var(--serif); letter-spacing: .04em; color: var(--ink); text-transform: none; }
.folio nav { display: flex; gap: 18px; letter-spacing: .04em; text-transform: none; font-weight: 500; }
.folio nav a, .folio nav button { color: var(--ink2); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px 0; }
.folio nav a:hover, .folio nav button:hover { color: var(--spot); }
.nameplate { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 18px 0 6px; }
.nameplate h1 { font: 800 clamp(54px, 10vw, 128px)/.9 var(--serif); letter-spacing: -.035em; }
html[data-lang="zh"] .nameplate h1 { font-family: var(--serif-zh); font-weight: 900; letter-spacing: .02em; }
.nameplate p { font: italic 400 clamp(16px, 1.8vw, 21px)/1.3 var(--serif); color: var(--ink2); text-align: right; max-width: 18em; }
.nameplate img { width: clamp(64px, 9vw, 112px); border-radius: 22%; box-shadow: 0 10px 24px -14px rgba(0,0,0,.45); }
.dayrule { position: relative; height: 64px; margin-top: 4px; }
.dayrule .thick, .dayrule .thin, .dayrule .lit { position: absolute; left: 0; right: 0; background: var(--ink); }
.dayrule .thick { bottom: 22px; height: 3px; } .dayrule .thin { bottom: 17px; height: 1px; }
.dayrule .lit { background: var(--sun); right: auto; bottom: 22px; height: 3px; }
.dayrule .tick { position: absolute; bottom: 0; transform: translateX(-50%); font: 500 10px var(--sans); color: var(--ink3); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.dayrule .tick::before { content: ""; position: absolute; left: 50%; top: -5px; height: 4px; width: 1px; background: var(--ink); }
.dayrule .sun { position: absolute; bottom: 25px; width: 92px; height: 46px; margin-left: -46px; overflow: hidden; }
.dayrule .sun::before { content: ""; position: absolute; left: 0; top: 0; width: 92px; height: 92px; border-radius: 50%;
  background-image: radial-gradient(circle, var(--sun) 0 1.25px, transparent 1.75px); background-size: 4px 4px;
  -webkit-mask: radial-gradient(circle, #000 0 34%, rgba(0,0,0,.55) 52%, transparent 70%); mask: radial-gradient(circle, #000 0 34%, rgba(0,0,0,.55) 52%, transparent 70%); }
.dayrule .sun::after { content: ""; position: absolute; left: 37px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); }
.dayrule .now { position: absolute; bottom: 31px; margin-left: 52px; font: 600 11px var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Grid */
.row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); padding: clamp(22px, 3vw, 34px) 0; border-bottom: 1px solid var(--rule); }
.row:last-of-type { border-bottom: 0; }
.cell { position: relative; min-width: 0; }
.cell + .cell::before { content: ""; position: absolute; left: calc(var(--gap) / -2); top: 0; bottom: 0; width: 1px; background: var(--rule); }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.fold { position: relative; height: 26px; margin: 0 calc(clamp(20px, 4.2vw, 52px) * -1); }
.fold::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 12px; background: linear-gradient(180deg, transparent, var(--crease), transparent); }
.fold::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--rule) 8%, var(--rule) 92%, transparent); }
@media (max-width: 560px) {
  .dayrule .now { display: none; }
  .nameplate p { font-size: 15px; }
}
@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; row-gap: 30px; }
  .row > .cell { grid-column: 1 / -1; }
  .cell + .cell::before { left: 0; right: 0; top: -15px; bottom: auto; width: auto; height: 1px; }
  .nameplate { flex-wrap: wrap; } .nameplate p { text-align: left; }
  .folio nav .opt { display: none; }
}

/* Type */
.kick { display: flex; align-items: center; gap: 8px; font: 500 12.5px var(--sans); color: var(--ink2); margin-bottom: 10px; letter-spacing: .02em; }
.kick b { font-weight: 700; color: var(--signal); letter-spacing: .2em; font-size: 11.5px; text-transform: uppercase; }
.hl { font-family: var(--serif); font-weight: 800; letter-spacing: -.012em; text-wrap: balance; color: var(--ink); }
html[data-lang="zh"] .hl { font-weight: 900; letter-spacing: 0; font-feature-settings: "palt"; }
.h-xl { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.04; } .h-l { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; } .h-m { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.22; }
.deck { font: 400 clamp(17px, 1.6vw, 20px)/1.6 var(--serif); color: var(--ink2); max-width: 36em; text-wrap: pretty; margin-top: 16px; }
html[data-lang="zh"] .deck, html[data-lang="zh"] .body { font-family: var(--serif-zh); }
.body { font: 400 16.5px/1.72 var(--serif); color: var(--ink2); text-wrap: pretty; margin-top: 10px; }
.slug { border-top: 3px solid var(--ink); padding-top: 9px; margin-bottom: 14px; display: flex; align-items: baseline; justify-content: space-between; font: 800 13px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink2); }
.slug .n { font: 500 28px/1 var(--serif); color: var(--signal); letter-spacing: 0; }
.link { color: var(--spot); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; text-decoration-color: color-mix(in srgb, var(--spot) 35%, transparent); font-weight: 500; }
.link:hover { text-decoration-color: var(--spot); }

/* Download */
.get { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border-radius: 11px; background: var(--ink); color: var(--paper); text-decoration: none; font: 600 15px var(--sans); transition: transform .15s ease; }
.store:hover { transform: translateY(-1px); } .store:active { transform: translateY(1px); }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.store small { display: block; font-size: 10.5px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border: 1.5px dashed var(--rule); border-radius: 11px; color: var(--ink2); font: 500 14.5px var(--sans); }

/* Hero composition */
.hero { position: relative; margin-top: 8px; }
.hero .mac { border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair), 0 30px 60px -30px rgba(40,28,16,.55); background: var(--desk); }
.hero .mac .bar { height: 28px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--desk); }
.hero .mac .bar i { width: 11px; height: 11px; border-radius: 50%; } .hero .mac .bar i:nth-child(1){background:#FF5F57}.hero .mac .bar i:nth-child(2){background:#FEBC2E}.hero .mac .bar i:nth-child(3){background:#28C840}
.hero .phone { position: absolute; right: -2%; bottom: -8%; width: 27%; border-radius: 13% / 6.2%; padding: 1.1%; background: #121415; box-shadow: 0 30px 50px -24px rgba(0,0,0,.6); }
.hero .phone img { border-radius: 12% / 5.6%; }
@media (max-width: 860px) { .hero .phone { width: 34%; right: 0; bottom: -10%; } }

/* Stickers */
.board { display: flex; flex-wrap: wrap; gap: 26px 22px; padding: 22px 4px 4px; }
.stk { position: relative; transform: rotate(var(--r, 0deg)); filter: drop-shadow(0 1px 1px rgba(60,45,30,.18)) drop-shadow(0 6px 10px rgba(60,45,30,.14)); }
.stk .tape { position: absolute; z-index: 2; top: -11px; left: 50%; width: 76px; height: 22px; transform: translateX(-50%) rotate(-4deg); background: var(--tape); }
.receipt { width: 232px; background: var(--slip); color: var(--slip-ink); padding: 22px 18px 18px; font: 12px/1.55 var(--mono);
  --s: 11px; --m: conic-gradient(from 135deg at top,#0000,#000 1deg 89deg,#0000 90deg) top/var(--s) 51% repeat-x, conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/var(--s) 51% repeat-x;
  -webkit-mask: var(--m); mask: var(--m); }
.receipt .m { font: 600 15px var(--mono); letter-spacing: .06em; text-align: center; }
.receipt .sub { text-align: center; color: var(--slip-ink2); font-size: 11px; }
.receipt .dash { border-top: 1.5px dashed var(--slip-rule); margin: 10px 0; }
.receipt .kv { display: flex; justify-content: space-between; color: var(--slip-ink2); } .receipt .kv b { color: var(--slip-ink); font-weight: 500; }
.receipt .tot { display: flex; justify-content: space-between; align-items: baseline; } .receipt .tot span { font-weight: 600; font-size: 11px; letter-spacing: .14em; color: var(--slip-ink2); }
.receipt .tot b { font: 600 25px var(--mono); }
.receipt .src { font: 11.5px var(--sans); color: var(--slip-ink2); }
.stamp { position: absolute; right: 18px; top: 106px; transform: rotate(-9deg); color: var(--signal); border: 3px double var(--signal); border-radius: 6px; padding: 3px 12px; font: 900 21px/1.2 var(--serif-zh); letter-spacing: .16em; opacity: .9; }

/* Figure */
.change { display: flex; align-items: center; gap: 14px 18px; margin-top: 16px; }
.change.pair .to { font-size: clamp(42px, 5vw, 72px); }
.change.pair .arrow { flex: 0 0 34px; }
.change .from { font: 500 clamp(28px, 3vw, 40px) var(--serif); color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--signal); text-decoration-thickness: 2px; font-variant-numeric: lining-nums; }
.change .to { font: 500 clamp(56px, 7vw, 92px)/1 var(--serif); color: var(--spot); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.change .arrow { width: 52px; height: 2px; background: var(--ink); position: relative; } .change .arrow::after { content: ""; position: absolute; right: -1px; top: -5px; width: 10px; height: 10px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: rotate(45deg); }
.label { font: 700 12px var(--sans); letter-spacing: .24em; color: var(--signal); text-transform: uppercase; }

/* Quote */
.quote { position: relative; padding-top: 38px; }
.quote::before { content: "\201C"; position: absolute; top: -26px; left: -6px; font: 400 120px/1 var(--serif); color: var(--signal); }
.quote q { quotes: none; display: block; font: 600 clamp(24px, 2.6vw, 34px)/1.35 var(--serif); text-wrap: balance; }
html[data-lang="zh"] .quote q { font-family: var(--serif-zh); font-weight: 700; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 26px); margin-top: 20px; }
.screens figure { border-radius: 12% / 5.6%; overflow: hidden; background: #121415; padding: 3.2%; box-shadow: 0 20px 34px -22px rgba(0,0,0,.55); }
.screens figure img { border-radius: 10% / 4.8%; }
@media (max-width: 860px) { .screens { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; } .screens figure { scroll-snap-align: start; } }

/* Platforms ledger */
.ledger { width: 100%; border-collapse: collapse; margin-top: 4px; }
.ledger td { padding: 14px 0; border-top: 1px solid var(--hair); vertical-align: baseline; }
.ledger tr:first-child td { border-top: 1.5px solid var(--ink); }
.ledger .p { font: 700 19px var(--serif); } html[data-lang="zh"] .ledger .p { font-family: var(--serif-zh); }
.ledger .v { font: 13px var(--sans); color: var(--ink3); }
.ledger .st { text-align: right; font: 700 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.ledger .st span { padding: 3px 7px; } .ledger .on span { background: var(--spot); color: var(--paper); } .ledger .later span { box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink2); }

/* Briefs */
.briefs { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--gap); }
@media (max-width: 860px) { .briefs { grid-template-columns: 1fr; } }
.brief { display: grid; grid-template-columns: 44px 1fr; gap: 0 12px; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.brief .no { font: 500 38px/1 var(--serif); color: var(--spot); font-variant-numeric: lining-nums; }
.brief h3 { font: 800 19px/1.35 var(--serif); } html[data-lang="zh"] .brief h3 { font-family: var(--serif-zh); font-weight: 900; }
.brief p { font: 15.5px/1.65 var(--serif); color: var(--ink2); margin-top: 4px; } html[data-lang="zh"] .brief p { font-family: var(--serif-zh); }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 26px; align-items: center; padding-top: 20px; border-top: 3px solid var(--ink); margin-top: 8px; font: 13px var(--sans); color: var(--ink2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--spot); }

/* Article pages */
.article { max-width: 760px; }
.article h2 { font: 800 24px/1.3 var(--serif); margin: 34px 0 8px; } html[data-lang="zh"] .article h2 { font-family: var(--serif-zh); font-weight: 900; }
.article p, .article li { font: 17px/1.72 var(--serif); color: var(--ink2); margin-top: 10px; } html[data-lang="zh"] .article p, html[data-lang="zh"] .article li { font-family: var(--serif-zh); }
.article ul { padding-left: 1.2em; }
