/* The site's one stylesheet. The look is the app's: a hand-drawn notebook under a
   dotted sky (../ios/docs/design-language.md). The tokens are the app's Theme, by name. */

:root{
  --ink:#2B2520; --body:#3A322A; --body2:#4A4238; --muted:#6B5F52;
  --cream:#F5EDDC; --light:#FDF7EA; --accent:#85590F; --highlight:#FBEBC8;
  --sky:#CFE3EF; --dusk:#2B4A5E; --dusk-muted:#A9C4D2; --dusk-dash:#7FA4B8;
  --aside:#3E5561; --uncertain:#6E96AC;
  --divider:#C3B79A; --divider-soft:#D8CDB2; --hole:#A79B7E; --hole-fill:rgba(216,205,178,.5);
  --gutter:22px;
  --wobbly:26px 22px 28px 24px / 22px 28px 24px 26px;
  --wobbly-b:30px 24px 26px 28px / 24px 30px 28px 26px;
  --wobbly-c:34px 28px 32px 26px / 28px 32px 26px 34px;
  --shadow:0 3px 0 rgba(43,37,32,.07), 0 10px 20px rgba(43,37,32,.12);
  --shadow-dusk:0 3px 0 rgba(43,37,32,.07), 0 10px 20px rgba(20,34,44,.22);
}
*{ box-sizing:border-box; }
html{ background:var(--sky); -webkit-text-size-adjust:100%; }
body{
  margin:0; min-height:100vh; display:flex; flex-direction:column;
  font-family:'Nunito',system-ui,sans-serif; font-weight:600; font-size:16.5px; line-height:1.6;
  color:var(--body); -webkit-font-smoothing:antialiased;
  background-color:var(--sky);
  background-image:radial-gradient(rgba(255,255,255,.62) 1.2px, transparent 1.3px);
  background-size:11px 11px;
}
a{ color:var(--accent); text-decoration-thickness:1.5px; text-underline-offset:3px; }
a:hover{ color:var(--ink); }
strong{ font-weight:800; color:var(--ink); }
img,svg{ display:block; }
figure{ margin:0; }
main{ overflow-x:clip; }
:focus-visible{ outline:3px solid var(--accent); outline-offset:3px; border-radius:6px; }

.wrap{ width:100%; max-width:760px; margin:0 auto; padding:0 var(--gutter); }
.marker{ font-family:'Permanent Marker',cursive; font-weight:400; text-transform:uppercase; }
.aside{ font-family:'Caveat',cursive; font-weight:500; font-size:21px; line-height:1.3; color:var(--aside); }
.eyebrow{
  font-weight:800; font-size:11.5px; letter-spacing:.13em; text-transform:uppercase; color:var(--muted);
  margin:0;
}
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* ---------- Header and footer ---------- */
.site-head{ padding-top:20px; padding-bottom:6px; display:flex; align-items:center; justify-content:space-between; gap:14px; }
.brand{ display:inline-flex; align-items:center; gap:9px; color:var(--ink); text-decoration:none; }
.brand:hover{ color:var(--ink); }
.brand-mark{ width:30px; height:30px; flex:0 0 auto; }
.brand-name{ font-family:'Permanent Marker',cursive; font-size:19px; text-transform:uppercase; letter-spacing:.01em; line-height:1; white-space:nowrap; }
.head-nav{ display:flex; gap:16px; font-weight:800; font-size:12px; letter-spacing:.11em; text-transform:uppercase; }
.head-nav a{ color:var(--muted); text-decoration:none; padding:8px 0; }
.head-nav a:hover,.head-nav a[aria-current="page"]{ color:var(--ink); }
.head-nav .wide{ display:none; }
@media (min-width:560px){ .head-nav .wide{ display:inline; } }
@media (max-width:400px){ .brand-name{ font-size:17px; } .head-nav{ gap:12px; font-size:11px; } }

footer.site-foot{ margin-top:auto; padding:30px 0 40px; border-top:2px dashed rgba(43,37,32,.16); }
.foot-row{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; }
.foot-links{ display:flex; flex-wrap:wrap; gap:6px 18px; font-weight:800; font-size:12px; letter-spacing:.11em; text-transform:uppercase; }
.foot-links a{ color:var(--muted); text-decoration:none; padding:6px 0; }
.foot-links a:hover{ color:var(--ink); }
.copyright{ margin:0; font-size:13px; color:var(--muted); }

/* ---------- Headings ---------- */
h1,h2,h3{ font-family:'Permanent Marker',cursive; font-weight:400; text-transform:uppercase; color:var(--ink); margin:0; }
h1{ font-size:clamp(31px, 8.6vw, 54px); line-height:1.12; letter-spacing:.005em; text-wrap:balance; }
h2{ font-size:clamp(25px, 6.4vw, 36px); line-height:1.16; text-wrap:balance; }
h3{ font-size:19px; line-height:1.25; }
.rule{
  height:11px; width:68%; max-width:330px; margin:8px 0 10px;
  background:url(/img/wave-rule.svg) repeat-x left center / 120px 11px;
}
.dusk .rule{ background-image:url(/img/wave-rule-cream.svg); }
.sub{ margin:0 0 6px; }

/* ---------- Sections ---------- */
.section{ padding:52px 0 18px; }
.section > .wrap > p{ max-width:60ch; }
.lede{ font-size:18px; line-height:1.6; color:var(--body); max-width:56ch; margin:14px 0 0; text-wrap:pretty; }

.dusk{
  background-color:var(--dusk);
  background-image:radial-gradient(rgba(245,237,220,.3) 1.3px, transparent 1.4px);
  background-size:13px 13px;
  color:var(--dusk-muted);
  padding:56px 0 54px; margin-top:46px;
}
.dusk h2,.dusk h3{ color:var(--cream); }
.dusk .eyebrow{ color:var(--dusk-muted); }
.dusk .aside{ color:var(--dusk-muted); }
.dusk strong{ color:var(--cream); }
.dusk a{ color:#F2C14E; }
.dusk a:hover{ color:var(--cream); }
.dusk p{ color:#DCE6EC; }

/* ---------- Cards ---------- */
.card{
  background:var(--cream); border:2.5px solid var(--ink); border-radius:var(--wobbly);
  box-shadow:var(--shadow); padding:20px 20px 22px; color:var(--body);
  transform:rotate(-.4deg);
}
.card.tilt-r{ transform:rotate(.35deg); border-radius:var(--wobbly-b); }
.card.flat{ transform:none; }
.dusk .card{ box-shadow:var(--shadow-dusk); }
.dusk .card p{ color:var(--body); }
.dusk .card strong{ color:var(--ink); }
.dusk .card a{ color:var(--accent); }
.soft{
  background:var(--light); border-radius:var(--wobbly-b); padding:16px 18px;
  box-shadow:0 2px 0 rgba(43,37,32,.05), 0 6px 14px rgba(43,37,32,.07);
}
.dashed{
  border:2px dashed var(--divider); border-radius:var(--wobbly); padding:16px 18px;
}
.dusk .dashed{ border-color:var(--dusk-dash); }
.card h3 + p,.soft h3 + p,.dashed h3 + p{ margin-top:6px; }
.card p:last-child,.soft p:last-child,.dashed p:last-child{ margin-bottom:0; }
.card-label{ font-weight:800; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin:0 0 10px; }
.divider{ border:0; border-top:2px dashed var(--divider-soft); margin:16px 0; }

/* ---------- Tokens and holes ---------- */
.token,.hole{
  --s:54px; width:var(--s); height:var(--s); border-radius:50%; flex:0 0 auto;
  display:grid; place-items:center;
}
.token{
  background:var(--cream); border:2.5px solid var(--ink);
  box-shadow:inset 0 calc(var(--s) * -.05) calc(var(--s) * .1) rgba(22,16,10,.12);
}
.token svg{ width:70%; height:70%; }
.hole{ background:var(--hole-fill); border:2.5px dashed var(--hole); }
.token.s-sm,.hole.s-sm{ --s:40px; border-width:2px; }
.token.s-xs,.hole.s-xs{ --s:28px; border-width:1.6px; }
.slots{ display:flex; justify-content:space-between; gap:8px; }
.slot{ display:flex; flex-direction:column; align-items:center; gap:6px; flex:1 1 0; min-width:0; }
.slot-tag{ font-weight:800; font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); white-space:nowrap; }
.slot-ord{ font-family:'Permanent Marker',cursive; font-size:14px; color:var(--ink); text-transform:uppercase; }
.hit-tag,.miss-tag{
  font-weight:800; font-size:10px; letter-spacing:.1em; text-transform:uppercase; padding:2px 9px; border-radius:20px;
}
.hit-tag{ background:#8BAA6B; color:var(--ink); border:2px solid var(--ink); }
.miss-tag{ border:2px dashed var(--ink); color:var(--ink); }
.token.faded{ opacity:.45; filter:saturate(.4); }

/* ---------- Buttons ---------- */
.cta{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  width:100%; padding:17px 22px; text-align:center; text-decoration:none;
  border-radius:24px 20px 26px 22px / 20px 26px 22px 24px;
}
.cta .cta-main{ font-family:'Permanent Marker',cursive; font-size:19px; text-transform:uppercase; line-height:1.2; }
.cta .cta-sub{ font-family:'Caveat',cursive; font-size:18px; line-height:1.2; }
.cta.ready{ background:var(--ink); color:var(--cream); box-shadow:0 4px 0 rgba(43,37,32,.22); }
.cta.ready:hover{ color:#fff; transform:translateY(-1px); }
.cta.soon{ background:rgba(253,247,234,.55); border:2.5px dashed var(--hole); color:#6F665A; }
.dusk .cta.soon{ background:rgba(245,237,220,.08); border-color:var(--dusk-dash); color:var(--cream); }
.fine{ font-size:14px; line-height:1.55; color:var(--muted); margin:12px 0 0; }
.dusk .fine{ color:var(--dusk-muted); }

/* ---------- FAQ ---------- */
.faq{ margin-top:22px; }
.qa{ border-top:2px dashed rgba(43,37,32,.18); }
.qa:last-child{ border-bottom:2px dashed rgba(43,37,32,.18); }
.qa summary{
  list-style:none; cursor:pointer; padding:17px 34px 17px 0; position:relative;
  font-weight:800; font-size:17px; line-height:1.4; color:var(--ink);
}
.qa summary::-webkit-details-marker{ display:none; }
.qa summary::after{
  content:'+'; position:absolute; right:4px; top:12px; font-family:'Permanent Marker',cursive; font-size:24px; color:var(--muted);
}
.qa[open] summary::after{ content:'–'; }
.qa .answer{ padding:0 0 18px; }
.qa .answer p{ margin:0 0 10px; max-width:62ch; }
.qa .answer p:last-child{ margin-bottom:0; }

/* ---------- Text pages (privacy, support) ---------- */
.page-head{ padding:34px 0 8px; }
.prose{ padding-bottom:30px; }
.prose h2{ font-size:clamp(22px, 5.6vw, 28px); margin:40px 0 4px; scroll-margin-top:20px; }
.prose h3{ font-family:'Nunito',sans-serif; font-weight:800; text-transform:none; font-size:17.5px; margin:24px 0 2px; }
.prose p,.prose li{ max-width:66ch; text-wrap:pretty; }
.prose ul{ padding-left:20px; margin:10px 0 14px; }
.prose li{ margin:0 0 7px; }
.prose li::marker{ color:var(--muted); }
.updated{ font-family:'Caveat',cursive; font-size:20px; color:var(--aside); margin:6px 0 0; }

@media (prefers-reduced-motion: no-preference){
  .settle{ animation:settle .42s cubic-bezier(.3,1.4,.5,1) both; }
  .settle:nth-child(2){ animation-delay:.13s; }
  .settle:nth-child(3){ animation-delay:.26s; }
  .settle:nth-child(4){ animation-delay:.39s; }
}
@keyframes settle{
  0%{ transform:translateY(-18px) scale(.6); opacity:0; }
  55%{ transform:translateY(0) scale(1.13,.84); opacity:1; }
  78%{ transform:scale(.97,1.04); }
  100%{ transform:none; }
}

/* ---------- Website privacy choices (consent.js) ---------- */
#privacy-choices-button{
  appearance:none; background:none; border:0; padding:6px 0; cursor:pointer;
  font:inherit; color:var(--muted); text-transform:uppercase; letter-spacing:inherit;
}
#privacy-choices-button:hover{ color:var(--ink); }
#privacy-choices-button[hidden]{ display:none; }
.implied-consent-banner{
  position:fixed; left:12px; right:12px; bottom:12px; z-index:1000;
  max-width:720px; margin:0 auto;
  background:var(--cream); color:var(--ink); border:2.5px solid var(--ink);
  border-radius:var(--wobbly); box-shadow:var(--shadow);
  font:600 15px/1.5 'Nunito',system-ui,sans-serif;
}
.implied-consent-banner[hidden]{ display:none; }
.implied-consent-inner{
  padding:12px 16px; display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.implied-consent-copy{ margin:0; color:var(--body); }
.implied-consent-actions{ display:flex; align-items:center; gap:10px; flex:none; }
.implied-consent-button{
  appearance:none; border:2.5px solid var(--ink); background:transparent; color:var(--ink);
  border-radius:16px 13px 17px 14px; cursor:pointer; padding:7px 16px;
  font:800 13px/1.2 'Nunito',system-ui,sans-serif; letter-spacing:.08em; text-transform:uppercase;
}
.implied-consent-button.primary{ background:var(--ink); color:var(--cream); }
@media (max-width:640px){
  .implied-consent-inner{ align-items:stretch; flex-direction:column; gap:10px; }
  .implied-consent-button{ flex:1; padding:10px 14px; }
}
