:root {
  color-scheme: dark;
  --bg: #121110;
  --bg-elev: #1b1917;
  --fg: #f0ebe3;
  --muted: #b4ada3;
  --line: #2e2b28;
  --accent: #e2b98a;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(226, 185, 138, 0.07), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(80, 64, 48, 0.28), transparent 50%),
    var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}
a { color: var(--fg); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.wrap {
  position: relative;
  z-index: 1;
  width: min(68rem, calc(100% - 2rem));
  margin: 0 auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 1.1rem;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  font-size: 0.95rem;
}
.logo:hover { color: var(--fg); }
nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
nav a {
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.7rem;
  font-size: 0.95rem;
}
nav a:hover, nav a[aria-current="page"] { color: var(--fg); }
nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.hero { padding: 4.5rem 0 3.25rem; max-width: 42rem; }
.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 4.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #f6f1ea;
}
.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36rem;
}
.soon {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 500;
  background: rgba(27, 25, 23, 0.7);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0 0 4.5rem;
}
.features article {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.35rem 1.25rem 1.4rem;
}
.features h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.page-doc {
  max-width: 40rem;
  padding: 2.75rem 0 1rem;
}
.page-doc h1 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  line-height: 1.15;
}
.page-doc h2 {
  margin: 2rem 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 600;
}
.meta, .muted { color: var(--muted); }
.meta { font-size: 0.95rem; margin: 0 0 1.75rem; }
.page-doc ul { padding-left: 1.15rem; }
.page-doc li + li { margin-top: 0.4rem; }

.site-footer {
  margin-top: 1rem;
  padding: 1.4rem 0 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.site-footer nav { gap: 0; }
.site-footer nav a { padding: 0 0.65rem 0 0; min-height: 40px; }

@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { align-items: flex-start; }
  .hero { padding: 2.6rem 0 2.2rem; }
  .features { grid-template-columns: 1fr; padding-bottom: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
