/* Values from DESIGN_LANGUAGE.md */
@font-face { font-family: 'Bricolage Grotesque'; src: url(/fonts/bricolage_grotesque.ttf); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Work Sans'; src: url(/fonts/work_sans.ttf); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Caveat; src: url(/fonts/caveat.ttf); font-weight: 400 700; font-display: swap; }

:root { color-scheme: light dark; --paper: #F4EFE6; --card: #FFFBF4; --ink: #2F4FB8; --on-ink: #fff; --text: #1C2550; --muted: #525A80; --signal: #F08A64; --butter: #FBE3A6; --ask: #D8E0F7; --offer: #D3EEDB; --share: #FBE3A6; --event: #EADCF5; --alert: #FAD3C2; --shadow: rgba(47,79,184,.14); --offset: rgba(240,138,100,.45); --dashes: rgba(47,79,184,.3); --speck: rgba(47,79,184,.12); --speck-signal: rgba(240,138,100,.18); --sketchy: 22px 9px 20px 11px/11px 20px 9px 22px; }
@media (prefers-color-scheme: dark) {
  :root { --paper: #18203F; --card: #222B52; --ink: #9DB2FF; --on-ink: #18203F; --text: #EEF0FF; --muted: #AEB6DA; --signal: #F59A76; --butter: #FBD27A; --ask: #2E3A75; --offer: #1F4038; --share: #4A3F1E; --event: #432A58; --alert: #4A2A24; --shadow: rgba(0,0,0,.35); --dashes: rgba(157,178,255,.3); --speck: rgba(157,178,255,.12); }
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font: 400 17px/1.6 'Work Sans', system-ui, sans-serif; background-color: var(--paper); background-image: radial-gradient(circle at 12% 18%, var(--speck) 1px, transparent 1.5px), radial-gradient(circle at 63% 9%, var(--speck-signal) 1.2px, transparent 1.7px), radial-gradient(circle at 38% 52%, var(--speck) 1.3px, transparent 1.8px), radial-gradient(circle at 84% 44%, var(--speck) 1px, transparent 1.5px), radial-gradient(circle at 22% 83%, var(--speck-signal) 1px, transparent 1.5px), radial-gradient(circle at 71% 76%, var(--speck) 1px, transparent 1.5px); background-size: 53px 47px, 71px 67px, 41px 59px, 67px 43px, 89px 61px, 37px 73px; }
a { color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: 'Bricolage Grotesque', 'Work Sans', sans-serif; font-weight: 700; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0; }

.in { max-width: 1088px; margin: 0 auto; padding-inline: 20px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none; }
.hl { color: var(--ink); text-shadow: 2px 3px 0 var(--offset); }
.lede { font-size: 20px; line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }
.hand { font: 700 25px/1.1 Caveat, cursive; color: var(--ink); }
.sketchy { padding: 18px 22px; border: 2px solid var(--ink); border-radius: var(--sketchy); background: var(--card); box-shadow: 3px 4px 0 var(--shadow); }
.dash { border-top: 1.5px dashed var(--dashes); padding-top: 20px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 10px 26px; font: 700 18px/1.2 'Bricolage Grotesque', sans-serif; text-decoration: none; color: var(--on-ink); background: var(--ink); border: 2px solid var(--ink); border-radius: var(--sketchy); box-shadow: 3px 4px 0 var(--shadow); }
.tag { align-self: flex-start; padding: 1px 11px; font-size: 14px; font-weight: 500; background: var(--card); border: 1.8px solid var(--ink); border-radius: 22px 16px 20px 14px/16px 22px 14px 20px; }

.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px; padding-block: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 800 28px/1 'Bricolage Grotesque', sans-serif; letter-spacing: -.035em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav a[aria-current] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.foot { display: flex; flex-wrap: wrap; gap: 4px 26px; justify-content: center; padding-block: 20px 36px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }

.wire { position: relative; height: 120px; overflow: hidden; }
.wire.plain { height: 40px; }
.wire .line { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 3; }
.bird { position: absolute; width: 56px; height: 56px; margin-left: -28px; overflow: visible; color: var(--ink); fill: var(--card); stroke-width: 2.2; }
.robin { fill: var(--signal); }
.left { transform: scaleX(-1); }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 34px 22px; }
.note { position: relative; padding: 30px 18px 18px; display: flex; flex-direction: column; gap: 10px; border: 2px solid var(--ink); border-radius: 9px 16px 11px 18px/16px 9px 18px 11px; box-shadow: 3px 4px 0 var(--shadow); }
.note::before { content: ""; position: absolute; top: -16px; left: 50%; width: 12px; height: 34px; margin-left: -6px; border: 2px solid var(--ink); border-radius: 4px; background: var(--card); }
.note:nth-child(odd) { transform: rotate(-1.4deg); }
.note:nth-child(even) { transform: rotate(1.2deg); }

.home h1 { font-size: clamp(40px, 6vw, 72px); }
.home section { padding-bottom: 84px; }
.home section.stack { gap: 30px; }
.hero { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; padding-top: 36px; }
.home .hero { padding-bottom: 34px; }
.hero .stack { flex: 999 1 460px; min-width: 0; gap: 26px; }
.shot { flex: 1 1 270px; max-width: 290px; min-width: 0; height: auto; margin: 0 auto; border: 2px solid var(--ink); border-radius: 36px; box-shadow: 10px 12px 0 var(--offset); transform: rotate(.8deg); }
.scan { flex-wrap: nowrap; }
.qr { width: 140px; height: 140px; flex: none; display: grid; place-items: center; padding: 10px; text-align: center; border: 2px dashed var(--ink); border-radius: 10px; font-size: 14px; color: var(--muted); }
.garden { display: block; width: 100%; min-height: 90px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; color: var(--ink); }
.garden .robin { fill: var(--signal); }
.garden .butter { fill: var(--butter); }
.garden .white { fill: var(--card); }

.page { padding-block: 44px 80px; gap: 36px; }
.page h1 + .muted { margin-top: -22px; }
.help { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: flex-start; }
.questions { flex: 999 1 440px; min-width: 0; }
.questions h2 { padding-bottom: 18px; }
.questions > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px 28px; padding-block: 16px; border-top: 1.5px dashed var(--dashes); }
.questions h3 { font: inherit; font-weight: 600; letter-spacing: 0; }
.help .note { flex: 1 1 280px; padding: 34px 26px 26px; }
.help .note h2 { font-size: 26px; }

.policy { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; }
.toc a { display: flex; align-items: center; min-height: 44px; line-height: 1.3; text-decoration: none; }
.prose { display: flex; flex-direction: column; gap: 16px; max-width: 42em; overflow-wrap: break-word; }
.prose h2 { font-size: 27px; margin-top: 20px; }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose li + li { margin-top: 10px; }
.prose table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.prose th, .prose td { padding: 16px 28px 16px 0; text-align: left; vertical-align: top; border-top: 1.5px dashed var(--dashes); }
.prose th { border-top: 0; font-weight: 600; }
.prose td:first-child { font-weight: 600; }
.prose :is(th, td):first-child { width: 40%; }
.prose :is(th, td):last-child { padding-right: 0; }

@media (max-width: 760px) {
  .policy, .questions > div { grid-template-columns: minmax(0, 1fr); }
  .policy { gap: 28px; }
  .prose th, .prose td { padding-right: 16px; font-size: 15px; }
}
