:root {
  --bg: #f4ece2;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #fff9f2;
  --line: rgba(67, 49, 32, 0.12);
  --line-strong: rgba(67, 49, 32, 0.18);
  --text: #2f2418;
  --muted: #6e6257;
  --accent: #a54f27;
  --accent-soft: #f5dfcf;
  --shadow: 0 28px 70px rgba(55, 34, 16, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 28rem),
    linear-gradient(180deg, #f8f0e6 0%, #f4ece2 55%, #efe5d6 100%);
  font-family: var(--sans);
  line-height: 1.6;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", SFMono-Regular, ui-monospace, monospace;
  font-size: 0.92em;
  background: rgba(165, 79, 39, 0.08);
  border-radius: 0.4rem;
  padding: 0.08rem 0.35rem;
}

.site-header {
  padding: 2rem clamp(1.2rem, 3vw, 2.8rem) 0;
}

.site-header-inner,
.site-meta,
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}

.brand-mark {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-copy,
.site-url,
.hero-card-note,
.prose p strong:first-child {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-nav-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.5);
}

.site-nav-link.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.site-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 0 0.1rem;
}

.site-url a {
  text-decoration: none;
}

.page-shell {
  padding: 1.4rem clamp(1.2rem, 3vw, 2.8rem) 3.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.route-card,
.support-card,
.doc-content,
.doc-sidebar {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.hero-copy,
.hero-card,
.route-card,
.support-card,
.doc-sidebar {
  border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 2.7vw, 2.2rem);
}

.hero-copy h1 {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero-summary,
.route-card p,
.support-card p,
.prose p,
.prose li {
  font-size: 1.04rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  background: var(--panel-strong);
}

.hero-card-label,
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-card-value {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.1;
}

.route-grid,
.doc-layout {
  margin-top: 1.25rem;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.route-card h2 {
  margin: 0.4rem 0 0;
  font-family: var(--serif);
  font-size: 2rem;
}

.route-card a {
  text-decoration: none;
}

.support-card {
  margin-top: 1rem;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 1.2rem;
}

.toc-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.toc-level-3 {
  padding-left: 0.85rem;
}

.toc-list a {
  text-decoration: none;
  color: var(--muted);
}

.doc-content {
  border-radius: calc(var(--radius-xl) + 2px);
  padding: clamp(1.5rem, 2.8vw, 2.5rem);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose h1,
.prose h2,
.prose h3 {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.prose h3 {
  margin-top: 1.8rem;
  font-size: 1.35rem;
}

.prose ul {
  padding-left: 1.35rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose hr {
  margin: 2rem 0;
  border: 0;
  border-top: 1px solid var(--line-strong);
}

.prose a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
}

@media (max-width: 900px) {
  .hero,
  .doc-layout,
  .route-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner,
  .site-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-sidebar {
    position: static;
  }
}
