/* itamago · Goban — style « Washi », the colours of the game's own interface. */

:root {
  --paper: #F7F4EE;
  --surface: #FFFDF9;
  --bars: #ECE7DE;
  --hollow: #F0ECE4;
  --rule: #E2DBCF;
  --border: #CFC6B7;
  --ink: #24211D;
  --ink-soft: #5C564D;
  --ink-quiet: #6F685E;
  --accent: #B23A26;
  --accent-hover: #9A3120;
  --on-accent: #FFF8F2;
  --primary: #2A2622;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --logo: "Segoe UI", "Segoe UI Variable Display", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  /* Shadows of Goban. Soft shadow (ImGui::ShadowSoft in Ease) : one neutral Gaussian, straight down, darkening the paper ; the letters stay sharp.
       label    sigma 3 px, 2 px down, 24 %                                 the logo, the labels of a title
       display  sigma 7.6 %, 5.6 % down of the capitals, 27 %              the titles ; capitals of Shippori Mincho : 0.734 em
     A CSS blur is two sigmas, except in drop-shadow() where it is sigma.
     Plates (GobanStyle::DrawShadow) : the CSS box-shadow of the cards of the game, in ink. */
  --shadow-label: 0 2px 6px rgba(0, 0, 0, 0.24);
  --shadow-label-filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.24));
  --shadow-display: 0 0.041em 0.112em rgba(0, 0, 0, 0.27);
  --shadow-plate: 0 4px 16px rgba(36, 33, 29, 0.10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }   /* The header kept on screen (75 px), then 24 px */
@media (max-width: 600px) { html { scroll-padding-top: 84px; } }                                  /* Its 67 px on a phone, then 16 px */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.75 var(--sans); -webkit-font-smoothing: antialiased; }
:lang(ja) { line-height: 1.9; letter-spacing: 0.02em; }
:lang(ja) :is(p, li, dd, h1, h2, h3, summary, figcaption) { word-break: auto-phrase; line-break: strict; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--border); }
a:hover { color: var(--ink-soft); text-decoration-color: var(--ink-soft); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.005em; text-shadow: var(--shadow-display); }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.25; margin-bottom: 28px; }
h3 { font-size: 19px; font-weight: 500; line-height: 1.4; }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -64px; padding: 10px 14px; background: var(--primary); color: var(--surface); border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 12px; }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand .egg { width: 27px; height: 33px; color: var(--ink); filter: var(--shadow-label-filter); }
.wordmark { font-family: var(--logo); font-weight: 750; font-size: 27px; letter-spacing: -0.048em; line-height: 1; text-shadow: var(--shadow-label); }
.wordmark .dot { color: var(--accent); line-height: inherit; letter-spacing: inherit; }   /* Not those of :lang(ja), which would make the header taller in Japanese */
.brand-small .egg { width: 22px; height: 27px; }
.brand-small .wordmark { font-size: 22px; }
/* The seal casts the soft shadow of the title beside it (--title : its size), its kanji none : the shadows lie under the stamp */
.seal { display: inline-grid; place-items: center; flex: none; background: var(--accent); color: var(--on-accent); font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: 0;
        text-shadow: none; box-shadow: 0 calc(var(--title, 40px) * 0.041) calc(var(--title, 40px) * 0.112) rgba(0, 0, 0, 0.27); }
.seal-hero { width: 76px; height: 76px; border-radius: 12px; font-size: 50px; }
.seal-medium { width: 52px; height: 52px; border-radius: 8px; font-size: 34px; }
.seal-small { width: 40px; height: 40px; border-radius: 6px; font-size: 26px; }

/* Header */
/* Kept at the top of the window : the page scrolls under it */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 16px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; margin-left: auto; font-size: 14px; }
.main-nav a { text-decoration: none; padding-block: 8px; }
.main-nav a:hover { text-decoration: underline; }
/* The download button : the vermilion and the paper of the seal, and on screen at every width */
.main-nav .nav-download { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-weight: 500; line-height: 1.2; white-space: nowrap; }
.main-nav .nav-download:hover { background: var(--accent-hover); color: var(--on-accent); text-decoration: none; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--bars); font-size: 13px; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 11px; border-radius: 6px; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.lang-switch a:hover { color: var(--ink); background: var(--hollow); }
.lang-switch a[aria-current] { background: var(--ink); color: var(--surface); }
.lang-short { display: none; }
/* Narrower : one line, so that the header kept on screen stays low ; the links within the page give way, then the wordmark beside the egg.
   The download button stays : 22 px of egg, 142 of languages, at most 111 of button, 12 + 12 of gaps, 16 + 16 of margins = 331 px ;
   the wordmark adds 96 px. Each width leaves room for the scrollbar of a computer (17 px), which the media queries count in. */
@media (max-width: 900px) {
  .header-row { flex-wrap: nowrap; gap: 16px; }
  .main-nav a:not(.nav-download) { display: none; }
  .lang-long { display: none; }
  .lang-short { display: inline; }
}
@media (max-width: 600px) {
  .header-row { padding-block: 12px; gap: 12px; }
  .lang-switch a { min-height: 36px; padding: 0 10px; }
  .brand .egg { width: 22px; height: 27px; }
  .brand .wordmark { font-size: 23px; }
}
@media (max-width: 460px) { .brand .wordmark { display: none; } }
@media (max-width: 350px) {
  .header-row { gap: 10px; }
  .main-nav .nav-download { padding: 0 12px; }
  .lang-switch a { padding: 0 8px; }
}

/* Hero */
.hero { padding-block: 64px 56px; }
.hero-name { --title: clamp(48px, 5.6vw, 76px); min-width: 0; display: flex; align-items: center; gap: 22px; }
.hero h1 { font-size: var(--title); line-height: 1; }
.hero-sub { margin-top: 10px; font-size: 18px; color: var(--ink-soft); text-shadow: var(--shadow-label); }
.hero-lead { font-size: 17px; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-bottom: 18px; }
.hero-meta { font-size: 13px; color: var(--ink-soft); }
@media (max-width: 600px) {
  .hero { padding-block: 32px 36px; }
  .hero-name { --title: 44px; gap: 14px; }
  .seal-hero { width: 56px; height: 56px; border-radius: 9px; font-size: 37px; }
  .hero-sub { font-size: 15px; margin-top: 6px; }
  .hero-actions .button { width: 100%; justify-content: center; }
}
figure { margin: 0; }
figcaption { margin-top: 12px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }

/* Banner : shots of Goban stacked, the current one shown ; they cross-fade (site.js turns them) */
.reel { margin-top: 48px; }
.reel-frame { position: relative; aspect-ratio: 2000 / 820; border-radius: 14px; overflow: hidden; background: var(--rule); box-shadow: var(--shadow-plate); }
.reel-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.8s ease; }
.reel-img.is-current { opacity: 1; }
.reel .reel-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-top: 14px; font-size: 14px; }
.reel-controls { display: inline-flex; align-items: center; gap: 6px; }
.reel-controls[hidden] { display: none; }
.reel-count { min-width: 56px; text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; }
.reel-button, .video-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 6px;
                              background: var(--surface); color: var(--ink); cursor: pointer; }
.reel-button:hover { background: var(--hollow); }
.reel-button svg, .video-toggle svg { width: 18px; height: 18px; }
.reel-button:focus-visible, .video-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.icon-play, .is-paused .icon-pause { display: none; }
.is-paused .icon-play { display: block; }
.reel-progress { display: flex; gap: 6px; margin-top: 12px; }
.reel-progress span { flex: 1; height: 2px; border-radius: 1px; background: var(--rule); transition: background 0.6s; }
.reel-progress span.is-current { background: var(--ink); }
.reel-note { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .reel-img, .reel-progress span { transition: none; } }
@media (max-width: 600px) {
  .reel { margin-top: 28px; }
  .reel-frame { aspect-ratio: 16 / 10; border-radius: 10px; }
  .reel .reel-bar { font-size: 13px; }
}

.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font-size: 15px; font-weight: 500; text-decoration: none; }
.button-primary { background: var(--primary); color: var(--surface); }
.button-primary:hover { background: #3A352F; color: var(--surface); }
.link-quiet { font-size: 15px; text-decoration: underline; text-decoration-color: var(--border); }

/* Facts */
.facts { background: var(--surface); border-block: 1px solid var(--rule); }
.facts-list { list-style: none; margin-block: 0; padding-block: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px 32px; font-size: 14px; }
.facts-list li { display: flex; align-items: center; gap: 12px; }

/* Sections */
.section { padding-block: 96px 88px; }
.band { background: var(--surface); border-block: 1px solid var(--rule); }
.band > .wrap { padding-block: 96px; }
@media (max-width: 600px) { .section { padding-block: 48px 40px; } .band > .wrap { padding-block: 48px 44px; } h2 { margin-bottom: 20px; } }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 28px 28px 30px; box-shadow: var(--shadow-plate); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); }
.card .card-note { margin-top: 14px; font-size: 13px; color: var(--ink-quiet); }
.kicker { margin-bottom: 16px; font-size: 12px; color: var(--ink-soft); }
.kicker:not(:lang(ja)) { text-transform: uppercase; letter-spacing: 0.08em; }
.card .kicker { font-size: 12px; color: var(--ink-soft); }
.shot { width: 100%; border-radius: 12px; background: var(--rule); box-shadow: var(--shadow-plate); }
.shot-dialog, .shot-panel { border: 1px solid var(--rule); }
@media (max-width: 600px) { .card { padding: 20px 18px 22px; } .shot { border-radius: 8px; } }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 72px; }
.split-text { flex: 1 1 360px; min-width: 0; }
.split-text > p { margin-bottom: 20px; }
.split-figure { flex: 1 1 460px; min-width: 0; }
.split-figure-large { flex-basis: 600px; }
.split-reverse { gap: 40px 64px; }
@media (max-width: 860px) { .split-reverse .split-text { order: -1; } }
.split-more { margin-top: 56px; }
.split-figure-dialog { flex: 0 1 460px; }
.split-figure-panel { flex: 0 1 340px; }
.split-analysis .split-text { flex-basis: 320px; }
.split-figure-large { flex: 2 1 600px; }
@media (max-width: 860px) { .split-games .split-text, .split-image .split-text { order: -1; } }
@media (max-width: 600px) { .split-more { margin-top: 32px; } .split-figure-panel { max-width: 340px; } }

/* The games : under the text, the card of a game and the review */
.split-top { align-items: flex-start; }
.games-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; margin-top: 36px; }
@media (max-width: 600px) { .games-shots { grid-template-columns: minmax(0, 1fr); } }

/* The room : its words, then the banner of its shots, a season and an hour each */
.room-intro { display: flex; flex-wrap: wrap; gap: 20px 64px; margin-bottom: 36px; }
.room-intro > p { flex: 1 1 340px; min-width: 0; font-size: 17px; }
.room-intro > ul { flex: 1 1 420px; min-width: 0; }
.room-more { margin-top: 28px; font-size: 14px; color: var(--ink-soft); }

/* The visit : a video filmed in Goban, played while it is in view (site.js) */
.split-visit .split-text > p + p { margin-top: 16px; }
.video-frame { position: relative; }
.visit-video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 590; object-fit: cover; border-radius: 12px; background: var(--rule); box-shadow: var(--shadow-plate); }
.video-toggle { position: absolute; right: 14px; bottom: 14px; border: 0; border-radius: 22px; background: rgba(247, 244, 238, 0.9); }
.video-toggle:hover { background: var(--surface); }
.video-toggle[hidden] { display: none; }
@media (max-width: 600px) { .visit-video { border-radius: 8px; } }
.plain-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.note-box { margin-top: 28px; padding: 16px 18px; border-radius: 8px; background: var(--hollow); display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.7; }
.note-box .icon { stroke: var(--ink); margin-top: 2px; }

/* Download */
.download { background: var(--bars); border-top: 1px solid var(--rule); }
.download > .wrap { padding-block: 88px; }
.download-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(22px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 36px 64px; box-shadow: var(--shadow-plate); }
.download-main { flex: 1 1 380px; min-width: 0; }
.download-main > p { margin-bottom: 26px; font-size: 15px; max-width: 440px; }
.download-head { --title: 30px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.download-head h2 { margin: 0; font-size: var(--title); line-height: 1.15; }
.download-by { margin-top: 4px; font-size: 13px; color: var(--ink-soft); text-shadow: var(--shadow-label); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 0 22px; border-radius: 8px; text-decoration: none; line-height: 1.35; }
.store-kicker { font-size: 11px; }
.store-kicker:not(:lang(ja)) { text-transform: uppercase; letter-spacing: 0.06em; }
.store-name { font-size: 17px; font-weight: 500; }
.store-primary { background: var(--primary); color: var(--surface); }
.store-primary:hover { background: #3A352F; color: var(--surface); }
.store-soon { border: 1px solid var(--border); color: var(--ink-soft); }
.specs { flex: 1 1 380px; min-width: 0; margin: 0; align-self: center; display: grid; grid-template-columns: minmax(110px, auto) 1fr; font-size: 14px; }
.specs dt, .specs dd { margin: 0; padding: 13px 0; border-bottom: 1px solid var(--rule); }
.specs dt { padding-right: 16px; color: var(--ink-soft); }
.specs dt:last-of-type, .specs dd:last-of-type { border-bottom: 0; }
@media (max-width: 600px) {
  .download > .wrap { padding-block: 44px; }
  .download-head { --title: 24px; }
  .seal-medium { width: 44px; height: 44px; border-radius: 7px; font-size: 29px; }
  .stores { display: grid; }
  .specs { font-size: 13px; grid-template-columns: 96px 1fr; }
}

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding-block: 8px; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-soft); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; font-size: 15px; color: var(--ink-soft); }
@media (max-width: 600px) { .faq summary { font-size: 15px; } .faq details p { font-size: 14px; } }

/* Footer */
.site-footer { position: relative; background: var(--bars); border-top: 1px solid var(--rule); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-block: 56px 28px; }
.footer-brand { flex: 1 1 280px; min-width: 0; }
.footer-brand p { margin-top: 14px; max-width: 320px; color: var(--ink-soft); line-height: 1.7; }
.footer-col { flex: 0 1 200px; display: grid; gap: 4px; align-content: start; }
.footer-col a { text-decoration: none; padding-block: 4px; }
.footer-col a:hover { text-decoration: underline; }
.footer-title { margin-bottom: 4px; font-size: 12px; color: var(--ink-soft); }
.footer-title:not(:lang(ja)) { text-transform: uppercase; letter-spacing: 0.14em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 20px 36px; border-top: 1px solid var(--border); font-size: 12px; line-height: 1.7; color: var(--ink-soft); }
.footer-bottom .trademarks { max-width: 760px; }
/* The commit online (tools/publish.py), in the corner of the footer : barely darker than the bars */
.site-commit { position: absolute; right: 10px; bottom: 8px; font-size: 10px; line-height: 1; letter-spacing: 0.04em; color: var(--border); }

/* Legal pages */
.page { padding-block: 48px 96px; }
.page h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.2; margin-bottom: 40px; }
.page section { margin-bottom: 56px; max-width: 860px; }
.page section h2 { font-size: 26px; margin-bottom: 18px; }
.breadcrumb { margin-bottom: 14px; font-size: 13px; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); }
.doc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.doc-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.doc-list a { font-weight: 500; }
.doc-list p { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.tag { display: inline-block; margin-left: 10px; padding: 1px 8px; border-radius: 10px; background: var(--hollow); font-size: 12px; color: var(--ink-soft); vertical-align: 1px; }
.facts-table { margin: 0; display: grid; grid-template-columns: minmax(150px, auto) 1fr; border-top: 1px solid var(--rule); }
.facts-table dt, .facts-table dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts-table dt { padding-right: 16px; color: var(--ink-soft); }
@media (max-width: 600px) { .facts-table { grid-template-columns: 1fr; } .facts-table dt { border-bottom: 0; padding-bottom: 0; } }

.doc-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.doc-nav { flex: 1 1 220px; max-width: 280px; display: grid; gap: 2px; font-size: 15px; }
.doc-nav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; text-decoration: none; }
.doc-nav a:hover { background: var(--hollow); }
.doc-nav a[aria-current] { background: var(--bars); font-weight: 500; }
.doc-nav a[aria-current]::after { content: ""; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--accent); }
.doc { flex: 999 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-plate); }
.doc h1 { margin: 28px 0 24px; font-size: clamp(28px, 3vw, 36px); }
@media (max-width: 760px) { .doc-nav { max-width: none; } }
.doc-tools { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 18px; font-size: 13px; text-decoration: none; }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip-missing { color: var(--ink-soft); border-style: dashed; }
.chip-note { font-size: 12px; }
.banner { margin-top: 18px; padding: 14px 16px; border-radius: 8px; background: var(--hollow); font-size: 14px; line-height: 1.7; }
.banner-draft { background: #F8EBE6; border: 1px solid #E8C7BC; }
.prose { font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.prose h2 { font-family: var(--sans); font-size: 18px; font-weight: 500; margin: 32px 0 10px; letter-spacing: 0; text-shadow: none; }
.prose h3 { font-size: 16px; margin: 24px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose code { font-size: 0.92em; padding: 1px 5px; border-radius: 4px; background: var(--hollow); }
.notices { list-style: none; padding: 0 !important; }
.notices li { padding: 12px 0; border-top: 1px solid var(--rule); margin: 0 !important; }
.notice-name { display: block; font-weight: 500; }
.notice-line { display: block; color: var(--ink-soft); font-size: 14px; }
.notices-section { font-family: var(--sans) !important; font-size: 13px !important; letter-spacing: 0.12em !important; color: var(--ink-soft); margin-top: 40px !important; text-shadow: none; }
.doc-foot { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--ink-soft); }
.doc-foot .url { overflow-wrap: anywhere; }

/* Language choice and 404 */
.chooser { min-height: 100vh; display: grid; place-items: center; }
.chooser-main { width: min(560px, calc(100% - 32px)); padding-block: 48px; }
.chooser-main > .brand { margin-bottom: 48px; }
.chooser-title { --title: 44px; display: flex; align-items: center; gap: 14px; font-size: var(--title); line-height: 1; margin-bottom: 32px; }
.chooser-links { display: grid; gap: 10px; }
.chooser-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 0 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); text-decoration: none; box-shadow: var(--shadow-plate); }
.chooser-link:hover { border-color: var(--border); background-color: var(--hollow); }
.chooser-name { font-size: 17px; font-weight: 500; }
.chooser-sub { font-size: 13px; color: var(--ink-soft); }
.nf { display: grid; gap: 28px; }
.nf h2 { font-size: 22px; margin-bottom: 6px; }
.nf p { color: var(--ink-soft); margin-bottom: 6px; }

/* Paper : specks of ink over the paper and the large surfaces, a level or two of 255, the same on every background (tools/grain.py) */
body, .site-header, .facts, .band, .download, .site-footer, .card, .download-card, .doc, .chooser-link {
  background-image: url("/assets/site/grain.png");
  background-size: 128px 128px;
}
