/* Roam Unfold — editorial design system
   Palette drawn from the routebooks: cream paper, ink green, terracotta. */

:root {
  --ink: #23423A;
  --ink-soft: #2E5347;
  --paper: #F3F1EA;
  --paper-2: #ECE8DC;
  --card: #FBFAF6;
  --hair: #D8D2C4;
  --text: #26241F;
  --muted: #6E6A5E;
  --accent: #C2571B;
  --accent-dark: #A8491B;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1.02; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; color: var(--ink); margin-bottom: 14px; }
.h-light { color: var(--paper); }
.kicker {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; font-weight: 600;
}
.kicker-light { color: #E0A87C; }
.section-sub { color: var(--muted); max-width: 640px; margin-bottom: 40px; }

.sq { display: inline-block; width: 9px; height: 9px; background: var(--accent); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 241, 234, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.wordmark {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  letter-spacing: 0.18em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 9px 18px; font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; border-radius: 3px;
  padding: 13px 26px; font-size: 15px; font-weight: 600;
  text-decoration: none; text-align: center; transition: all .15s ease;
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #1A322B; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 3px;
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-light { background: transparent; color: var(--paper); border: 1px solid rgba(243,241,234,.5); border-radius: 3px; }
.btn-ghost-light:hover { background: var(--paper); color: var(--ink); }
.btn-block { display: block; width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: 5fr 6fr; gap: 56px; align-items: center;
}
.lede { font-size: 18px; color: var(--muted); margin: 22px 0 30px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-facts {
  list-style: none; display: flex; gap: 26px; flex-wrap: wrap;
  border-top: 1px solid var(--hair); padding-top: 20px;
}
.hero-facts li { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.hero-facts strong {
  font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600; font-size: 24px; color: var(--ink);
  display: block; line-height: 1.2; letter-spacing: -0.04em;
}
.hero-figure { position: relative; }
.hero-figure img {
  width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3.4;
  border-radius: 4px; box-shadow: 18px 18px 0 var(--paper-2), 18px 18px 0 1px var(--hair);
}
.hero-figure figcaption {
  margin-top: 34px; font-size: 12.5px; color: var(--muted); letter-spacing: .04em;
}

/* ---------- strip ---------- */
.strip { background: var(--ink); padding: 16px 0; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.strip-inner span { color: rgba(243,241,234,.85); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.strip-inner .sq { width: 7px; height: 7px; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-paper { background: var(--paper-2); }
.section-ink { background: var(--ink); }
.section-ink h2 { color: var(--paper); }
.section-ink .section-sub { color: rgba(243,241,234,.65); }

/* ---------- routes ---------- */
.route-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.route-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 4px;
  overflow: hidden; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
  color: inherit; text-decoration: none;
}
.route-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.route-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35,66,58,.12); }
.route-card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; }
.route-body { padding: 18px 20px 20px; }
.route-body h3 { font-size: 21px; color: var(--ink); margin-bottom: 4px; }
.route-days {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}
.route-sub { font-size: 14px; color: var(--text); margin-bottom: 10px; }
.route-stops {
  font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--hair);
  padding-top: 10px; line-height: 1.5;
}
.route-open { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 12px; }

/* ---------- how / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.step {
  border: 1px solid rgba(243,241,234,.22); border-radius: 4px; padding: 28px 26px;
}
.step-num {
  font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums;
  font-size: 30px; font-weight: 600; letter-spacing: -0.04em;
  color: #E0A87C; margin-bottom: 12px;
}
.step h3 { color: var(--paper); font-size: 20px; margin-bottom: 10px; }
.step p { color: rgba(243,241,234,.75); font-size: 14.5px; }
.step strong { color: var(--paper); }

/* ---------- inside ---------- */
.inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.inside-card {
  border-top: 2px solid var(--accent); background: var(--card);
  border-left: 1px solid var(--hair); border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair); border-radius: 0 0 4px 4px; padding: 22px 20px;
}
.inside-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.inside-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; max-width: 880px; }
.price-card {
  background: var(--card); border: 1px solid var(--hair); border-radius: 5px;
  padding: 34px 32px 30px; display: flex; flex-direction: column;
}
.price-card-featured { border: 1.5px solid var(--ink); position: relative; }
.price-flag {
  position: absolute; top: -13px; left: 26px;
  background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 3px;
}
.price-label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.price {
  font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums;
  font-size: 60px; font-weight: 600; letter-spacing: -0.055em;
  color: var(--ink); line-height: 1.1; margin: 6px 0 2px;
}
.price sup { font-size: 26px; vertical-align: super; margin-right: 4px; }
.price-note { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.price-card ul { list-style: none; margin-bottom: 28px; flex: 1; }
.price-card li {
  font-size: 14.5px; padding: 9px 0 9px 24px; position: relative;
  border-bottom: 1px solid var(--hair);
}
.price-card li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; background: var(--accent); }
.price-foot { margin-top: 26px; color: var(--muted); font-size: 14px; max-width: 640px; }

/* ---------- not sure where ---------- */
.unsure-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.unsure-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.unsure-panel { background: var(--card); border: 1px solid var(--hair); border-radius: 5px; padding: 30px; }
.unsure-panel-title { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 18px; }
.unsure-steps { list-style: none; }
.unsure-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 15px 0; border-top: 1px solid var(--hair); }
.unsure-steps li > span { font-family: var(--sans); font-weight: 600; font-variant-numeric: lining-nums; color: var(--accent); }
.unsure-steps p { font-size: 14px; color: var(--muted); }
.unsure-steps strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 3px; }
.unsure-note { border-top: 1px solid var(--hair); padding-top: 16px; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- gentle motion ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease var(--reveal-delay, 0ms), transform .55s ease var(--reveal-delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero-copy { animation: hero-in .65s ease both; }
.hero-figure { animation: hero-in .75s .08s ease both; }
.route-card img { transition: transform .45s ease; }
.route-card:hover img { transform: scale(1.035); }
.modal-panel { animation: modal-in .22s ease both; }
details summary { transition: color .18s ease; }
details summary:hover { color: var(--accent); }
@keyframes hero-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--hair); }
details summary {
  list-style: none; cursor: pointer; padding: 18px 0;
  font-family: var(--serif); font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--accent); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); font-size: 15px; }
.js-email-inline { color: var(--ink); font-weight: 600; }

/* ---------- contact ---------- */
.contact-wrap { text-align: center; max-width: 640px; }
.contact-wrap .kicker { margin-top: 0; }
.contact-lede { color: rgba(243,241,234,.75); margin: 6px 0 30px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-mail { margin-top: 26px; color: rgba(243,241,234,.6); font-size: 14px; }
.contact-mail .js-email-inline { color: var(--paper); font-weight: 600; }

/* ---------- footer ---------- */
.footer { background: #1A322B; color: rgba(243,241,234,.7); padding: 44px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer .wordmark { color: var(--paper); }
.footer p:not(.wordmark):not(.fine) { font-size: 14px; max-width: 520px; }
.footer .fine { font-size: 12.5px; color: rgba(243,241,234,.45); }
.footer-links { display: flex; gap: 18px; font-size: 13px; }
.footer-links a { color: rgba(243,241,234,.75); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--paper); }

/* ---------- dialogs, forms & previews ---------- */
.modal-dialog {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
  margin: 0; padding: 20px; border: 0; background: transparent; color: var(--text);
  display: none; align-items: center; justify-content: center; overflow: auto;
}
.modal-dialog[open] { display: flex; }
.modal-dialog::backdrop { background: rgba(26,35,32,.68); }
.modal-panel {
  position: relative; background: var(--paper); border-radius: 6px; max-width: 880px; width: 100%;
  max-height: 92vh; overflow-y: auto; box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.modal-panel-sm { max-width: 560px; }
.modal-x {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  background: var(--paper); border: 1px solid var(--hair); border-radius: 50%;
  width: 40px; height: 40px; font-size: 22px; color: var(--ink); line-height: 1;
}
.modal-x:focus-visible, .btn:focus-visible, select:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
.modal-media img { width: 100%; aspect-ratio: 21/9; object-fit: cover; }
.modal-body { padding: 30px 34px 34px; }
.modal-body h3 { font-size: 28px; color: var(--ink); margin-bottom: 6px; }
.modal-sub { color: var(--text); font-size: 16px; margin-bottom: 8px; }
.modal-stops { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; border-bottom: 1px solid var(--hair); padding-bottom: 16px; }
.modal-highlights { list-style: none; margin-bottom: 24px; }
.modal-highlights li { padding: 10px 0; font-size: 14.5px; color: var(--muted); border-bottom: 1px solid var(--hair); }
.modal-highlights li:last-child { border-bottom: none; }
.modal-highlights strong {
  display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 3px;
}
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal-fine { margin-top: 16px; font-size: 12.5px; color: var(--muted); }

.preview-block { margin: 26px 0; border: 1px solid var(--hair); border-radius: 4px; overflow: hidden; background: var(--card); }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--hair); }
.preview-head p { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.preview-head span { font-size: 12px; color: var(--muted); }
.preview-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0; }
.preview-tabs button {
  border: 1px solid var(--hair); background: transparent; color: var(--muted);
  border-radius: 3px; padding: 7px 12px; font-size: 13px;
}
.preview-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.preview-frame { padding: 12px; }
.preview-frame img { width: 100%; height: auto; border: 1px solid var(--hair); background: #fff; }
.preview-frame p { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }

.field { display: block; margin: 0 0 16px; }
.field > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--hair); border-radius: 3px; background: var(--card);
  color: var(--text); font: inherit; font-size: 14px; padding: 10px 11px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: repeat(2, 1fr); }
  .unsure-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .route-grid { grid-template-columns: 1fr; }
  .inside-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .modal-body { padding: 24px 22px 28px; }
  .unsure-panel { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .preview-head { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
