@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson_regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson_bold.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson_italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson_bold_italic.ttf") format("truetype"); font-weight: 700; font-style: italic; font-display: swap; }

/*
  Layout and type follow headmates.app, so the two read as the same maker; the accent is this site's own.
  Colours follow the visitor's light or dark setting unless they pick one with the toggle (data-theme on
  <html>). Muted text is kept well above 4.5:1 against every background it sits on.
*/
:root, :root[data-theme="dark"] { --bg: #13161C; --surf: #1C212A; --surf2: #232934; --text: #ECEFF4; --muted: #D5D9E0; --line: #2C323E; --accent: #B79CFF; --onaccent: #22124A; color-scheme: dark; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #F4F5F7; --surf: #E9EBEF; --surf2: #DEE1E7; --text: #1C1E24; --muted: #33363D; --line: #D3D7DE; --accent: #5B3FB0; --onaccent: #FFFFFF; color-scheme: light; }
}
:root[data-theme="light"] { --bg: #F4F5F7; --surf: #E9EBEF; --surf2: #DEE1E7; --text: #1C1E24; --muted: #33363D; --line: #D3D7DE; --accent: #5B3FB0; --onaccent: #FFFFFF; color-scheme: light; }
:root { --font: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; transition: background .4s, color .4s; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
section { padding-block: 72px; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.lede { color: var(--muted); max-width: 60ch; margin: 0; }

/* Nav */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 30px; height: 30px; display: block; }
header.top nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
header.top nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 700; }
header.top nav a:hover, header.top nav a[aria-current="page"] { color: var(--text); }
header.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; text-decoration-thickness: 2px; }
header.top nav a:focus-visible, .brand:focus-visible { color: var(--text); }
.theme { font: inherit; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surf); color: var(--text); cursor: pointer; }
.theme:hover { border-color: var(--accent); }
.theme svg { width: 18px; height: 18px; }
@media (max-width: 560px) { header.top nav { gap: 14px; } header.top nav a { font-size: 14px; } }

/* Hero */
.hero { padding-block: 72px 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 64px); overflow-wrap: anywhere; letter-spacing: -.01em; margin-bottom: 18px; max-width: 16ch; }
.hero .lede { font-size: 19px; }

/* An app, as a card: its mark, what it is, and where to go next. */
.app { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; background: var(--surf); border-radius: 28px; padding: 28px; margin-top: 28px; }
@media (max-width: 560px) { .app { grid-template-columns: minmax(0, 1fr); padding: 22px; } }
.app img { width: 64px; height: 64px; border-radius: 16px; display: block; }
.app h3 { font-size: 26px; margin-bottom: 6px; }
.app p { margin: 0 0 12px; color: var(--muted); max-width: 62ch; }
.app ul { margin: 6px 0 18px; padding: 0; list-style: none; display: grid; gap: 10px; }
.app li { padding-left: 26px; position: relative; }
.app li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-block; font-size: 15px; font-weight: 700; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; }
.button:hover { border-color: var(--accent); }
.button.primary { background: var(--accent); color: var(--onaccent); border-color: var(--accent); }
.button.primary:hover { filter: brightness(1.06); }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer .mail { font-weight: 700; color: var(--text); }

@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* Long-form pages (legal, not found): a readable column in the same type. */
main.doc { padding-block: 48px 72px; }
main.doc .wrap { max-width: 720px; }
main.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 20px; }
main.doc h2 { font-size: 24px; margin: 36px 0 10px; }
main.doc ul { padding-left: 22px; display: grid; gap: 8px; }
main.doc dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 24px; margin: 0; }
main.doc dt { font-weight: 700; }
main.doc dd { margin: 0; }
@media (max-width: 560px) { main.doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } main.doc dd { margin-bottom: 10px; } }

section.follows { padding-top: 0; }
