/* shared chrome: background, header, the honeycomb intro, the closing, the footer — everything centered */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
.top { padding: 16px 24px; }
.top nav { gap: 10px; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; } :root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: block; } }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 40px; }

.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 96px 40px 40px; }
.hero-in { position: relative; width: 100%; max-width: 1240px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto; gap: 0 72px; align-items: center; }
.hero-words { grid-column: 1; grid-row: 1 / 3; align-self: end; }
.hero-mark { width: 200px; height: 200px; margin: 0 0 22px -14px; }
.hero-comb { grid-column: 2; grid-row: 1; }
.hero h1 { font-size: clamp(48px, 5.2vw, 76px); line-height: .98; letter-spacing: -.034em; margin-bottom: 26px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--soft); max-width: 25em; }
.hero-words .qr { display: flex; margin-top: 36px; }
.hero-comb { width: 100%; max-width: 500px; justify-self: center; }
.comb { width: 100%; height: auto; overflow: visible; }
.comb .day { cursor: default; outline: none; transition: opacity .35s ease; }
.comb .day path { fill: var(--neutral); }
.comb .day.on path { fill: var(--c); }
.comb .day text { font-family: var(--sans); font-size: 11px; fill: var(--empty-num); pointer-events: none; }
.comb .day.on text { fill: rgba(255,255,255,.94); }
.comb.looking .day:not(.hot) { opacity: .42; }
.comb .day:focus-visible path { stroke: var(--ink); stroke-width: 5; }
.comb-cap { grid-column: 1 / -1; grid-row: 2; align-self: end; position: relative; text-align: center; font-size: 14px; line-height: 1; padding-top: 28px; }
.cap-month { color: var(--soft); } .cap-day { position: absolute; right: 0; bottom: 0; white-space: nowrap; } .cap-meta { color: var(--soft); } .cap-meta::before { content: ' · '; }
.more { grid-column: 1 / -1; grid-row: 3; justify-self: center; margin-top: 28px; color: var(--soft); animation: breathe 2.6s ease-in-out infinite; }
.more svg { width: 20px; height: 20px; }
@keyframes breathe { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

.sec { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(88px, 10vw, 140px) 40px; text-align: center; }
.sec h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.025em; max-width: 16em; margin: 0 auto; }
.sec > p { margin: 18px auto 0; font-size: 18px; line-height: 1.5; color: var(--soft); max-width: 34em; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; text-align: left; }
.trio > div { padding: 24px 26px; border-radius: 22px; } .trio h3 { font-size: 20px; margin-bottom: 8px; } .trio p { font-size: 15px; line-height: 1.5; color: var(--soft); margin: 0; }
.thesis { margin: 72px auto 0 !important; font-size: clamp(28px, 3.6vw, 48px) !important; line-height: 1.12 !important; letter-spacing: -.03em; color: var(--ink) !important; max-width: 18em !important; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; margin-top: 40px; }
.pill.outline { background: var(--bg); color: var(--azure); box-shadow: inset 0 0 0 1.5px var(--azure); } .pill.outline svg { color: var(--azure); }

.foot { display: block; padding: 0; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 44px 40px 52px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot-in p { margin: 0; } .foot-in ul { justify-content: center; } .foot-in .fine { margin-top: 10px; }

@media (max-width: 899px) {
  .top { padding: 12px 16px; transition: opacity .45s ease; } .top.faded:not(.awake) { opacity: .28; } .top .logo { font-size: 20px; } .top nav .pill { padding: 0 14px; font-size: 15px; }
  .hide-sm, .top nav a.hide-sm { display: none; }
  .wrap { padding-inline: 20px; }
  .hero { padding: 88px 20px 32px; align-items: flex-start; }
  .hero-in { grid-template-columns: 1fr; grid-template-rows: none; gap: 28px; }
  .hero-mark { order: -1; width: 132px; height: 132px; margin: 0 0 -8px -8px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); margin-bottom: 18px; }
  .lead { font-size: 18px; }
  .hero-words { display: contents; } .hero-words h1 { order: 0; } .hero-words .lead { order: 1; margin-top: -10px; } .hero-words .qr { order: 3; margin-top: 0; }
  .hero-comb { order: 2; max-width: none; grid-column: auto; grid-row: auto; }
  .comb-cap { order: 2; grid-row: auto; text-align: left; line-height: 1.5; padding-top: 0; } .cap-day { position: static; display: block; } .cap-hint { display: none; }
  .more { order: 4; grid-row: auto; margin-top: 8px; }
  .sec { padding: 72px 20px; }
  .trio { grid-template-columns: 1fr; gap: 12px; }
}
.page { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; padding: 120px 24px 120px; }
.page h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; }
.page .lead { margin-top: 16px; font-size: 22px; color: var(--ink85); }
.page .meta { margin-top: 12px; font-size: 15px; color: var(--soft); }
.legal { margin-top: 48px; }
.legal h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; margin: 64px 0 8px; }
.legal h3 { font-size: 17px; margin: 30px 0 4px; }
.legal p { color: var(--ink85); line-height: 1.65; margin: 0 0 12px; }
.legal .short { padding: 22px 24px; border-radius: 22px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--glass-rim), var(--glass-shadow); }
.legal .short p { margin: 0; color: var(--ink); font-size: 19px; }
.legal .short h2 { margin: 0 0 8px; font-size: 15px; color: var(--soft); }
