:root {
  --bg: #0e0f11;
  --surface: #17191c;
  --line: #2a2d32;
  --text: #eceae6;
  --muted: #9a9790;
  --accent: #d4a24c;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 400px) { .wrap { padding: 0 16px; } }

/* Header */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 15, 17, 0.92);
  backdrop-filter: blur(8px);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700; letter-spacing: 0.04em; color: var(--text);
  font-size: 18px; white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 24px; font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.hero .eyebrow {
  color: var(--accent); font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 20px;
}
.hero h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.05;
  margin: 0 0 24px; letter-spacing: -0.02em; max-width: 14ch;
}
.hero-text p { color: var(--muted); font-size: 20px; max-width: 58ch; margin: 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px; align-items: center;
}
.hero-photo { margin: 0; }
.hero-photo img {
  display: block; width: 100%; height: auto;
  border-radius: 14px; border: 1px solid var(--line);
}
.hero-photo.portrait img {
  width: auto; max-width: 100%; max-height: 620px; margin: 0 auto;
  border: 0; border-radius: 2px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.hero-photo figcaption.credit { font-size: 12px; opacity: 0.7; text-align: right; margin-top: 14px; }
.hero-photo figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Sections */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 32px; margin: 0 0 16px; letter-spacing: -0.01em;
}
.lead { color: var(--muted); max-width: 62ch; margin: 0 0 40px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 28px;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0 0 12px; color: var(--muted); }
.tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--accent);
  border-radius: 999px; padding: 2px 10px; margin-bottom: 14px;
}
.card.dim { border-style: dashed; background: transparent; }

/* Fact table */
dl.facts {
  display: grid; grid-template-columns: minmax(160px, 220px) 1fr;
  margin: 0; border-top: 1px solid var(--line);
}
dl.facts dt, dl.facts dd {
  margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
dl.facts dt { color: var(--muted); font-size: 15px; }

/* Legal / long-form pages */
.doc { padding: 72px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: "Space Grotesk", "Inter", sans-serif; font-size: 40px; margin: 0 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc p, .doc li { color: #cfccc6; }

/* Footer */
footer { padding: 48px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { color: var(--muted); margin-right: 20px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 640px) {
  header.site .wrap { flex-direction: column; align-items: flex-start; height: auto; padding-top: 12px; padding-bottom: 10px; gap: 4px; }
  nav a { margin: 0 16px 0 0; font-size: 14px; }
  nav a.hide-sm { display: none; }
  .hero { padding: 56px 0 56px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  section { padding: 64px 0; }
  dl.facts { grid-template-columns: minmax(0, 1fr); }
  dl.facts dt { border-bottom: none; padding-bottom: 0; }
}

/* Blog */
.hero-slim { padding: 80px 0 56px; }
.hero-slim h1 { max-width: 18ch; }
.hero-sub { color: var(--muted); font-size: 20px; max-width: 58ch; margin: 0; }
.post-list { display: grid; gap: 20px; }
a.post-card { display: block; color: var(--text); transition: border-color .15s; }
a.post-card:hover { text-decoration: none; border-color: var(--accent); }
a.post-card h3 { font-size: 22px; margin: 6px 0 8px; }
a.post-card p { margin: 0; }
.post-card .meta { color: var(--muted); font-size: 14px; }
.post .wrap { max-width: 720px; }
.crumbs { margin: 0 0 16px; font-size: 14px; }
.crumbs a::before { content: "← "; }
.post h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.15; }
.post .updated { margin-bottom: 16px; }
.tags { margin: 0 0 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags .tag { margin: 0; }
.post h2 { font-size: 24px; margin: 44px 0 12px; font-family: "Space Grotesk", "Inter", sans-serif; }
.post h3 { font-size: 19px; margin: 28px 0 8px; }
.post p, .post li { font-size: 18px; line-height: 1.75; }
.post ul, .post ol { padding-left: 22px; }
.post li { margin-bottom: 8px; }
.post blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--accent); }
.post .more { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.post .more h2 { margin-top: 24px; }
