/* SPDX-FileCopyrightText: 2026 Arinn contributors
 * SPDX-License-Identifier: CC-BY-SA-4.0 */
:root {
  color-scheme: dark;
  --bg: #0f1115;
  --panel: #181b21;
  --raised: #20242c;
  --text: #ededed;
  --muted: #afb3bd;
  --line: #2b3039;
  --accent: #ff8a3d;
  --focus: #ededed;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: #454b56; color: #fff; }
a { color: var(--text); text-decoration-color: #727986; text-underline-offset: 5px; }
a:hover { text-decoration-color: var(--text); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; border-radius: 4px; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 10px 20px; background: var(--raised); }
.skip:focus { top: 10px; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; height: 80px; padding: 0 4vw; border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar a { text-decoration: none; }
.topbar > a:last-child { font-size: 14px; color: var(--muted); }
.topbar > a:last-child:hover { color: var(--text); }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 26px; font-weight: 650; letter-spacing: -.045em; }
.brand-label { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; margin-left: 10px; }
.mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 260px minmax(0, 1fr); }
aside { position: sticky; top: 80px; height: calc(100dvh - 80px); padding: 35px 20px; overflow-y: auto; border-right: 1px solid var(--line); }
.nav-label { font-size: 10px; font-weight: 650; letter-spacing: .12em; color: var(--muted); margin: 25px 12px 12px; }
nav a { display: flex; gap: 14px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 12px; color: var(--muted); }
nav a span { color: var(--text); font-size: 14px; }
nav a:hover, nav a:focus-visible { background: var(--raised); color: var(--text); }
.sidebar-note { margin: 48px 12px 0; font-size: 12px; color: var(--muted); }
main { min-width: 0; padding: 58px clamp(24px, 5vw, 80px) 20px; }
section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.hero { padding-top: 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 11px; font-weight: 600; letter-spacing: .15em; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 9px; letter-spacing: .08em; border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; color: var(--muted); }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.4vw, 68px); margin: 27px 0; }
h1 span { color: var(--muted); }
h2 { font-size: 36px; margin: 20px 0 24px; }
h3 { font-size: 23px; margin: 35px 0 14px; }
p, li { color: var(--muted); }
strong { color: var(--text); }
.lead { max-width: 580px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin: 30px 0 42px; }
.button { display: inline-flex; align-items: center; gap: 30px; padding: 12px 20px; border: 1px solid var(--text); border-radius: 10px; background: var(--text); color: var(--bg); text-decoration: none; font-weight: 600; }
.button:hover { color: var(--bg); background: #fff; border-color: #fff; }
figure { margin: 0 0 30px; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; }
figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; }
.notice { padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 12px; color: var(--muted); font-size: 14px; margin: 25px 0; }
.notice strong { display: block; margin-bottom: 5px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 35px; }
.cards a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; }
.cards a:hover, .cards a:focus-visible { background: var(--raised); border-color: #606774; }
.card-number { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.cards h2 { color: var(--text); font-size: 20px; line-height: 1.35; letter-spacing: -.025em; margin: 14px 0; }
.cards p { font-size: 13px; line-height: 1.7; }
.cards a > span:last-child { color: var(--muted); }
pre { padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.8; }
code { font-family: ui-monospace, monospace; overflow-wrap: anywhere; font-size: .88em; color: var(--text); }
pre code { font-size: inherit; overflow-wrap: normal; }
kbd { font: 12px ui-monospace, monospace; color: var(--text); background: var(--panel); border: 1px solid #606774; border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
caption { text-align: left; color: var(--muted); font-size: 12px; margin-bottom: 14px; }
th, td { padding: 15px 12px; border-bottom: 1px solid var(--line); }
thead { background: var(--panel); }
tbody th { font-weight: 400; min-width: 140px; }
td { color: var(--muted); }
li { padding-left: 5px; margin: 12px 0; }
details { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 14px 0; }
summary { cursor: pointer; font-weight: 550; }
summary:hover { color: #fff; }
details[open] { background: var(--panel); }
details p:last-child { margin-bottom: 0; }
footer { padding: 40px 0 25px; }
footer p { font-size: 12px; }
@media (min-width: 1600px) { body { font-size: 17px; } }
@media (max-width: 1000px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  aside { padding-inline: 10px; }
  .cards { grid-template-columns: 1fr; }
  .cards a { padding: 18px; }
  .cards h2 { margin: 7px 0; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 88px; }
  .topbar { height: 66px; padding: 0 20px; }
  .brand-label { display: none; }
  .layout { display: block; }
  aside { position: static; height: auto; padding: 12px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  nav { display: flex; flex-wrap: wrap; column-gap: 4px; }
  nav a { padding: 10px; font-size: 10px; gap: 6px; }
  nav a span { font-size: 12px; }
  .nav-label, .sidebar-note { display: none; }
  main { padding: 35px 22px 10px; }
  section { padding: 35px 0; }
  h2 { font-size: 30px; }
  h1 { font-size: clamp(34px, 8vw, 42px); }
  .hero-actions { gap: 16px; }
}
@media print {
  body { background: white; color: black; }
  .topbar, aside, .hero-actions, .cards { display: none; }
  .layout { display: block; }
  main { padding: 0; }
  p, li, a, code, strong, h1 span, figcaption, .eyebrow, .badge, td, caption { color: black; }
  section { break-inside: auto; }
  pre, .notice, thead, kbd, details[open] { background: white; }
  pre, .notice, details, kbd { border-color: #999; }
}
