:root {
  --bg: #f2eee7;
  --surface: #fffdf9;
  --surface-muted: #f8f4ed;
  --text: #201b17;
  --muted: #655e56;
  --line: #ddd5ca;
  --line-strong: #cfc5b8;
  --accent: #1f1c18;
  --accent-strong: #11100e;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(23, 20, 16, 0.05);
  --font-body: "SF Pro Text", "SF Pro Display", "Helvetica Neue", Aptos, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

body {
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

code {
  font-family: var(--font-mono);
}

.site-shell {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  padding: 28px 0 88px;
}

.site-header,
.preview-panel,
.prose-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 28px;
  height: 28px;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.site-nav a:not(.button) {
  color: var(--muted);
  font-weight: 600;
}

.site-nav a:not(.button):hover,
.footer-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffdf9;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.site-main {
  display: grid;
  gap: 88px;
  margin-top: 52px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 80px;
  align-items: center;
  padding: 12px 8px 0;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.hero h1,
.section-head h1,
.section-head h2,
.cta-section h2 {
  margin: 0;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.hero p,
.section-head p,
.feature-card p,
.detail-row p,
.preview-header p,
.site-footer p,
.prose-block p,
.cta-section p {
  margin: 0;
  color: var(--muted);
}

.hero p {
  max-width: 38rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.preview-panel {
  display: grid;
  gap: 26px;
  padding: 30px 32px;
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.preview-header strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.preview-header span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.route-visual {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.route-track {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.route-step {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fffdf9;
  box-shadow: 0 0 0 1px rgba(31, 28, 24, 0.12);
}

.route-step-start {
  background: #1b5b44;
}

.route-step-gas {
  background: #ab602e;
}

.route-step-night {
  background: #5e4b89;
}

.route-step-finish {
  background: #11100e;
}

.route-segment {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(171, 96, 46, 0.36), rgba(94, 75, 137, 0.36));
}

.route-legend {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}

.route-legend span:last-child {
  text-align: right;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.preview-stats div {
  display: grid;
  gap: 6px;
}

.preview-stats dt {
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-stats dd {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.preview-days {
  margin: 0;
  padding: 0;
  list-style: none;
}

.preview-days li {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.preview-days li:first-child {
  padding-top: 0;
  border-top: none;
}

.preview-days span {
  color: var(--muted);
}

.preview-days strong {
  font-size: 1rem;
}

.section {
  display: grid;
  gap: 32px;
  padding: 0 8px;
}

.section-head {
  display: grid;
  gap: 10px;
  max-width: 34rem;
}

.section-head h1,
.section-head h2,
.cta-section h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
}

.section-head-narrow {
  max-width: 26rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card,
.detail-row {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.feature-card h3,
.detail-row h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.detail-list {
  display: grid;
  gap: 20px;
}

.cta-section {
  display: grid;
  gap: 20px;
  padding: 0 8px;
  justify-items: start;
}

.content-page {
  display: grid;
  gap: 20px;
  padding: 8px;
}

.prose-block {
  padding: 24px 26px;
}

.prose-block p + p {
  margin-top: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 72px;
  padding: 0 8px;
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 1080px) {
  .hero,
  .section-split,
  .feature-grid,
  .preview-stats {
    grid-template-columns: 1fr;
  }

  .section-head,
  .cta-section,
  .site-footer {
    display: grid;
    justify-items: start;
  }

  .hero h1,
  .section-head h1,
  .section-head h2,
  .cta-section h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header,
  .preview-panel,
  .prose-block {
    padding: 20px;
  }

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

  .hero {
    gap: 32px;
    padding-top: 0;
  }

  .preview-days li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .route-legend {
    grid-template-columns: 1fr;
  }

  .route-legend span:last-child {
    text-align: left;
  }

  .site-nav {
    width: 100%;
  }
}
