/* The Honeycomb look of the app, flat: colour blocks, ink outlines, Alexandria.
   No shadows. Coloured surfaces stay the same in light and dark; only the
   neutral ground, surfaces and lines change. */
@font-face{font-family:Alexandria;src:url(/fonts/Alexandria-Regular.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:Alexandria;src:url(/fonts/Alexandria-SemiBold.ttf) format("truetype");font-weight:600;font-display:swap}
@font-face{font-family:Alexandria;src:url(/fonts/Alexandria-ExtraBold.ttf) format("truetype");font-weight:800;font-display:swap}
@font-face{font-family:Alexandria;src:url(/fonts/Alexandria-Black.ttf) format("truetype");font-weight:900;font-display:swap}

:root{
  --ink:#111111;--paper:#F2F1EC;--white:#FFFFFF;--honey:#FFA91F;--gold:#FFC21A;
  --bee:#FFC93C;--wordle:#2FB866;--code:#FF7A59;--ladder:#6C9BFF;--waffle:#FF9CC6;--connections:#B28CFF;
  --ground:var(--paper);--surface:var(--white);--text:var(--ink);--muted:#5F5C56;
  --line:var(--ink);--card-line:var(--ink);--well:var(--ink);--on-well:#F4F1EA;--well-muted:#CFCBC1;
  --centre:var(--white);--open:var(--white);--danger:#B35A42;
  --outline:2.5px;--radius:14px;--gutter:24px;
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root{
    --ground:#1B1A17;--surface:#2B2A26;--text:#F4F1EA;--muted:#CFCBC1;
    --line:#E6E2D8;--card-line:#000000;--well:#0D0C0B;
    --centre:#F4F1EA;--open:#3D3B36;--danger:#9E4530;
  }
}

*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--text);font:400 17px/1.85 Alexandria,system-ui,sans-serif;overflow-x:hidden}
html:lang(en) body{line-height:1.7}
.defs{position:absolute;width:0;height:0;overflow:hidden}
.wrap{width:min(100% - 2 * var(--gutter),1120px);margin-inline:auto}
a{color:inherit;text-decoration-thickness:2px;text-underline-offset:5px}
:focus-visible{outline:3px solid var(--ladder);outline-offset:3px;border-radius:6px}
h1,h2,h3{margin:0;font-weight:900;line-height:1.3}
p{margin:0 0 14px}
.skip{position:absolute;inset-inline-start:16px;top:-80px;padding:10px 16px;background:var(--text);color:var(--ground);border-radius:10px;font-weight:800;text-decoration:none;z-index:2}
.skip:focus{top:12px}
.preview{background:var(--honey);color:var(--ink);padding:8px var(--gutter);border-bottom:var(--outline) solid var(--card-line);font-size:14px;font-weight:600;text-align:center}

/* Header */
.bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 0}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;border-radius:12px}
.mark{width:46px;height:auto;flex:none}
.word{width:auto;height:36px;flex:none;color:var(--text);margin-top:4px}
.latin{font-weight:600;font-size:13px;color:var(--muted);letter-spacing:.04em;margin-inline-start:2px}
.comb-centre{fill:var(--centre)}
.comb-walls{fill:none;stroke:#111;stroke-linejoin:round}
.pill{display:inline-flex;align-items:center;min-height:42px;padding:0 18px;border:var(--outline) solid var(--line);border-radius:999px;background:var(--surface);color:var(--text);font-weight:800;font-size:15px;line-height:1.2;text-decoration:none}
.pill:hover{background:var(--bee);color:var(--ink);border-color:var(--card-line)}

/* Buttons */
.button,button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:0 24px;border:var(--outline) solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font:800 16px/1.3 Alexandria,system-ui,sans-serif;text-decoration:none;cursor:pointer;text-align:center}
.button.primary,button.primary{background:var(--text);color:var(--ground);border-color:var(--text)}
.button:hover,button:hover:not(:disabled){background:var(--bee);color:var(--ink);border-color:var(--card-line)}
button.danger{background:var(--danger);color:#fff;border-color:var(--card-line)}
button.danger:hover:not(:disabled){background:var(--code);color:var(--ink)}
button:disabled{opacity:.45;cursor:wait}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0 6px}

/* Landing */
.hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:40px;align-items:center;padding:28px 0 56px}
.chip{display:inline-flex;align-items:center;gap:10px;margin:0 0 22px;padding:6px 16px;border:2px solid var(--line);border-radius:999px;background:var(--surface);font-size:14px;font-weight:600;line-height:1.6}
.chip::before,.kicker::before{content:"";flex:none;width:15px;height:13px;background:var(--honey);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.hero h1{font-size:clamp(38px,4.4vw,58px);line-height:1.25;margin-bottom:22px}
:lang(en) .hero h1{letter-spacing:-.02em;line-height:1.1}
.lede{font-size:clamp(18px,2vw,22px);line-height:1.75;color:var(--muted);max-width:34em;margin:0}
.hero-art{display:block;width:100%;max-width:540px;height:auto;margin-inline:auto}
.ring-walls{fill:none;stroke:var(--ground);stroke-linejoin:round}
.plus .ring-walls{stroke:var(--well)}
/* Faded colours over a dark ground turn muddy; keep them quieter there. */
.plus .rings{opacity:.7}
@media (prefers-color-scheme:dark){.hero-art .rings{opacity:.5}}

.section{padding:48px 0}
.section-head{margin-bottom:24px}
.section-head h2{font-size:clamp(30px,3.6vw,44px);margin-bottom:4px}
.section-head p{color:var(--muted);margin:0;max-width:40em}

.games{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.game{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:250px;padding:18px 20px;border:var(--outline) solid var(--card-line);border-radius:var(--radius);background:var(--tone);color:var(--ink)}
.game .glyph{position:absolute;top:14px;inset-inline-end:14px;width:62px;height:62px}
.game .tag{position:absolute;top:18px;inset-inline-start:18px;padding:1px 11px;border:2px solid var(--ink);border-radius:999px;background:var(--white);font-size:12.5px;font-weight:600;line-height:1.7}
.game h3{font-size:30px;font-weight:800;line-height:1.3}
.game p{margin:0;font-size:15px;line-height:1.6}
.game .hook{margin:2px 0 4px;font-size:16px;font-weight:800;line-height:1.5}
.tone-bee{--tone:var(--bee)}.tone-wordle{--tone:var(--wordle)}.tone-code{--tone:var(--code)}
.tone-ladder{--tone:var(--ladder)}.tone-waffle{--tone:var(--waffle)}.tone-connections{--tone:var(--connections)}

.days{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.day{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:center;padding:20px;border:var(--outline) solid var(--line);border-radius:var(--radius);background:var(--surface)}
.day svg{width:92px;height:auto}
.day h3{font-size:20px;font-weight:800;margin-bottom:4px}
.day p{margin:0;font-size:15px;line-height:1.65;color:var(--muted)}
.cell-open{fill:var(--open)}
.cell-gold{fill:var(--gold)}
.day-walls{fill:none;stroke:#111;stroke-linejoin:round}

.plus{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);align-items:center;margin:48px 0 8px;border:var(--outline) solid var(--line);border-radius:22px;background:var(--well);color:var(--on-well);overflow:hidden}
.plus-art{display:block;width:100%;height:100%;min-height:300px}
.plus-copy{padding-block:44px;padding-inline:8px 44px}
.plus-copy p{color:var(--well-muted);max-width:32em;margin:0}
.kicker{display:inline-flex;align-items:center;gap:10px;margin:0 0 14px!important;color:var(--honey)!important;font-weight:900;font-size:18px}
.plus h2{font-size:clamp(26px,2.7vw,36px);margin-bottom:16px}
.plus-copy .plus-note{margin-top:14px;font-size:14px;color:var(--honey)}

.hero-actions{margin-top:30px}
.features{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.features li{padding:22px;border:var(--outline) solid var(--line);border-radius:var(--radius);background:var(--surface)}
.features li::before{content:"";display:block;width:28px;height:24px;margin-bottom:14px;background:var(--tone);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.features h3{font-size:19px;font-weight:800;margin-bottom:6px}
.features p{margin:0;color:var(--muted);font-size:15px;line-height:1.75}
.features a,.faq a,.facts a{color:var(--text)}
.faq{display:grid;gap:12px;max-width:880px}
.faq details{border:var(--outline) solid var(--line);border-radius:var(--radius);background:var(--surface)}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px;font-weight:800;font-size:18px;line-height:1.5;cursor:pointer;list-style:none;border-radius:12px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font-size:28px;font-weight:400;line-height:1}
.faq details[open] summary::after{content:"−"}
.faq details p{margin:-6px 0 0;padding:0 22px 20px;color:var(--muted)}

.shared .game{min-height:300px;margin:8px 0 24px}
.shared .game h1{font-size:clamp(38px,6vw,56px);font-weight:900;line-height:1.2}
.challenge{margin:0 0 4px;font-size:clamp(20px,2.4vw,26px);font-weight:800;line-height:1.6}

/* Footer */
.foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 28px;margin-top:56px;padding:26px 0 40px;border-top:var(--outline) solid var(--line);font-size:15px;color:var(--muted)}
.foot p{margin:0}
#links{display:flex;flex-wrap:wrap;gap:8px 22px}
#links a{color:var(--text);font-weight:600;text-decoration:none;border-bottom:2.5px solid transparent;line-height:1.6}
#links a:hover,#links a[aria-current]{border-bottom-color:var(--honey)}

/* Documents: privacy and terms */
.doc{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:28px 56px;align-items:start;padding:16px 0 24px}
.doc-head{grid-column:1/-1;display:flex;align-items:center;gap:18px;padding-bottom:22px;border-bottom:var(--outline) solid var(--line)}
.doc-head svg{width:64px;height:auto;flex:none}
.doc-head h1,.page h1{font-size:clamp(34px,5vw,56px)}
.updated{margin:6px 0 0;color:var(--muted);font-size:14px;font-weight:600}
.doc article{max-width:46em}
.doc article h2{position:relative;display:flex;align-items:center;gap:12px;font-size:24px;font-weight:800;margin:40px 0 12px;scroll-margin-top:20px}
.doc article h2::before{content:"";flex:none;width:20px;height:18px;background:var(--hex,var(--bee));clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.doc article h2:nth-of-type(6n+1){--hex:var(--bee)}.doc article h2:nth-of-type(6n+2){--hex:var(--wordle)}
.doc article h2:nth-of-type(6n+3){--hex:var(--code)}.doc article h2:nth-of-type(6n+4){--hex:var(--ladder)}
.doc article h2:nth-of-type(6n+5){--hex:var(--waffle)}.doc article h2:nth-of-type(6n+6){--hex:var(--connections)}
.doc article>p:first-of-type{font-size:19px;color:var(--muted)}
.toc{position:sticky;top:20px;grid-column:2;grid-row:2;padding:18px 20px;border:var(--outline) solid var(--line);border-radius:var(--radius);background:var(--surface)}
.toc summary{font-weight:800;cursor:pointer;list-style:none}
.toc summary::-webkit-details-marker{display:none}
.toc ol{margin:10px 0 0;padding:0;list-style:none;font-size:14.5px;line-height:1.5}
.toc li+li{margin-top:8px}
.toc a{text-decoration:none;color:var(--muted)}
.toc a:hover{color:var(--text);text-decoration:underline;text-decoration-color:var(--honey)}
.doc article{grid-column:1;grid-row:2}

/* Support and deletion */
.page{max-width:780px;padding:16px 0 24px}
.page h1{margin-bottom:14px}
.page .lede{margin-bottom:28px}
.page.wide{max-width:none}
.answers-title{font-size:clamp(24px,2.6vw,30px);margin:44px 0 18px}
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 24px}
.card h2{font-size:19px;font-weight:800;margin-bottom:6px}
.facts p{margin:0;color:var(--muted)}
.summary{margin:0 0 8px;padding:22px 24px;border:var(--outline) solid var(--card-line);border-radius:var(--radius);background:var(--bee);color:var(--ink)}
.summary-title{margin:0 0 6px;font-weight:900;font-size:18px}
.summary ul{margin:0;padding-inline-start:22px}
.summary li{margin:4px 0;font-weight:600;line-height:1.7}
.card{padding:26px;border:var(--outline) solid var(--line);border-radius:var(--radius);background:var(--surface)}
.contact{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.contact h2{font-size:20px;font-weight:800}
.contact p{margin:0;color:var(--muted)}
.hints{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.hints li{padding:20px;border:var(--outline) solid var(--card-line);border-radius:var(--radius);background:var(--tone);color:var(--ink);font-weight:600;line-height:1.6}
.hints li::before{content:"";display:block;width:24px;height:21px;margin-bottom:10px;background:var(--white);clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.more{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.note{margin:0 0 24px;padding:18px 20px;border:var(--outline) solid var(--card-line);border-radius:var(--radius);background:var(--bee);color:var(--ink);font-weight:600;line-height:1.7}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:16px}
.step{display:grid;grid-template-columns:52px minmax(0,1fr);gap:18px;padding:22px;border:var(--outline) solid var(--line);border-radius:var(--radius);background:var(--surface)}
.step-num{display:grid;place-items:center;width:52px;height:46px;background:var(--tone);color:var(--ink);font-weight:900;font-size:20px;clip-path:polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%)}
.step h2{font-size:21px;font-weight:800;margin:8px 0 6px}
.step p{margin:0;color:var(--muted)}
#status{white-space:pre-line;margin:14px 0 0;font-weight:600}
#status:empty{display:none}
.fallback{margin-top:24px;color:var(--muted)}
.page article p{max-width:42em}

@media (max-width:980px){
  .hero{grid-template-columns:1fr;gap:16px;padding-top:12px}
  .hero-art{max-width:400px}
  .games{grid-template-columns:repeat(2,minmax(0,1fr))}
  .days{grid-template-columns:1fr}
  .features{grid-template-columns:repeat(2,minmax(0,1fr))}
  .plus{grid-template-columns:1fr}
  .plus-art{min-height:0;height:220px}
  .plus-copy{padding:8px 28px 34px}
  .doc{grid-template-columns:1fr}
  .toc,.doc article{grid-column:1}
  .toc{position:static;grid-row:2}
  .doc article{grid-row:3}
}
@media (max-width:600px){
  :root{--gutter:16px}
  body{font-size:16px}
  .bar{padding:14px 0}
  .mark{width:40px}
  .word{height:30px}
  .latin{display:none}
  .pill{min-height:38px;padding:0 14px;font-size:14px}
  .game{min-height:172px;padding:14px}
  .game .glyph{width:50px;height:50px;top:10px;inset-inline-end:10px}
  .game .tag{top:13px;inset-inline-start:13px;font-size:11.5px}
  .game h3{font-size:24px}
  .game p{font-size:13.5px}
  .section{padding:36px 0}
  .day svg{width:76px}
  .games,.hints,.features,.facts{grid-template-columns:1fr}
  .game{min-height:0;padding-top:76px}
  .faq summary{font-size:16px;padding:16px 18px}
  .faq details p{padding:0 18px 18px}
  .card{padding:20px}
  .step{grid-template-columns:44px minmax(0,1fr);gap:14px;padding:18px}
  .step-num{width:44px;height:39px;font-size:18px}
  .contact .button{width:100%}
}
