:root {
  --bg: #11161c;
  --bg-raised: #171e26;
  --line: #2a333d;
  --text: #e8e3da;
  --muted: #a39d93;
  --accent: #d29a5a;
  --accent-strong: #e6b37a;
  --hull-dot: #11161c;
  --max: 68rem;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f2ea;
    --bg-raised: #fffdf8;
    --line: #ddd4c5;
    --text: #1c232b;
    --muted: #5c6168;
    --accent: #95602a;
    --accent-strong: #7a4c1e;
    --hull-dot: #f6f2ea;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--accent-strong); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--bg-raised);
  padding: 0.5rem 0.75rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
  font-size: 1.125rem;
  white-space: nowrap;
}
@media (max-width: 26rem) {
  .brand { font-size: 1rem; gap: 0.45rem; }
  .brand svg { width: 1.9rem; height: 1.9rem; }
  .nav { gap: 0.85rem; font-size: 0.9rem; }
}
.brand:hover { color: var(--text); }
.brand svg { width: 2.25rem; height: 2.25rem; color: var(--accent); flex: none; }
.nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding: 5.5rem 0 1rem; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-wrap: balance;
}
.hero p.lede {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.2rem;
}
.rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.75rem;
  color: var(--accent);
}
.rule::before, .rule::after { content: ""; height: 1px; background: var(--line); }
.rule::before { width: 3rem; }
.rule::after { flex: 1; }
.rule svg { width: 1rem; height: 1rem; flex: none; }

/* Sections */
section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }
h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
}
@media (max-width: 44rem) {
  .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero { padding: 3.5rem 0 0.5rem; }
}
.muted { color: var(--muted); }
address { font-style: normal; }
dl.contact { margin: 0; display: grid; gap: 0.9rem; }
dl.contact dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
dl.contact dd { margin: 0.1rem 0 0; }

/* Long-form pages */
.prose { max-width: 44rem; padding: 3.5rem 0 4rem; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.prose h2 { margin-top: 2.5rem; font-size: 1.3rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.05rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.prose .updated { color: var(--muted); margin: 0 0 2rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
