:root {
  color-scheme: light;
  --ink: #152c2b;
  --muted: #506b68;
  --paper: #fff;
  --canvas: #f5f8f6;
  --line: #d3dfda;
  --accent: #0b6551;
  --accent-hover: #074d3d;
  --pale: #e4f2ea;
  --radius: 20px;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
body, input, button { font-size: 16px; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { color: var(--accent-hover); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #99700d; outline-offset: 5px; }
::selection { background: #cee8dd; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.8rem, 7.2vw, 5.7rem); max-width: 900px; margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { max-width: 70ch; }
svg { display: block; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 5; padding: 12px; background: white; }
.skip-link:focus { top: 12px; }
.notice { max-width: none; margin: 0; padding: 10px 24px; text-align: center; color: #414f45; background: #eff3e5; font-size: .86rem; }
.notice-warning { padding: 18px 22px; text-align: left; background: #fff4cf; border-radius: 12px; margin-bottom: 30px; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.navigation { min-height: 94px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.15rem; font-weight: 750; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--accent); color: white; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 27px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav-links a:hover { text-decoration: underline; }
.menu-button { display: none; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 10px; background: var(--accent); color: white; font-weight: 650; text-decoration: none; }
.button:hover { color: white; background: var(--accent-hover); }
.button-secondary { background: transparent; color: var(--accent); }
.button-secondary:hover { background: var(--pale); color: var(--accent); }
.button-danger { background: #922b25; border-color: #922b25; }
.button-danger:hover { background: #6a1e1a; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero { padding: clamp(64px, 10vw, 128px) 0; background: var(--canvas); }
.hero-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 52px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 5.8vw, 4.8rem); }
.hero .lead { max-width: 46ch; }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.28rem); color: var(--muted); }
.hero-art { border: 1px solid var(--line); background: #e3ece6; border-radius: 40px; padding: 28px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.art-grid { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; transform: rotate(-8deg); }
.art-tile { aspect-ratio: 1; border-radius: 24px; background: #c4dbce; display: grid; place-items: center; }
.art-tile:nth-child(2) { background: #f8f5da; }
.art-tile:nth-child(3) { background: #f8fbf8; }
.art-tile:nth-child(4) { background: #296c58; }
.art-circle { width: 50%; height: 50%; border: 13px solid #34715e; border-radius: 50%; }
.art-line { width: 55%; height: 16px; background: #c0a644; border-radius: 20px; transform: rotate(-35deg); }
.art-cross { font-size: clamp(3rem, 6vw, 5rem); color: #3e705f; font-weight: 200; line-height: 1; }
.art-dot { width: 38%; height: 38%; border-radius: 50%; background: #d8e9bd; }
.section { padding: 82px 0; }
.section-tint { background: var(--canvas); }
.section-heading { max-width: 690px; margin-bottom: 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.card p { margin-bottom: 0; color: var(--muted); }
.number { font-size: .85rem; font-weight: 750; color: var(--accent); margin-bottom: 28px; display: block; }
.download-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.download { padding: 24px 20px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.download strong { font-size: 1.2rem; }
.download span { font-size: .9rem; color: var(--muted); }
.download[aria-disabled='true'] { background: var(--canvas); cursor: default; }
.small { font-size: .9rem; color: var(--muted); }
.faq { max-width: 820px; }
details { border-top: 1px solid var(--line); padding: 22px 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1.1rem; font-weight: 650; }
details p { margin-top: 16px; margin-bottom: 0; color: var(--muted); }
.page-heading { padding: 66px 0 42px; background: var(--canvas); }
.page-heading h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
.document { max-width: 790px; margin-inline: auto; padding: 52px 0 80px; }
.document section { margin-bottom: 42px; scroll-margin-top: 24px; }
.document h2 { font-size: 1.65rem; margin-bottom: 18px; }
.document li { margin-bottom: 9px; }
.document .card { margin-top: 24px; }
.toc { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 40px; }
.site-footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-layout { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 22px; max-width: 560px; }
.footer-links a { font-size: .9rem; color: var(--muted); }
.copyright { margin: 20px 0 0; font-size: .85rem; color: var(--muted); }
label { display: block; font-weight: 650; margin-bottom: 7px; }
input { display: block; width: 100%; padding: 12px; border: 1px solid #849e91; border-radius: 8px; margin-bottom: 19px; color: var(--ink); background: white; }
.account-status { background: var(--pale); border-radius: 10px; padding: 16px; margin-top: 22px; overflow-wrap: anywhere; }
.account-status[data-error='true'] { background: #fbe8e6; color: #721c17; }
.account-status:empty { display: none; }
.account-email { overflow-wrap: anywhere; }
@media (max-width: 840px) {
  .hero-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 410px; width: 100%; margin-inline: auto; }
  .grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: repeat(2, 1fr); }
  .navigation { flex-wrap: wrap; padding-block: 16px; }
  .nav-links { flex-wrap: wrap; }
  .js .menu-button { display: block; }
  .js .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); padding: 24px; border: 1px solid var(--line); box-shadow: 0 16px 30px #173e2c18; border-radius: 12px; z-index: 2; }
  .js .nav-links[data-open] { display: flex; align-items: flex-start; flex-direction: column; }
  .section { padding: 58px 0; }
}
@media (max-width: 480px) {
  .shell { width: calc(100% - 32px); }
  .hero { padding: 56px 0; }
  .hero-art { padding: 20px; border-radius: 28px; }
  .card { padding: 22px; }
  .download-grid { grid-template-columns: 1fr; }
  .actions > .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@media (prefers-contrast: more) {
  :root { --muted: #253e36; --line: #557466; }
}

/* Wordgrid's public pages share the game's forest, sage and warm paper. */
.brand { font-family: Georgia, 'Times New Roman', serif; font-size: 1.65rem; font-weight: 600; letter-spacing: -.05em; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; background: transparent; }
.document p { overflow-wrap: anywhere; }
body[data-page="home"] { --ink: #15382c; --muted: #53665a; --line: #d8e0d5; --paper: #fcfdf9; }
body[data-page="home"] .site-header { background: #fcfdf9; border: 0; }
body[data-page="home"] .navigation { min-height: 94px; }
body[data-page="home"] .nav-links { gap: 34px; font-size: .9375rem; }
body[data-page="home"] .nav-support { border: 1px solid #bcccb9; padding: 8px 17px; border-radius: 999px; }
.wordgrid-hero { background: #15372b; color: #f5f7eb; padding: 70px 0 0; overflow: hidden; }
.wordgrid-hero .hero-layout { grid-template-columns: .98fr 1.02fr; gap: 60px; align-items: center; padding-bottom: 54px; }
.wordgrid-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.055em; line-height: 1.04; font-size: clamp(3.4rem, 5.7vw, 5.25rem); margin: 26px 0; }
.wordgrid-hero h1 em { color: #d0e4b6; font-weight: inherit; }
.wordgrid-hero .eyebrow { color: #d0e4b6; font-size: .875rem; letter-spacing: .105em; }
.wordgrid-hero .lead { color: #d2dfd0; max-width: 31ch; font-size: 1.17rem; line-height: 1.7; margin-bottom: 30px; }
.wordgrid-hero .button { background: #d0e4b6; color: #15372b; border-color: #d0e4b6; border-radius: 999px; padding: 14px 23px; min-height: 53px; font-size: .9375rem; }
.wordgrid-hero .button:hover { background: #e3efce; }
.hero-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; color: #b3c6b6; font-size: .875rem; }
.release-label { color: #eef5df; letter-spacing: .01em; }
.hero-footnote { display: flex; justify-content: space-between; gap: 20px; color: #b9ccbc; border-top: 1px solid #3d5946; padding-block: 21px; font-size: .875rem; }
.puzzle-preview { margin: 0; padding: 24px; border: 1px solid #52694e; border-radius: 25px; background: #203e2f; box-shadow: 0 22px 46px #071d162e; }
.puzzle-preview figcaption { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }
.preview-kicker { color: #b9cfac; font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; }
.puzzle-preview figcaption strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.75rem; font-weight: 400; line-height: 1.17; letter-spacing: -.025em; }
.puzzle-preview figcaption > span:last-child { color: #c6d8be; font-size: .875rem; }
.preview-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 11px; font-size: .8125rem; color: #ecf5df; }
.toolbar-muted, .preview-lock-label { color: #c0cfb8; }
.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.preview-tile { min-width: 0; height: 94px; padding: 7px 3px; border: 1px solid #536448; border-radius: 12px; background: #132519; color: #f0f5e2; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.preview-tile img { display: block; width: 45px; height: 45px; max-width: 85%; object-fit: contain; filter: brightness(0) invert(1); }
.preview-tile span { font-size: .875rem; line-height: 1.12; overflow-wrap: normal; word-break: normal; }
.preview-label-short { display: none; }
.preview-tile small { font-size: .75rem; line-height: 1.05; }
.preview-correct { background: #d0e4b6; border-color: #d9edbf; color: #17341f; }
.preview-close { background: #e0bb73; border-color: #eed098; color: #34270c; }
.preview-near { background: #a8c9de; border-color: #c4e0ef; color: #163b4b; }
.preview-correct img, .preview-close img, .preview-near img { filter: brightness(0); }
.preview-action { display: flex; gap: 14px; align-items: center; margin-top: 17px; min-height: 49px; }
.preview-button { flex-shrink: 0; color: #f0f5e2; background: transparent; border: 1px solid #92ac80; border-radius: 999px; padding: 9px 16px; min-height: 44px; font-size: .875rem; font-weight: 600; }
.preview-button:hover { background: #345039; }
.preview-feedback { color: #d2dfc8; font-size: .875rem; line-height: 1.45; margin: 0; }
.preview-caption { margin: 14px 0 0; color: #b6c9ac; font-size: .75rem; line-height: 1.5; }
.preview-new-lock { animation: tile-lock 650ms ease-out; }
@keyframes tile-lock { 0% { transform: scale(.95); box-shadow: 0 0 0 0 #e5f3bf00; } 40% { transform: scale(1.025); box-shadow: 0 0 24px 4px #d7efac88; } 100% { transform: scale(1); box-shadow: 0 0 0 0 #e5f3bf00; } }
.wordgrid-hero :focus-visible { outline: 3px solid #eef5c6; outline-offset: 4px; }
body[data-page="home"] .section { padding-block: 92px; }
body[data-page="home"] .section h2, .discovery-section h2, .coming-section h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-size: clamp(2.6rem, 4.5vw, 4rem); line-height: 1.09; letter-spacing: -.045em; }
body[data-page="home"] .eyebrow { font-size: .8125rem; letter-spacing: .11em; }
body[data-page="home"] h2 em { font-weight: 400; }
.how-section .section-heading { margin-bottom: 48px; }
.steps-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step { border-top: 1px solid #c8d5c4; padding-top: 27px; }
.step h3 { font-size: 1.125rem; letter-spacing: -.02em; margin-bottom: 12px; }
.step p { color: #53665a; margin: 0; font-size: 1rem; line-height: 1.7; }
.step-art { display: flex; align-items: center; height: 45px; margin-bottom: 25px; gap: 5px; }
.step-art i { display: block; width: 32px; height: 38px; border: 1px solid #476251; border-radius: 8px; background: #15372b; }
.swap-art i:first-child { transform: rotate(-12deg); background: #d0e4b6; }
.swap-art i:last-child { transform: rotate(12deg); }
.feedback-art i { width: 28px; height: 34px; border: 0; background: #d0e4b6; }
.feedback-art i:nth-child(2) { background: #e0bb73; }
.feedback-art i:nth-child(3) { background: #a8c9de; }
.lock-art span { display: grid; place-items: center; width: 42px; height: 42px; background: #d0e4b6; border-radius: 11px; font-size: 1.6rem; }
.discovery-section { background: #edf2e4; padding-block: 78px; }
.discovery-layout { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 88px; }
.discovery-art { position: relative; display: flex; justify-content: center; padding: 16px 25px; }
.discovery-tile { width: 240px; aspect-ratio: 1; border-radius: 36px; padding: 30px; background: #d0e4b6; border: 1px solid #bace9e; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-7deg); box-shadow: 0 14px 0 #dde6cf; }
.discovery-tile img { width: 110px; height: 110px; filter: brightness(0); margin-bottom: 12px; }
.discovery-tile span { font-size: 1rem; }
.discovery-tile strong { font-size: 1.125rem; font-weight: 600; }
.discovery-spark { position: absolute; font-size: 3rem; color: #bf823b; right: 4%; top: 4%; line-height: 1; }
.discovery-copy { max-width: 515px; }
.discovery-copy .lead { font-size: 1.125rem; color: #3f5845; }
.discovery-copy > p:last-child { color: #526951; margin: 0; }
.journey-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
.journey-layout .lead { color: #3e5746; }
.journey-layout > div > p:not(.lead):not(.eyebrow) { color: #53665a; }
.questions-section { border-top: 1px solid #d8e0d5; background: #f5f7ef; }
.questions-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; }
.questions-layout .section-heading { margin-bottom: 0; }
.questions-layout .section-heading > p:last-child { margin-top: 28px; color: #53665a; }
.questions-layout details { border-color: #cad7c3; padding-block: 24px; }
.questions-layout summary { font-size: 1rem; }
.questions-layout details p { font-size: .9375rem; }
.coming-section { background: #d0e4b6; color: #17372a; padding-block: 73px; }
.coming-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.coming-section .eyebrow { color: #355b37; }
.coming-section h2 { margin-bottom: 20px; }
.coming-section p { color: #36553b; }
.platforms { font-size: .9375rem; margin: 23px 0 0; }
.platforms span { padding-inline: 8px; }
.contact-block { justify-self: end; border-left: 1px solid #a9c58d; padding-left: 54px; }
.contact-block img { display: block; border-radius: 21px; margin-bottom: 24px; }
.contact-block p { line-height: 1.5; margin-bottom: 12px; }
.contact-block a { color: #17372a; font-size: 1.0625rem; font-weight: 650; }
body[data-page="home"] .site-footer { padding-block: 37px 25px; background: #fcfdf9; }
.footer-layout { align-items: center; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 25px; }
.footer-bottom p { margin: 0; font-size: .8125rem; }
@media (max-width: 1080px) {
  .wordgrid-hero .hero-layout { gap: 35px; }
  .puzzle-preview { padding: 20px; }
  .preview-tile { height: 94px; }
  .preview-tile img { width: 40px; height: 40px; }
  .steps-list { gap: 30px; }
  .discovery-layout, .journey-layout, .questions-layout { gap: 50px; }
}
@media (max-width: 840px) {
  body[data-page="home"] .navigation { min-height: 82px; }
  .wordgrid-hero { padding-top: 46px; }
  .wordgrid-hero .hero-layout { grid-template-columns: 1fr; gap: 42px; padding-bottom: 36px; }
  .hero-copy { max-width: 620px; }
  .wordgrid-hero h1 { font-size: clamp(3.4rem, 8.6vw, 5rem); }
  .wordgrid-hero .lead { max-width: 42ch; }
  .hero-meta { flex-direction: row; flex-wrap: wrap; gap: 8px 17px; }
  .puzzle-preview { width: 100%; max-width: 510px; justify-self: center; padding: 24px; }
  .preview-tile { height: 98px; }
  .preview-tile img { width: 47px; height: 47px; }
  .hero-footnote { flex-direction: column; gap: 4px; }
  body[data-page="home"] .section { padding-block: 64px; }
  .steps-list { grid-template-columns: 1fr; gap: 28px; }
  .step { padding-top: 23px; }
  .step-art { float: left; width: 110px; margin-top: 3px; }
  .step h3, .step p { margin-left: 110px; }
  .discovery-layout { grid-template-columns: .8fr 1.2fr; gap: 30px; }
  .discovery-tile { width: 200px; padding: 20px; }
  .discovery-tile img { width: 90px; height: 90px; }
  .discovery-art { padding-inline: 0; }
  .discovery-spark { right: 0; }
  .journey-layout, .questions-layout { grid-template-columns: 1fr; gap: 22px; }
  .questions-layout .section-heading > p:last-child { margin-top: 20px; }
  .coming-layout { grid-template-columns: 1fr 1fr; gap: 30px; }
  .contact-block { padding-left: 30px; }
}
@media (max-width: 580px) {
  .wordgrid-hero h1 { font-size: clamp(3.05rem, 10vw, 4.2rem); }
  .wordgrid-hero .lead { font-size: 1.0625rem; }
  .wordgrid-hero .actions > .button { width: auto; }
  .hero-meta { flex-direction: column; font-size: .8125rem; }
  .puzzle-preview { padding: 20px 14px; border-radius: 21px; }
  .puzzle-preview figcaption strong { font-size: 1.65rem; }
  .preview-toolbar { font-size: .75rem; }
  .preview-grid { gap: 6px; }
  .preview-tile { height: 94px; border-radius: 10px; }
  .preview-tile img { width: 40px; height: 40px; }
  .preview-tile span { font-size: .875rem; }
  .preview-tile small { font-size: .75rem; }
  .preview-action { gap: 11px; }
  .preview-button { padding-inline: 12px; font-size: .8125rem; }
  .preview-feedback { font-size: .875rem; }
  .discovery-section { padding-block: 52px; }
  .discovery-layout { grid-template-columns: 1fr; gap: 42px; }
  .discovery-art { max-width: 280px; width: 100%; justify-self: center; }
  .discovery-tile { width: 220px; }
  .discovery-copy { max-width: 100%; }
  .coming-layout { grid-template-columns: 1fr; gap: 37px; }
  .coming-section { padding-block: 54px; }
  .contact-block { justify-self: stretch; border-left: 0; border-top: 1px solid #a9c58d; padding: 26px 0 0; }
  .contact-block img { float: left; width: 64px; height: 64px; margin: 0 23px 10px 0; border-radius: 17px; }
  .contact-block p { margin-bottom: 6px; }
  .contact-block a { font-size: .9375rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-links { gap: 12px 19px; }
}
@media (max-width: 420px) {
  .preview-label-short { display: inline; }
  .preview-label-full { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-new-lock { animation: none; }
}
@media (prefers-contrast: more) {
  .wordgrid-hero .lead, .hero-meta, .hero-footnote, .preview-feedback, .preview-caption, .toolbar-muted, .preview-lock-label { color: #fff; }
  .step p, .discovery-copy .lead, .discovery-copy > p:last-child { color: #17372a; }
}
