:root {
  --paper: #f7f2e9;
  --paper-2: #efe7d8;
  --ink: #1f1b16;
  --ink-soft: #5a5146;
  --rule: #d9cdb8;
  --accent: #c2410c;
  --accent-soft: #fbe3d3;
  --road: #b9a98f;
  --card: #fffdf8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 960px;
  --gutter: clamp(16px, 5vw, 40px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140f;
    --paper-2: #201c16;
    --ink: #f1eadf;
    --ink-soft: #b3a796;
    --rule: #3a332a;
    --accent: #f08a4b;
    --accent-soft: #3a2416;
    --road: #5c5244;
    --card: #1e1a14;
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
}
.brand svg { flex: none; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* Hero */
.hero { padding: clamp(56px, 11vw, 120px) 0 clamp(48px, 8vw, 88px); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.05;
  letter-spacing: -0.015em; margin: 0 0 24px; max-width: 14ch;
}
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 36em; margin: 0 0 32px; }
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  text-decoration: none; font-weight: 500; font-size: 15px;
}
.button:hover { background: var(--accent); color: #fff; }

/* Road divider */
.road {
  height: 4px; margin: 0;
  background-image: linear-gradient(to right, var(--road) 60%, transparent 0);
  background-size: 22px 4px; background-repeat: repeat-x;
  border: 0;
}

/* Sections */
section { padding: clamp(56px, 9vw, 96px) 0; }
.section-label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px;
}
h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 4.5vw, 42px); line-height: 1.15; margin: 0 0 16px;
}
h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.lede { color: var(--ink-soft); max-width: 36em; margin: 0 0 40px; }

/* Ventures as stops on a route */
.route { list-style: none; margin: 0; padding: 0; position: relative; }
.route::before {
  content: ""; position: absolute; left: 11px; top: 12px; bottom: 12px; width: 2px;
  background-image: linear-gradient(to bottom, var(--road) 60%, transparent 0);
  background-size: 2px 14px;
}
.stop { position: relative; padding-left: 48px; margin-bottom: 24px; }
.stop:last-child { margin-bottom: 0; }
.stop::before {
  content: ""; position: absolute; left: 4px; top: 26px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--accent);
}
.stop.next::before { border-color: var(--road); }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 14px;
  padding: 22px 24px;
}
.stop.next .card { background: transparent; border-style: dashed; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; }
.card-top h3 { margin: 0; }
.card p { margin: 0; color: var(--ink-soft); }
.badge {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
}
.badge.muted { background: var(--paper-2); color: var(--ink-soft); }
.stop-num { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.08em; margin-bottom: 4px; display: block; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }
.about-grid p { color: var(--ink-soft); }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 18px 0; border-top: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 1px solid var(--rule); }
.principles strong { display: block; font-family: var(--serif); font-size: 19px; color: var(--ink); }
.principles span { color: var(--ink-soft); }

/* Contact */
.contact { background: var(--paper-2); }
.email-link {
  font-family: var(--serif); font-size: clamp(24px, 4.5vw, 36px);
  text-decoration: none; border-bottom: 2px solid var(--accent);
  word-break: break-word;
}

/* Footer */
.site-footer { padding: 32px 0 40px; font-size: 14px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { text-decoration: none; }
.fine { width: 100%; font-size: 12px; margin-top: 8px; opacity: 0.85; }

/* Product pages (e.g. /SecondShift/) */
.app-hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 820px) { .app-hero { grid-template-columns: 1.4fr 0.6fr; } }
.app-mascot { width: 100%; max-width: 280px; height: auto; justify-self: center; }
.button[aria-disabled="true"] { cursor: default; }
.button[aria-disabled="true"]:hover { background: var(--ink); color: var(--paper); }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid h3 { margin-bottom: 6px; }
.faq { max-width: 42em; margin-bottom: 40px; }
.faq h3 { font-size: 19px; margin: 28px 0 6px; }
.faq p { color: var(--ink-soft); margin: 0; }
.faq-contact { margin-bottom: 16px; }

/* Prose pages (privacy, terms) */
.prose { padding: clamp(48px, 8vw, 80px) 0; max-width: 42em; }
.prose h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 48px); line-height: 1.1; margin: 0 0 8px; }
.prose .updated { color: var(--ink-soft); margin: 0 0 32px; font-size: 15px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 12px; }
.prose ul { color: var(--ink-soft); margin: 0 0 12px; padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }

@media (max-width: 520px) {
  .nav { gap: 12px; font-size: 14px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand svg { width: 26px; height: 26px; }
  .eyebrow { font-size: 12px; letter-spacing: 0.08em; }
  .card { padding: 18px; }
}
.brand-icon { flex: none; border-radius: 8px; }

/* Second Shift guide cards */
#guides { padding-bottom: 24px; }
.guide-card { display: block; text-decoration: none; color: inherit; }
.guide-card h3 { color: var(--ink); }
.guide-card:hover h3 { text-decoration: underline; }
