/*
 * Wordy's site: the game's papers (WordyPalette / Skins.kt), Nunito, raised sheets and wells.
 * Source of hosting/public/css/site.<hash>.css — built by tools/site/build.py, never edit the output.
 */

/* Nunito Variable (OFL), one file per script; the browser fetches only what a page uses. */
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/fonts/nunito-cyrillic.63b14e3ef0.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/fonts/nunito-latin-ext.2c8d792869.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-display: swap; font-weight: 200 1000;
  src: url("/fonts/nunito-latin.ba344451ea.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Papers: surface, raised sheet, ink, soft ink, grain. Light first, the night side below. ---- */
:root, .paper-cream {
  --surface: #F1E6D2; --raised: #FBF6EA; --ink: #2C241B; --ink-soft: #5B5041;
  --grain: rgba(44, 36, 27, .07); --shade: rgba(44, 36, 27, .30); --shade-far: rgba(44, 36, 27, .16);
  --accent: #C7703F; --accent-ink: #A85830; --well: rgba(44, 36, 27, .07);
}
.paper-kraft { --surface: #E4D1AF; --raised: #EDDFC3; --ink: #2B2015; --ink-soft: #4E3D2A; --grain: rgba(43, 32, 21, .09); }
.paper-notebook { --surface: #F6F4EC; --raised: #FFFFFF; --ink: #232C38; --ink-soft: #465262; --grain: rgba(62, 108, 147, .12); --accent-ink: #3E6C93; }
.paper-blueprint { --surface: #DDE7F0; --raised: #EBF1F7; --ink: #1B3350; --ink-soft: #3A5372; --grain: rgba(27, 51, 80, .09); --accent-ink: #1B3350; }
.paper-sage { --surface: #E2E8D5; --raised: #EEF2E4; --ink: #242E1E; --ink-soft: #46523D; --grain: rgba(36, 46, 30, .05); --accent-ink: #4A7352; }
.paper-lavender { --surface: #E7E1EF; --raised: #F2EEF7; --ink: #2A2236; --ink-soft: #4B4059; --grain: rgba(42, 34, 54, .055); --accent-ink: #6A4B94; }
/* the night sheet is night whatever the reader's theme */
.paper-night {
  --surface: #221C16; --raised: #2C241D; --ink: #F1E6D2; --ink-soft: #CFC2AC;
  --grain: rgba(241, 230, 210, .05); --shade: rgba(0, 0, 0, .50); --shade-far: rgba(0, 0, 0, .32);
  --accent-ink: #E0965F; --well: rgba(0, 0, 0, .22);
}

@media (prefers-color-scheme: dark) {
  :root, .paper-cream {
    --surface: #221C16; --raised: #2C241D; --ink: #F1E6D2; --ink-soft: #CFC2AC;
    --grain: rgba(241, 230, 210, .05); --shade: rgba(0, 0, 0, .50); --shade-far: rgba(0, 0, 0, .32);
    --accent-ink: #E0965F; --well: rgba(0, 0, 0, .22);
  }
  .paper-kraft { --surface: #2B2117; --raised: #362A1D; --ink: #EEDDBE; --ink-soft: #D0BC9A; --grain: rgba(238, 221, 190, .075); --shade: rgba(0, 0, 0, .5); --shade-far: rgba(0, 0, 0, .32); --well: rgba(0, 0, 0, .22); --accent-ink: #E0965F; }
  .paper-notebook { --surface: #1C2129; --raised: #252B34; --ink: #E6EAF0; --ink-soft: #C3CAD4; --grain: rgba(230, 234, 240, .06); --shade: rgba(0, 0, 0, .5); --shade-far: rgba(0, 0, 0, .32); --well: rgba(0, 0, 0, .22); --accent-ink: #8DB4D8; }
  .paper-blueprint { --surface: #152B47; --raised: #1B3453; --ink: #EEF4FB; --ink-soft: #CCDAEA; --grain: rgba(238, 244, 251, .08); --shade: rgba(0, 0, 0, .5); --shade-far: rgba(0, 0, 0, .32); --well: rgba(0, 0, 0, .22); --accent-ink: #CCDAEA; }
  .paper-sage { --surface: #1B221A; --raised: #232B21; --ink: #E4EBD8; --ink-soft: #C3CDB6; --grain: rgba(228, 235, 216, .04); --shade: rgba(0, 0, 0, .5); --shade-far: rgba(0, 0, 0, .32); --well: rgba(0, 0, 0, .22); --accent-ink: #9CC2A2; }
  .paper-lavender { --surface: #221C2A; --raised: #2B2434; --ink: #ECE6F3; --ink-soft: #CEC5DA; --grain: rgba(236, 230, 243, .04); --shade: rgba(0, 0, 0, .5); --shade-far: rgba(0, 0, 0, .32); --well: rgba(0, 0, 0, .22); --accent-ink: #C3A8E6; }
}

/* the grains, as PaperBackdrop prints them: dots, fibres, squares, linen, laid lines */
.paper-cream, .paper-night, body {
  background-color: var(--surface);
  background-image: radial-gradient(circle, var(--grain) 1px, transparent 1.3px);
  background-size: 6px 6px;
}
.paper-kraft {
  background-color: var(--surface);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .13 0 0 0 0 .08 0 0 0 -2.2 1.25'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23f)' opacity='.12'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='512' height='512'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='3' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .13 0 0 0 0 .08 0 0 0 .9 -.38'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23b)' opacity='.35'/%3E%3C/svg%3E");
}
.paper-notebook, .paper-blueprint {
  background-color: var(--surface);
  background-image: linear-gradient(var(--grain) 1px, transparent 1px), linear-gradient(90deg, var(--grain) 1px, transparent 1px);
  background-size: 18px 18px;
}
.paper-blueprint { background-size: 28px 28px; }
.paper-sage {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(0deg, var(--grain) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, var(--grain) 0 1px, transparent 1px 4px);
}
.paper-lavender {
  background-color: var(--surface);
  background-image: linear-gradient(90deg, var(--grain) 0 1px, transparent 1px), repeating-linear-gradient(0deg, var(--grain) 0 .5px, transparent .5px 2px);
  background-size: 26px 100%, auto;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font: 500 18px/1.6 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
section, header, footer { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 900; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(40px, 7vw, 68px); }
h2 { font-size: clamp(30px, 4.6vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; text-wrap: pretty; }
.soft { color: var(--ink-soft); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ---- Header ---- */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 900; font-size: 26px; margin-right: auto; }
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 1px 2px var(--shade), 0 6px 14px var(--shade-far); }
.nav-link { color: var(--ink); font-weight: 800; text-decoration: none; padding: 8px 4px; }
.nav-link:hover { text-decoration: underline; }
@media (max-width: 520px) { .top .nav-link { display: none; } .brand { font-size: 22px; } }

/* the language switch: the game's SegmentedSwitch — a well with a raised tile on the current one */
.langs { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: var(--well);
  box-shadow: inset 0 1px 3px var(--shade-far), inset 0 -1px 0 rgba(255, 255, 255, .25); }
.langs a { min-width: 44px; padding: 6px 10px; border-radius: 999px; text-align: center; font-weight: 900; font-size: 14px;
  letter-spacing: .04em; color: var(--ink-soft); text-decoration: none; }
.langs a[aria-current="page"] { background: var(--raised); color: var(--ink); box-shadow: 0 1px 2px var(--shade), 0 3px 8px var(--shade-far); }
.langs a:not([aria-current]):hover { color: var(--ink); }

/* ---- Sheets (full-width bands of one paper) ---- */
.sheet { position: relative; padding: clamp(56px, 9vw, 112px) 0; }
.sheet + .sheet { box-shadow: inset 0 10px 14px -12px var(--shade-far); }
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip > :first-child { order: 2; }
}
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 34em; }

/* ---- Hero ---- */
.hero { padding-top: clamp(16px, 4vw, 48px); }
.hero h1 { margin-bottom: .35em; }
.store { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 28px; }
.badge { display: inline-block; border-radius: 12px; transition: transform .12s ease; }
.badge img { height: 64px; width: auto; margin: -10px; }  /* the official artwork carries its own clear space */
.badge:hover { transform: translateY(-2px); }
.badge:active { transform: translateY(1px); }
.ios { font-size: 15px; font-weight: 700; color: var(--ink-soft); margin: 0; }

/* ---- Pictures: a card (screen) with stickers around it ---- */
.shot { position: relative; margin: 0 auto; width: min(100%, var(--w, 380px)); }
.shot > img.card { width: 100%; transform: rotate(var(--tilt, 0deg)); }
.sticker { position: absolute; width: var(--s, 84px); left: var(--x); top: var(--y); transform: rotate(var(--r, 0deg));
  filter: drop-shadow(0 2px 2px var(--shade-far)); pointer-events: none; }
.sticker img { width: 100%; }
@media (prefers-color-scheme: dark) { .sticker .day { display: none; } }
@media (prefers-color-scheme: light) { .sticker .night { display: none; } }
.paper-night .sticker .day { display: none; }
.paper-night .sticker .night { display: block !important; }
@media (prefers-reduced-motion: no-preference) {
  .sticker { animation: land .7s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: var(--d, .2s); }
  @keyframes land { from { opacity: 0; transform: rotate(var(--r, 0deg)) scale(1.5); } }
}

/* ---- The two timed modes side by side ---- */
.pair { display: grid; gap: 48px; margin-top: 40px; }
@media (min-width: 760px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair .shot { --w: 330px; margin-bottom: 20px; }
.pair h3 { text-align: center; }
.pair p { text-align: center; color: var(--ink-soft); max-width: 26em; margin: 0 auto; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* ---- Language pills ---- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding: 0; list-style: none; }
.pills a { display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--raised); color: var(--ink);
  font-weight: 800; text-decoration: none; box-shadow: 0 1px 2px var(--shade), 0 4px 10px var(--shade-far); }
.pills a[aria-current="page"] { background: var(--accent); color: #FBF6EA; }

/* ---- Facts ---- */
.facts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: var(--raised); border-radius: 22px; padding: 22px 22px 20px;
  box-shadow: 0 1px 2px var(--shade), 0 10px 24px var(--shade-far); }
.facts h3 { font-size: 20px; margin-bottom: 6px; }
.facts p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.facts li::before { content: ""; display: block; width: 28px; height: 8px; border-radius: 99px; margin-bottom: 14px; background: var(--dot); }

/* ---- Final call ---- */
.cta { text-align: center; }
.cta .tile { width: 112px; height: 112px; margin: 0 auto 24px; border-radius: 28px; box-shadow: 0 2px 3px var(--shade), 0 14px 30px var(--shade-far); transform: rotate(-4deg); }
.cta .store { align-items: center; }
.cta .lede { margin: 0 auto; }

/* ---- Footer ---- */
.foot { padding: 40px 0 56px; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink-soft); font-weight: 700; text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot small { color: var(--ink-soft); font-size: 14px; }

/* ---- Text pages (support, legal, 404): one raised sheet on the paper ---- */
.page { padding: 8px 0 72px; }
.page .sheet-card { max-width: 820px; margin: 0 auto; background: var(--raised); border-radius: 28px;
  padding: clamp(24px, 5vw, 56px); box-shadow: 0 1px 2px var(--shade), 0 16px 40px var(--shade-far); }
.page h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-size: 22px; margin-top: 1.6em; }
.legal li { margin: 6px 0; }
.legal .meta { color: var(--ink-soft); font-weight: 700; }
.faq { margin: 28px 0 8px; }
.faq details { border-top: 2px solid var(--well); }
.faq details:last-child { border-bottom: 2px solid var(--well); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 900; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--accent-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-soft); }
.button { display: inline-block; margin-top: 8px; padding: 14px 28px; border-radius: 18px; background: var(--accent); color: #FBF6EA;
  font-weight: 900; font-size: 18px; text-decoration: none; box-shadow: 0 5px 0 #A85830, 0 10px 20px var(--shade-far); transition: transform .12s, box-shadow .12s; }
.button:hover { transform: translateY(2px); box-shadow: 0 3px 0 #A85830, 0 8px 16px var(--shade-far); }
.mail { margin-top: 36px; }
.lost { text-align: center; }
.lost .letters { display: inline-grid; grid-template-columns: repeat(4, 52px); gap: 6px; padding: 12px; border-radius: 20px; margin: 8px 0 28px;
  background: var(--well); box-shadow: inset 0 2px 4px var(--shade-far); }
.lost .letters span { display: grid; place-items: center; height: 52px; font-weight: 900; font-size: 24px; color: var(--ink-soft); }
.lost .letters span.w { background: var(--accent); color: #FBF6EA; border-radius: 14px; box-shadow: 0 2px 0 #A85830; }
