/* Privacy, Terms and Support: the website's board and type, dark first with
   the paper theme on light devices (docs/brand/BRAND.md). Layout only; the
   text of these pages lives in their HTML. */
:root {
  color-scheme: dark;
  --board: #050606; --paper: #0b0d0c; --text: #eeeae0; --title: #f3f0e8; --body: #c9c5bb; --muted: #8b908b; --line: #282c2a;
  --accent: rgb(66 201 192); --accent-text: rgb(143 240 232); --on-accent: #04201d; --dot: rgba(238, 234, 224, .05);
  --mono: "Roboto Mono", ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { color-scheme: light; --board: #f3f1ea; --paper: #fffdf7; --text: #1f2620; --title: #1f2620; --body: #3d473f; --muted: #5f6a60; --line: #d9d5c8; --accent: #1e7f78; --accent-text: #0f6f68; --on-accent: #fff; --dot: rgba(60, 70, 50, .09); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse 80% 40% at 10% -5%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%), radial-gradient(var(--dot) 1px, transparent 1.3px) 0 0 / 22px 22px, var(--board);
}
main { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 0 max(72px, env(safe-area-inset-bottom)); }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--title); }
mark { padding: 0 3px; border-radius: 3px; background: color-mix(in srgb, #ffb86b 32%, transparent); color: var(--title); }

header { position: relative; margin-bottom: 36px; padding: 44px 26px 30px; background: linear-gradient(rgba(36, 215, 189, .14), rgba(36, 215, 189, .14)), var(--paper); clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
@media (prefers-color-scheme: light) { header { filter: drop-shadow(0 10px 20px rgba(60, 50, 30, .14)); } }
header::after { content: ""; position: absolute; top: 0; right: 0; width: 20px; height: 20px; background: linear-gradient(225deg, transparent 50%, rgba(36, 215, 189, .85) 50%); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--title); font: 800 17px/1 var(--mono); letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand::before { content: "←"; color: var(--muted); font-weight: 700; }
h1 { margin: 18px 0 8px; color: var(--title); font: 800 clamp(32px, 8vw, 52px)/1.05 var(--mono); letter-spacing: -.045em; text-wrap: balance; }
h2 { margin: 0 0 12px; color: var(--title); font: 800 18px/1.3 var(--mono); letter-spacing: -.02em; }
.updated { color: var(--muted); font: 600 13px/1.5 var(--mono); }
p, li { color: var(--body); font-size: 15.5px; line-height: 1.75; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
header p { margin-top: 6px; }
ul, ol { margin: 10px 0 0; padding-left: 22px; }
li + li { margin-top: 8px; }
section { padding: 26px 0; border-bottom: 1px dashed var(--line); scroll-margin-top: 20px; }
.callout { margin: 0 0 26px; padding: 16px 18px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); }
nav.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
nav.toc a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font: 700 12px/1 var(--mono); text-decoration: none; }
nav.toc a:hover { box-shadow: inset 0 0 0 1px var(--accent); }
table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
th, td { min-width: 120px; text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); color: var(--body); line-height: 1.6; }
th { color: var(--title); font-family: var(--mono); font-weight: 800; font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 16px; padding: 0 18px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 800 13px/1 var(--mono); letter-spacing: .04em; text-decoration: none; }
.button.ghost { margin-left: 8px; background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.button:hover { filter: brightness(1.06); }
.button.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; padding-top: 28px; color: var(--muted); font: 600 12.5px/1.4 var(--mono); }
footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); text-decoration: none; }
footer a:hover { color: var(--accent-text); }
@media (max-width: 520px) {
  header { padding: 38px 18px 24px; }
  .button { width: 100%; }
  .button.ghost { margin-left: 0; margin-top: 10px; }
}
