/* claktory.com, after Claktory's visual identity (docs/IDENTITY.md):
   graphite surfaces, hairlines, one signal color, Geist. */
@font-face { font-family: Geist; src: url(/fonts/Geist-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-Medium.ttf) format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(/fonts/Geist-SemiBold.ttf) format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(/fonts/GeistMono-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --canvas: #0E0E10; --sidebar: #151517; --hairline: #232327;
  --text: #EDEDEF; --muted: #A1A1AA; --faint: #71717A;
  --signal: #FF5B1F; --link: #6AA8FF;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --canvas: #FFFFFF; --sidebar: #F5F5F6; --hairline: #E4E4E7;
    --text: #18181B; --muted: #52525B; --faint: #8B8B94;
    --signal: #E5480F; --link: #1F5FD1;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--text);
  font: 400 16px/1.6 Geist, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

header.top { border-bottom: 1px solid var(--hairline); background: var(--sidebar); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 17px; text-decoration: none; }
.brand img { border-radius: 6px; }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 120ms ease-out; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--signal); padding-bottom: 4px; }

main { padding: 48px 24px 64px; }
h1 { font-size: 40px; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; margin: 48px 0 12px; padding-top: 32px; border-top: 1px solid var(--hairline); }
h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 32px 0 8px; }
h1 + p { font-size: 19px; color: var(--muted); }
p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
li::marker { color: var(--faint); }
strong { font-weight: 600; }
a { color: var(--link); text-underline-offset: 3px; }
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.9em; background: var(--sidebar); border: 1px solid var(--hairline); border-radius: 6px; padding: 1px 6px; }
pre { background: var(--sidebar); border: 1px solid var(--hairline); border-radius: 10px; padding: 14px 16px; overflow-x: auto; margin: 0 0 16px; }
pre code { background: none; border: 0; padding: 0; font-size: 14px; line-height: 1.5; }
pre code::before { content: "$ "; color: var(--faint); user-select: none; -webkit-user-select: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 6px; font-weight: 500; font-size: 15px;
  text-decoration: none; color: var(--text); border: 1px solid var(--hairline); background: var(--sidebar);
  transition: border-color 120ms ease-out;
}
.button:hover { border-color: var(--muted); }
.button.primary { background: var(--signal); border-color: var(--signal); color: #000; }
.button.primary:hover { filter: brightness(1.08); }

.page-index main > h1 { font-size: 48px; margin-top: 16px; }
.page-index main > h1::before {
  content: ""; display: block; width: 72px; height: 72px; margin-bottom: 28px;
  background: url(/icon-256.png) center / contain no-repeat;
}

footer { border-top: 1px solid var(--hairline); background: var(--sidebar); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; padding: 24px; font-size: 14px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 560px) {
  h1, .page-index main > h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  main { padding-top: 32px; }
  nav { gap: 14px; }
}
