@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/hanken-grotesk-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/hanken-grotesk-italic-latin.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;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/hanken-grotesk-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(assets/fonts/hanken-grotesk-normal-latin.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;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/outfit-normal-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(assets/fonts/outfit-normal-latin.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;
}
/* Hidden on Earth site. The palette, the stepped corners, the woven band and the knot-grid
   motifs are the brainless family's (brainless/docs/design.md): flat fills, no gradients,
   no shadows, one strong centre per screen. */
:root {
  --night: #0A1825; --ink: #042538; --cream: #FBDEA5; --bone: #F9EBDB;
  --madder: #CB221F; --vermilion: #F24B1E; --orange: #F97327;
  --saffron: #FBA335; --marigold: #FBB94B; --teal: #0C9794; --sage: #9BB38D;

  --bg: var(--night);
  --fg: var(--bone);
  --muted: #C9BBA6;
  --surface: var(--ink);
  --line: #1E3346;
  --accent: var(--vermilion);
  --link: #2FB5B1;
  --label: var(--saffron);
  --motif-ground: var(--cream);

  --display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step: 5px;
  --stepped: polygon(
    0 calc(2 * var(--step)), var(--step) calc(2 * var(--step)), var(--step) var(--step),
    calc(2 * var(--step)) var(--step), calc(2 * var(--step)) 0,
    calc(100% - 2 * var(--step)) 0, calc(100% - 2 * var(--step)) var(--step),
    calc(100% - var(--step)) var(--step), calc(100% - var(--step)) calc(2 * var(--step)),
    100% calc(2 * var(--step)),
    100% calc(100% - 2 * var(--step)), calc(100% - var(--step)) calc(100% - 2 * var(--step)),
    calc(100% - var(--step)) calc(100% - var(--step)), calc(100% - 2 * var(--step)) calc(100% - var(--step)),
    calc(100% - 2 * var(--step)) 100%,
    calc(2 * var(--step)) 100%, calc(2 * var(--step)) calc(100% - var(--step)),
    var(--step) calc(100% - var(--step)), var(--step) calc(100% - 2 * var(--step)),
    0 calc(100% - 2 * var(--step))
  );
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: var(--bone); --fg: var(--ink); --muted: #4B5560;
    --surface: var(--cream); --line: #E2CBA3;
    --link: #0A7F7C; --label: #B4380F;
    --motif-ground: var(--ink);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; max-width: 62ch; }
.eyebrow {
  font-family: var(--display); font-weight: 500; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--label);
}
.wrap { width: min(1080px, 100%); margin-inline: auto; padding-inline: 20px; }
section { padding-block: 72px; scroll-margin-top: 12px; }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* nav: links are knots on a thread; the header stays on night and ends in a woven selvedge */
.site-nav {
  background: var(--night); color: var(--bone);
  border-bottom: 6px solid var(--madder);
  border-image: repeating-linear-gradient(90deg,
    var(--madder) 0 14px, var(--cream) 14px 18px, var(--teal) 18px 32px, var(--cream) 32px 36px,
    var(--saffron) 36px 50px, var(--cream) 50px 54px) 6;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.brand img { width: 40px; height: 40px; clip-path: var(--stepped); --step: 3px; }
.brand:hover { text-decoration: none; color: var(--cream); }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; position: relative; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px;
  font-family: var(--display); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--bone); background: var(--night);
}
.nav-links a::before {
  content: ""; width: 7px; height: 7px; flex: none;
  border: 1.5px solid var(--cream); transform: rotate(45deg);
}
.nav-links a:hover, .nav-links a:focus-visible { text-decoration: none; color: var(--cream); }
.nav-links a:hover::before, .nav-links a[aria-current="page"]::before { background: var(--vermilion); border-color: var(--vermilion); }
.nav-links a[aria-current="page"] { color: var(--saffron); }
@media (min-width: 900px) {
  .nav-links::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: #2E4256; }
  .nav-links a:first-child { padding-left: 0; }
  .nav-links a:last-child { padding-right: 0; }
}
@media (max-width: 640px) {
  .nav-links a { padding: 6px 12px 6px 0; }
}

/* hero: always on night, one centre */
.hero { background: var(--night); color: var(--bone); padding-block: 56px 72px; }
.hero .wrap { display: grid; gap: 24px; justify-items: center; text-align: center; }
.hero .icon { width: 148px; height: 148px; clip-path: var(--stepped); --step: 9px; }
.hero h1 {
  font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem); font-weight: 800; max-width: 16ch;
  letter-spacing: -0.015em;
}
.hero .lede { color: #D9CDB8; font-size: 1.14rem; max-width: 54ch; }
.hero .eyebrow { color: var(--saffron); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  clip-path: var(--stepped); border: 0; cursor: pointer; text-decoration: none;
}
.btn:hover, .btn:focus-visible { text-decoration: none; }
.btn-primary { background: var(--vermilion); color: var(--night); }
.btn-primary:hover { background: var(--orange); }
.btn-quiet { background: var(--cream); color: var(--night); }
.btn-quiet:hover { background: var(--marigold); }
.hero .status { font-size: 0.92rem; color: #9FA9B4; }

/* woven band between sections */
.band { height: 30px; width: 100%; display: block; }

/* the playable painting */
.play { display: grid; gap: 16px; }
.stage {
  position: relative; clip-path: var(--stepped); --step: 6px; background: var(--ink);
  cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.stage picture { display: block; }
.stage img { width: 100%; pointer-events: none; }
.ring, .miss, .hintring {
  position: absolute; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}
.ring { border: 3px solid #36C26B; background: rgba(54, 194, 107, 0.14); }
.ring::after {
  content: ""; position: absolute; right: 6%; top: 6%; width: 22px; height: 22px; border-radius: 50%;
  background: #36C26B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.miss { width: 9%; border: 3px solid var(--bone); opacity: 0; }
.hintring { border: 4px solid var(--marigold); }
.win {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: rgba(10, 24, 37, 0.78); color: var(--bone); text-align: center; padding: 16px;
}
.win[hidden] { display: none; }
.win h3 { font-size: clamp(1.5rem, 1rem + 3vw, 2.6rem); font-weight: 800; }
.win .sticker {
  display: block; width: clamp(84px, 16vw, 148px); aspect-ratio: 1; border: 6px solid var(--bone);
  clip-path: var(--stepped); background-color: var(--bone); overflow: hidden;
}
.win .sticker img { width: 100%; height: 100%; object-fit: cover; }
.win .new { font-family: var(--display); font-weight: 700; color: var(--marigold); }
.hud { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }
.card {
  flex: 1 1 200px; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center;
  background: var(--surface); color: var(--fg); clip-path: var(--stepped); padding: 12px 16px;
  border: 0; font: inherit; text-align: left; cursor: pointer;
}
.card .thumb { display: block; width: 56px; height: 56px; clip-path: var(--stepped); --step: 3px; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; display: block; }
.card .count { font-family: var(--display); font-weight: 700; color: var(--label); }
.card[data-done="1"] .count { color: var(--teal); }
.card[data-done="1"] .name { text-decoration: line-through; opacity: 0.7; }
.hud .btn { flex: 0 0 auto; align-self: center; }
.play-note { color: var(--muted); font-size: 0.95rem; }

/* how it plays: four knots */
.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; }
.knot { display: grid; gap: 14px; align-content: start; }
.knot svg { width: 84px; height: 84px; }
.knot .step-no { font-family: var(--display); font-weight: 500; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--muted); }
.knot p { color: var(--muted); font-size: 0.98rem; }

/* the method: rules as cards */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.rule {
  background: var(--surface); clip-path: var(--stepped); padding: 22px 22px 24px;
  display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start;
}
.rule svg { width: 52px; height: 52px; }
.rule h3 { margin-bottom: 8px; }
.rule p { font-size: 0.98rem; }
.note { margin-top: 28px; color: var(--muted); font-size: 0.98rem; }

/* screens */
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.screens figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.screens img { clip-path: var(--stepped); --step: 6px; width: 100%; }
.screens figcaption { color: var(--muted); font-size: 0.93rem; }
.screens figcaption strong { display: block; color: var(--fg); font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
@media (max-width: 860px) { .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the paintings */
.rows { display: grid; gap: 44px; }
.row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.row-head .dot { width: 12px; height: 12px; background: var(--accent); transform: rotate(45deg); flex: none; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.painting { display: grid; gap: 10px; align-content: start; }
.painting picture { display: block; }
.painting img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: var(--stepped); }
.painting .by { color: var(--muted); font-size: 0.92rem; }
.painting .find { font-size: 0.93rem; color: var(--muted); }
.painting .find b { color: var(--label); font-family: var(--display); font-weight: 700; }

/* for grown-ups */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 28px; }
.facts h3 { margin-bottom: 8px; }
.facts p { color: var(--muted); font-size: 0.98rem; }
.facts .dot { width: 14px; height: 14px; background: var(--teal); margin-bottom: 14px; transform: rotate(45deg); }
.aside { border-left: 4px solid var(--vermilion); padding-left: 20px; display: grid; gap: 10px; }
.aside p { color: var(--muted); }

/* document pages: support, privacy, credits */
.page-head { padding-block: 40px 40px; display: grid; gap: 14px; }
.page-head h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); font-weight: 800; letter-spacing: -0.015em; }
.page-head .lede { color: var(--muted); font-size: 1.08rem; }
.doc { display: grid; gap: 16px; padding-bottom: 72px; }
.doc > * { min-width: 0; }
.doc h2 { font-size: 1.45rem; font-weight: 700; margin-top: 24px; }
.doc h3 { margin-top: 12px; }
.doc p, .doc li { max-width: 70ch; }
.doc ol, .doc ul { margin: 0; padding-left: 1.15em; display: grid; gap: 10px; }
.doc li::marker { color: var(--label); }
.doc .small { color: var(--muted); font-size: 0.93rem; }
.contact {
  background: var(--surface); clip-path: var(--stepped); padding: 24px; display: grid; gap: 12px; justify-items: start;
}
.faq { display: grid; gap: 0; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.faq summary::marker { color: var(--accent); }
.faq details p { color: var(--muted); margin-top: 10px; }
.lang-divider {
  font-family: var(--display); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--label); border-top: 2px solid var(--line); padding-top: 20px; margin-top: 32px;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 640px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--display); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.work { font-style: italic; }
.pill { font-family: var(--display); font-weight: 700; font-size: 0.8rem; white-space: nowrap; color: var(--label); }
.pill.cc0 { color: var(--link); }

/* footer */
footer { background: var(--night); color: var(--bone); padding-block: 56px 40px; }
footer .wrap { display: grid; gap: 28px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.foot-top p { color: #D9CDB8; font-size: 0.98rem; }
.foot-links { display: grid; gap: 8px; font-size: 0.98rem; }
.foot-links a { color: var(--bone); }
.foot-links a:hover { color: var(--saffron); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: #9FA9B4; border-top: 1px solid #1E3346; padding-top: 20px; }
.foot-motifs { display: flex; gap: 14px; flex-wrap: wrap; }
.foot-motifs svg { width: 34px; height: 34px; }

@media (max-width: 640px) {
  section { padding-block: 56px; }
  .foot-top { grid-template-columns: 1fr; }
  .rule { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .rule svg { width: 44px; height: 44px; }
  .hero .icon { width: 116px; height: 116px; --step: 7px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background 120ms linear; }
  .ring { animation: found 380ms steps(4, end); }
  .miss.go { animation: miss 520ms linear; }
  .hintring { animation: hint 700ms steps(6, end) infinite alternate; }
  @keyframes found { from { transform: translate(-50%, -50%) scale(1.5); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
  @keyframes miss { from { opacity: 0.7; transform: translate(-50%, -50%) scale(0.4); } to { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
  @keyframes hint { from { transform: translate(-50%, -50%) scale(0.85); } to { transform: translate(-50%, -50%) scale(1.15); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .miss.go { opacity: 0.6; }
}

/* blocks on the document pages */
.block { display: grid; gap: 14px; }
.block + .block { margin-top: 20px; }
.block h2 .em { color: var(--accent); }
.block .lead { font-size: 1.08rem; }
.block .note, .block .updated, .block .tr-titles { color: var(--muted); font-size: 0.93rem; }
.block .note { border-left: 4px solid var(--vermilion); padding-left: 16px; margin-top: 0; }

/* wide screens: the cards sit beside the painting so both stay in view */
@media (min-width: 900px) {
  .play { grid-template-columns: minmax(0, 1fr) 250px; align-items: start; column-gap: 20px; }
  .play .hud { flex-direction: column; }
  .play .card { flex: 0 0 auto; }
  .play .hud .btn { align-self: stretch; justify-content: center; }
  .play-note { grid-column: 1 / -1; }
}
