/* Aurore's website (site/README.md): Boréale's night, an aurora once at the
   top of the home page, the documentation in three columns. One dark look,
   as boreale.dev: the brand stands on the night. */
/* The fonts are served with the site, never by a font service (SIL Open Font
   License, fonts/OFL-*.txt): Sora for the headings, Figtree for the text,
   JetBrains Mono for code. */
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --abyss: #0b1424;
  --night: #0e1a33;
  --night-2: #12213f;
  --night-line: #22324f;
  --snow: #e8eef7;
  --mist: #a9b6cc;
  --dusk: #8593ae;
  --aurora: #00ffcc;
  --ice: #33bbff;
  --link: #6fd0ff;
  --violet: #8a5cff;
  --aurora-grad: linear-gradient(100deg, var(--aurora) 0%, var(--ice) 55%, var(--violet) 100%);

  --display: "Sora", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 16px;
  --header: 76px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--abyss); scroll-padding-top: 24px; }
body {
  margin: 0; background: var(--abyss); color: var(--snow);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-size-adjust: 100%;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--aurora); }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
code, pre, kbd { font-family: var(--mono); }
:not(pre) > code {
  font-size: 0.875em; padding: 0.1em 0.38em; border-radius: 6px;
  background: rgba(232, 238, 247, 0.07); border: 1px solid rgba(232, 238, 247, 0.08);
  overflow-wrap: anywhere;
}
.muted { color: var(--mist); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--night); padding: 8px 12px; border-radius: 8px; }

.wrap {
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 820px; }

/* ---- The sky: the canvas (site.js) behind the home page's header and hero;
   without script, or with less motion asked, the same aurora as a gradient. */
.sky { position: relative; isolation: isolate; overflow: hidden; }
.sky::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 60% at 30% -10%, rgba(0, 255, 204, 0.2), transparent 60%),
    radial-gradient(90% 50% at 75% -5%, rgba(138, 92, 255, 0.22), transparent 60%),
    radial-gradient(80% 40% at 55% 10%, rgba(51, 187, 255, 0.14), transparent 70%),
    var(--abyss);
}
.inner .sky::before {
  background:
    radial-gradient(70% 140% at 15% -60%, rgba(0, 255, 204, 0.16), transparent 70%),
    radial-gradient(60% 140% at 85% -60%, rgba(138, 92, 255, 0.18), transparent 70%),
    var(--abyss);
}
.inner .sky { border-bottom: 1px solid var(--night-line); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.sky-home::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: -1;
  background: linear-gradient(to top, var(--abyss), transparent);
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--snow); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { color: var(--snow); }
.brand img { width: 34px; height: 34px; }
.top nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--mist); text-decoration: none; font-size: 0.9375rem; border-radius: 10px; }
.top nav a:hover { color: var(--snow); background: rgba(232, 238, 247, 0.06); }
.top nav a[lang] { font-size: 0.875rem; border: 1px solid var(--night-line); }

/* ---- The home page ------------------------------------------------------ */
.hero {
  display: grid; gap: clamp(28px, 5vw, 56px); align-items: center;
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(40px, 8vw, 96px) clamp(40px, 6vw, 72px);
}
@media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hero-text { display: grid; gap: 20px; }
.eyebrow { font-family: var(--mono); font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--aurora); }
.hero h1 { font-weight: 600; font-size: clamp(2.25rem, 5.6vw, 4rem); letter-spacing: -0.035em; }
.hero h1 em, .gradient { font-style: normal; background: var(--aurora-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--mist); font-size: clamp(1.0625rem, 2vw, 1.25rem); max-width: 54ch; }
.release { color: var(--dusk); font-size: 0.9375rem; }
.hero-shot { margin: 0; }
.hero-shot img, .cadran img {
  display: block; width: 100%; border-radius: 14px; border: 1px solid rgba(232, 238, 247, 0.12);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 6px rgba(14, 26, 51, 0.6), 0 0 90px -20px rgba(51, 187, 255, 0.35);
}
.platforms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.platforms h2 { font-family: var(--mono); font-weight: 400; font-size: 0.8125rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dusk); }
.platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.platforms li { font-size: 0.875rem; color: var(--mist); border: 1px solid var(--night-line); background: rgba(14, 26, 51, 0.6); border-radius: 99px; padding: 4px 12px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 12px; font-weight: 600; text-decoration: none; font-size: 1rem;
}
.button.primary { background: var(--snow); color: var(--abyss); }
.button.primary:hover { background: var(--aurora); color: var(--abyss); }
.button.ghost { border: 1px solid var(--night-line); color: var(--snow); background: rgba(11, 20, 36, 0.4); }
.button.ghost:hover { border-color: var(--mist); color: var(--snow); }

main > section { padding-block: clamp(44px, 7vw, 88px); }
main > section.closing { padding-top: 0; }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 64ch; }
.section-head h2, .cadran h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.025em; }
.section-head p, .cadran p { color: var(--mist); }
.section-head a, .cadran a { font-weight: 600; }

.code-section .section-head { margin-bottom: 28px; }
.code-pair { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .code-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
figure.code { margin: 0; min-width: 0; }
figure.code figcaption { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dusk); margin-bottom: 8px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.card {
  display: grid; gap: 10px; align-content: start; padding: 22px;
  background: var(--night); border: 1px solid var(--night-line); border-radius: var(--radius);
}
.card .icon { width: 28px; height: 28px; color: var(--aurora); }
.card h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.card p { color: var(--mist); font-size: 0.975rem; }

.cadran { display: grid; gap: clamp(24px, 5vw, 56px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .cadran { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.cadran-text { display: grid; gap: 14px; }
.cadran figure { margin: 0; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px 16px; }
.gallery figure { margin: 0; display: grid; gap: 8px; }
.gallery a { display: block; border-radius: 12px; }
.gallery img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--night-line); transition: transform 0.2s, border-color 0.2s; }
.gallery a:hover img { transform: translateY(-2px); border-color: #3a4d72; }
.gallery figcaption { color: var(--mist); font-size: 0.9375rem; }

.adds { display: grid; gap: 24px 56px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .adds { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .adds .section-head { margin-bottom: 0; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; color: var(--mist); }
.checks li strong { color: var(--snow); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--aurora-grad); mask: radial-gradient(circle, #000 34%, transparent 36%), linear-gradient(#000, #000);
  mask-composite: exclude; -webkit-mask-composite: xor;
}

.columns { display: grid; gap: 32px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.columns > div { display: grid; gap: 16px; align-content: start; min-width: 0; }
.columns h3 { font-size: 1.25rem; font-weight: 600; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 18px; }
.steps > li { counter-increment: step; position: relative; padding-left: 44px; color: var(--mist); min-width: 0; }
.steps > li strong { color: var(--snow); }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 0.875rem;
  color: var(--abyss); background: var(--aurora-grad);
}
.steps figure.code { margin-top: 10px; }

.made { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; border-top: 1px solid var(--night-line); }
.made li { display: grid; gap: 2px; padding-block: 14px; border-bottom: 1px solid var(--night-line); }
.made a { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--snow); text-decoration: none; min-height: 24px; }
.made a:hover { color: var(--aurora); }
.made span { color: var(--mist); font-size: 0.9375rem; }

.doc-list { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.doc-group h3 { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--aurora); margin-bottom: 8px; }
.doc-group ul { list-style: none; margin: 0; padding: 0; display: grid; }
.doc-group a { display: block; padding: 6px 0; color: var(--snow); text-decoration: none; }
.doc-group a:hover { color: var(--aurora); }

.promise { border: 1px solid var(--night-line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); display: grid; gap: 10px; background: linear-gradient(180deg, rgba(14, 26, 51, 0.8), rgba(14, 26, 51, 0.25)); }
.promise h2 { font-size: clamp(1.375rem, 3vw, 1.75rem); font-weight: 600; letter-spacing: -0.02em; }
.promise p { color: var(--mist); max-width: 72ch; }

/* ---- Code ------------------------------------------------------------- */
pre {
  margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px;
  background: #081020; border: 1px solid var(--night-line);
  font-size: 0.85rem; line-height: 1.6; tab-size: 4; position: relative;
}
pre code { font-size: inherit; color: #d6deeb; }
.tok-comment { color: #7d8aa5; font-style: italic; }
.tok-pre { color: #c79bff; }
.tok-string { color: #7ee7c4; }
.tok-number { color: #ffb86b; }
.tok-keyword { color: #8fc8ff; }
.tok-tag { color: #6fd0ff; }
.tok-attr { color: #c79bff; }
.tok-var { color: #ffb86b; }
.tok-option { color: #a9b6cc; }
.copy {
  position: absolute; top: 8px; right: 8px; min-height: 32px; min-width: 44px; padding: 0 10px;
  font: 500 0.75rem var(--body); color: var(--mist); background: var(--night-2);
  border: 1px solid var(--night-line); border-radius: 8px; cursor: pointer; opacity: 0; transition: opacity 0.15s;
}
.code-wrap { position: relative; }
.code-wrap:hover .copy, .copy:focus-visible, .copy.done { opacity: 1; }
@media (hover: none) { .copy { opacity: 1; } }

/* ---- Callouts ----------------------------------------------------------- */
.callout { border: 1px solid var(--night-line); border-left: 3px solid var(--ice); background: rgba(51, 187, 255, 0.06); border-radius: 10px; padding: 12px 16px; color: var(--mist); }
.callout p + p { margin-top: 8px; }
.callout.tip { border-left-color: var(--aurora); background: rgba(0, 255, 204, 0.05); }
.callout.important { border-left-color: var(--violet); background: rgba(138, 92, 255, 0.08); }
.callout.warning { border-left-color: #ffb86b; background: rgba(255, 184, 107, 0.07); }
.callout.caution { border-left-color: #ff7a85; background: rgba(255, 122, 133, 0.07); }

/* ---- The documentation ---------------------------------------------------- */
.doc { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); padding-block: 32px 72px; }
@media (min-width: 900px) { .doc { grid-template-columns: 230px minmax(0, 1fr); } }
@media (min-width: 1240px) { .doc { grid-template-columns: 230px minmax(0, 1fr) 210px; } }
.doc-nav { min-width: 0; }
@media (min-width: 900px) {
  .doc-nav, .toc { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; }
}
.doc-nav .doc-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.doc-nav .doc-group a { padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--mist); font-size: 0.9375rem; }
.doc-nav .doc-group a:hover { color: var(--snow); background: rgba(232, 238, 247, 0.05); }
.doc-nav .doc-group a[aria-current="page"] { color: var(--snow); background: rgba(0, 255, 204, 0.08); box-shadow: inset 2px 0 0 var(--aurora); }
.doc-menu > summary { display: none; }
@media (max-width: 899px) {
  .doc-menu { border: 1px solid var(--night-line); border-radius: 12px; background: var(--night); }
  .doc-menu > summary { display: flex; align-items: center; min-height: 48px; padding: 0 16px; cursor: pointer; font-weight: 600; }
  .doc-menu .doc-list { padding: 4px 16px 16px; }
}
.doc-search { position: relative; margin-bottom: 20px; }
.doc-search input {
  width: 100%; min-height: 44px; padding: 0 12px; font: 16px var(--body); color: var(--snow);
  background: var(--night); border: 1px solid var(--night-line); border-radius: 10px;
}
.doc-search input::placeholder { color: var(--dusk); }
.doc-results { list-style: none; margin: 8px 0 0; padding: 6px; border: 1px solid var(--night-line); border-radius: 10px; background: var(--night); max-height: 60vh; overflow-y: auto; }
.doc-results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--snow); }
.doc-results a:hover, .doc-results a:focus-visible { background: rgba(232, 238, 247, 0.06); }
.doc-results small { display: block; color: var(--mist); font-size: 0.8125rem; }
.doc-results p { padding: 8px 10px; color: var(--mist); }

.toc { display: none; font-size: 0.875rem; }
@media (min-width: 1240px) { .toc { display: block; } }
.toc p { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dusk); margin-bottom: 8px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--night-line); }
.toc ul ul { padding-left: 10px; border: 0; }
.toc a { display: block; padding: 4px 12px; color: var(--mist); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--snow); }
.toc a.active { color: var(--aurora); border-left-color: var(--aurora); }
.toc-mobile { border: 1px solid var(--night-line); border-radius: 10px; padding: 0 14px; margin-block: 16px; }
.toc-mobile summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; color: var(--mist); }
.toc-mobile ul { margin: 0 0 12px; padding-left: 18px; }
@media (min-width: 1240px) { .toc-mobile { display: none; } }

.prose { min-width: 0; max-width: 780px; }
.prose > * + * { margin-top: 1em; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); font-weight: 600; letter-spacing: -0.03em; }
.prose h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 2em; padding-top: 0.6em; border-top: 1px solid var(--night-line); }
.prose h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.6em; }
.prose h4 { font-size: 1.05rem; font-weight: 600; margin-top: 1.4em; }
.prose h2 small { font-family: var(--mono); font-size: 0.8rem; color: var(--dusk); font-weight: 400; margin-left: 8px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.3em; }
.prose li > ul, .prose li > ol { margin-top: 0.3em; }
.prose img { border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--night-line); margin-block: 2em; }
.prose blockquote { margin: 1em 0; padding-left: 16px; border-left: 3px solid var(--night-line); color: var(--mist); }
.prose .anchor { margin-left: 8px; opacity: 0; text-decoration: none; color: var(--dusk); display: inline-block; min-width: 24px; }
.prose .anchor::before { content: "#"; }
.prose h2:hover .anchor, .prose h3:hover .anchor, .prose .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .prose .anchor { display: none; } }
.table { overflow-x: auto; border: 1px solid var(--night-line); border-radius: 10px; }
.table table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--night-line); }
.table th { background: var(--night); font-weight: 600; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td code { overflow-wrap: normal; white-space: nowrap; }
.pager { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 3em !important; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--night-line); border-radius: 12px; text-decoration: none; color: var(--snow); font-weight: 600; }
.pager a:hover { border-color: var(--mist); color: var(--snow); }
.pager span { font-weight: 400; font-size: 0.8125rem; color: var(--dusk); }
.pager .next { text-align: right; }
.edit { font-size: 0.875rem; color: var(--dusk); }

/* ---- The lightbox (site.js) --------------------------------------------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5, 10, 20, 0.92); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-content: center; gap: 12px; padding: 56px 16px; }
.lightbox img { max-width: min(1280px, 92vw); max-height: calc(100vh - 140px); border-radius: 10px; }
.lightbox figcaption { text-align: center; color: var(--mist); }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--night-line);
  background: rgba(14, 26, 51, 0.85); color: var(--snow); cursor: pointer; font: 600 1.4rem/1 var(--body);
}
.lightbox button:hover { border-color: var(--mist); }
.lightbox-close { top: 12px; right: 12px; }
.lightbox-close::before { content: "×"; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-prev::before { content: "‹"; }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next::before { content: "›"; }

/* ---- The footer ----------------------------------------------------------- */
footer.site { border-top: 1px solid var(--night-line); padding-block: 40px 32px; color: var(--dusk); font-size: 0.9375rem; background: linear-gradient(180deg, rgba(14, 26, 51, 0.5), transparent); }
.footer-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-cols > div { display: grid; gap: 8px; align-content: start; }
.footer-cols h2 { font-family: var(--mono); font-weight: 400; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-cols ul a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--snow); font-family: var(--display); font-size: 1.05rem; }
footer.site a { color: var(--mist); }
footer.site a:hover { color: var(--aurora); }
.fine { margin-top: 28px; font-size: 0.8125rem; }

.lost { padding-block: clamp(64px, 12vw, 140px); }
.not-found { display: grid; gap: 18px; justify-items: start; }
.not-found h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; }
.not-found p { color: var(--mist); max-width: 50ch; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery a:hover img { transform: none; }
  html { scroll-behavior: auto; }
}

/* A phone: the header on one line, the language as its code. */
@media (max-width: 560px) {
  .top { flex-wrap: nowrap; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 30px; height: 30px; }
  .top nav li:first-child { display: none; }
  .top nav a { padding: 0 8px; font-size: 0.875rem; }
  .top nav a[lang] { font-size: 0; padding: 0 10px; }
  .top nav a[lang]::after { content: attr(lang); font-size: 0.8125rem; text-transform: uppercase; }
}

/* The demo: the header's link and the home page's band. */
.top nav a.nav-try { color: var(--abyss); background: var(--aurora-grad); font-weight: 600; }
.top nav a.nav-try:hover { color: var(--abyss); background: var(--aurora); }
.band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); border: 1px solid var(--night-line);
  background: radial-gradient(80% 140% at 0% 0%, rgba(0, 255, 204, 0.14), transparent 60%),
              radial-gradient(70% 140% at 100% 100%, rgba(138, 92, 255, 0.18), transparent 60%), var(--night);
}
.band > div { display: grid; gap: 10px; max-width: 60ch; }
.band h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 600; letter-spacing: -0.025em; }
.band p:not(.eyebrow) { color: var(--mist); }

/* ---- Boréale's site switcher: the name, and beside it the menu of the four
   sites (a popover: the browser closes it on Esc or a click elsewhere). The
   same block in boreale.dev's, PlayGuard's, PlayShelf's and Aurore's
   site.css; boreale's is the reference. Its colours are the brand's. */
.switcher { display: flex; flex-shrink: 0; align-items: center; gap: 2px; }
.switch {
  display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: #a9b6cc; cursor: pointer;
}
.switch svg { width: 16px; height: 16px; transition: transform 0.2s; }
.switch:hover { color: #e8eef7; background: rgb(232 238 247 / 0.06); }
.switcher:has(.sites:popover-open) .switch svg { transform: rotate(180deg); }
.sites {
  position: absolute; inset: auto; top: 72px; left: 16px; margin: 0;
  width: min(400px, calc(100vw - 24px)); max-height: calc(100vh - 96px); overflow: auto; padding: 8px;
  border: 1px solid #22324f; border-radius: 16px; color: #e8eef7;
  background: radial-gradient(120% 80% at 0% 0%, rgb(0 255 204 / 0.08), transparent 60%),
              radial-gradient(100% 80% at 100% 100%, rgb(138 92 255 / 0.1), transparent 60%), #0e1a33;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(11 20 36 / 0.6);
}
.sites::backdrop { background: transparent; }
.sites-title { margin: 14px 10px 6px; padding-top: 12px; border-top: 1px solid #22324f; font: 400 12px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: #a9b6cc; }
.sites ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sites a {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 10px; border-radius: 12px; color: #e8eef7; text-decoration: none;
}
.sites a:hover, .sites a:focus-visible { color: #e8eef7; background: rgb(232 238 247 / 0.06); }
.sites a[aria-current] { background: rgb(0 255 204 / 0.08); box-shadow: inset 2px 0 0 #00ffcc; }
.sites img { display: block; width: 36px; height: 36px; }
.sites strong { display: block; color: #e8eef7; font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; }
.sites small { display: block; color: #a9b6cc; font: 400 14px/1.35 var(--body); }
.sites .soon {
  font: 500 11px/1.6 var(--mono); font-style: normal; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: #ffb86b; border: 1px solid rgb(255 184 107 / 0.45); border-radius: 999px; padding: 1px 8px;
}
@media (prefers-reduced-motion: reduce) { .switch svg { transition: none; } }
