/* danieldizon.ai — one accent, hairlines, an 8px rhythm. */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #101114;
  --fg: #f2f2f3;
  --fg-2: #c2c4ca;
  --muted: #8a8d96;
  --faint: #5d6069;
  --line: #1d1f24;
  --line-2: #2a2d33;
  --accent: #9aa8ff;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 38rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg-2);
  font: 400 16px/1.65 var(--sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* A single, quiet light source above the fold. */
body::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 100% at 50% 0%, rgba(154, 168, 255, 0.08), transparent 70%);
}
::selection { background: rgba(154, 168, 255, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

a { color: var(--fg); text-decoration: none; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { max-width: 768px; margin: 0 auto; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 500; font-size: 14px; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px rgba(154, 168, 255, 0.6); }
.topnav { display: flex; gap: 4px; }
.topnav a { color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: 6px; transition: color .15s, background .15s; }
.topnav a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.04); }
.topnav a[aria-current="page"] { color: var(--fg); }

.wrap { max-width: 768px; margin: 0 auto; padding: 120px 24px 64px; }

/* Type scale: 13 / 14 / 16 / 18 / 22 / 56 */
h1, h2, h3 { color: var(--fg); margin: 0; font-weight: 500; }
h1 { font-size: clamp(40px, 8vw, 56px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 0 24px; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 32px; }
h3 { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }

.kicker {
  font: 400 13px/1.5 var(--mono); color: var(--muted); letter-spacing: 0;
  margin: 0 0 20px; display: flex; align-items: center; gap: 12px;
}
.kicker img { width: 28px; height: 28px; border-radius: 50%; display: block; outline: 1px solid var(--line-2); outline-offset: 2px; }
.kicker a { color: var(--muted); transition: color .15s; }
.kicker a:hover { color: var(--fg); }

.lede { font-size: 18px; line-height: 1.6; color: var(--fg); max-width: var(--measure); margin: 0 0 16px; letter-spacing: -0.005em; }
.intro { max-width: var(--measure); margin: 0 0 16px; }
.prev { max-width: var(--measure); margin: 0; color: var(--muted); font-size: 15px; }

/* Text links with a quiet arrow, not pills */
.links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.links a { font-size: 14px; color: var(--fg-2); display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.links a::after { content: "\2192"; color: var(--faint); transition: transform .15s, color .15s; }
.links a:hover { color: var(--fg); }
.links a:hover::after { color: var(--accent); transform: translateX(2px); }

/* Sections */
section { margin-top: 128px; }
.label { font: 400 13px/1 var(--mono); color: var(--faint); margin: 0 0 16px; }

/* Organisations: two panels that read differently, joined by a hairline */
.orgs { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
@media (min-width: 720px) { .orgs { grid-template-columns: 5fr 7fr; } .orgs > * + * { border-left: 1px solid var(--line); } }
@media (max-width: 719px) { .orgs > * + * { border-top: 1px solid var(--line); } }
.org { padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: background .2s; }
a.org:hover { background: #131419; }
.org .role { font: 400 12px/1 var(--mono); color: var(--accent); }
.org h3 { display: flex; align-items: center; gap: 8px; }
.org h3 .ext { color: var(--faint); font-weight: 400; transition: color .15s, transform .15s; }
a.org:hover .ext { color: var(--fg); transform: translate(1px, -1px); }
.org p { margin: 0; color: var(--muted); font-size: 15px; }
.org blockquote {
  margin: 8px 0 0; padding: 0 0 0 14px; border-left: 1px solid var(--accent);
  color: var(--fg-2); font-size: 15px; line-height: 1.6;
}
.note { margin: 32px 0 0; max-width: var(--measure); color: var(--muted); font-size: 15px; }
.note strong { color: var(--fg-2); font-weight: 500; }

/* Areas: an editorial index, not a card grid */
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.areas li { display: grid; gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .areas li { grid-template-columns: 15rem 1fr; gap: 40px; } }
.areas h3 { font-size: 16px; }
.areas p { margin: 0; color: var(--muted); font-size: 15px; max-width: 30rem; }

/* About page */
.prose p { max-width: var(--measure); margin: 0 0 20px; }
.prose p:first-of-type { color: var(--fg); font-size: 18px; }
.facts { list-style: none; margin: 48px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: var(--measure); }
.facts li { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts span { font: 400 13px/1.7 var(--mono); color: var(--faint); }

footer {
  margin-top: 144px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font: 400 13px/1.5 var(--mono); color: var(--faint);
}
footer p { margin: 0; }
footer a { color: var(--faint); transition: color .15s; }
footer a:hover { color: var(--fg-2); }

@media (max-width: 560px) {
  .wrap { padding-top: 72px; }
  section { margin-top: 96px; }
  .topbar-inner { padding: 0 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topnav .hide-sm { display: none; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.prose a, .facts a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.prose a:hover, .facts a:hover { text-decoration-color: var(--accent); }
