:root {
  --paper: #F8F6F1;
  --sand: #EFEAE0;
  --ink: #1F2E28;
  --ink-soft: rgba(31, 46, 40, 0.72);
  --ink-faint: rgba(31, 46, 40, 0.30);
  --forest: #2F4F3E;
  --forest-dark: #223A2C;
  --teal: #2C6E7F;
  --redwood: #8C4A34;
  --redwood-dark: #6E3A29;
  --gold: #B99A5B;
  --paper-soft: rgba(248, 246, 241, 0.88);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1120px;
  --radius: 10px;
}

*, *::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.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--teal); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; font-weight: 700; color: var(--teal); margin-bottom: 0.8em; display: block;
}

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper-soft); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31,46,40,0.08);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.brand small { font-family: var(--sans); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a { font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); }
nav.main a.active, nav.main a:hover { color: var(--forest); }
.nav-toggle { display: none; }

@media (max-width: 980px) {
  nav.main { position: fixed; top: 64px; left: 0; right: 0; max-height: calc(100vh - 64px);
    background: var(--paper); flex-direction: column; align-items: flex-start;
    padding: 24px; gap: 18px; overflow-y: auto; box-shadow: 0 12px 24px rgba(31,46,40,0.12);
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease; }
  nav.main.open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }
}

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 700;
  font-size: 0.94rem; border: 2px solid var(--forest); color: var(--forest); background: transparent;
  transition: all 0.2s ease; cursor: pointer;
}
.btn:hover { background: var(--forest); color: var(--paper); }
.btn.solid { background: var(--redwood); border-color: var(--redwood); color: var(--paper); }
.btn.solid:hover { background: var(--redwood-dark); border-color: var(--redwood-dark); color: var(--paper); }

/* Hero */
.hero { padding: 90px 0 70px; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; margin: 40px 0; aspect-ratio: 16/8;
  background: linear-gradient(140deg, var(--forest) 0%, var(--forest-dark) 45%, var(--teal) 100%);
  background-size: 220% 220%;
  animation: breathe 24s ease-in-out infinite alternate; }
/* Placeholder "atmosphere": the gradient drifts slowly so the block reads as
   breathing rather than flat. Stand-in until real footage exists (v2: video). */
@keyframes breathe {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
@media (prefers-reduced-motion: reduce) { .hero-media { animation: none; } }
.hero-media .cap { position: absolute; bottom: 16px; right: 20px; font-size: 0.75rem; color: rgba(248,246,241,0.75); }

/* Print-like grain — barely-there texture so large color fields read less flat.
   Pure CSS (inline SVG turbulence), no image asset. */
.hero, section.tint, footer.site { position: relative; }
.hero::after, section.tint::after, footer.site::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: multiply;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

/* Sections */
section { padding: 64px 0; }
section.tint { background: var(--sand); }
.grid { display: grid; gap: 28px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid rgba(31,46,40,0.08); }
.card h3 { margin-bottom: 0.4em; }
.card .meta { font-size: 0.85rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }

/* Town scene — experiential opener on each town card. Answers "what would Tuesday
   morning feel like here" (review item 4); facts stay in the body paragraph below it. */
.card .town-scene {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 1.12rem; line-height: 1.5; color: var(--ink);
}

.proof-item { border-left: 3px solid var(--gold); padding-left: 18px; margin-bottom: 26px; }
.proof-item .src { font-size: 0.8rem; color: var(--ink-faint); font-style: italic; }

/* Field note — Jed's perspective, one per page. Magazine pull-quote, not a bio box. */
section.field-note { padding: 28px 0; }
.field-note blockquote { max-width: 640px; margin: 0 auto; padding: 6px 0 6px 28px; border-left: 2px solid var(--gold); }
.field-note blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.4;
  color: var(--ink); margin: 0 0 12px;
}
.field-note cite {
  font-family: var(--sans); font-style: normal; font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; }
.table-scroll table.plain { margin: 0; min-width: 560px; }
table.plain { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
table.plain th, table.plain td { text-align: left; padding: 10px 14px; border-bottom: 1px solid rgba(31,46,40,0.1); font-size: 0.93rem; }
table.plain th { font-family: var(--serif); font-weight: 600; color: var(--forest); }

.pill { display: inline-block; background: var(--sand); color: var(--forest); border-radius: 999px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; margin: 0 6px 6px 0; }
.status-banner { background: var(--forest); color: var(--paper); padding: 12px 0; text-align: center; font-size: 0.88rem; font-weight: 600; }
.status-banner a { color: var(--gold); text-decoration: underline; }

.hidden-field { display: none !important; }

/* Form */
.lead-form { background: var(--forest); color: var(--paper); border-radius: var(--radius); padding: 44px; }
.lead-form h2, .lead-form p { color: var(--paper); }
.lead-form .lede { color: rgba(248,246,241,0.8); }
.lead-form input[type=email], .lead-form input[type=text] {
  width: 100%; padding: 14px 16px; border-radius: 8px; border: none; font-family: var(--sans);
  font-size: 1rem; margin-bottom: 14px;
}
.lead-form .btn.solid { width: 100%; }

/* Footer */
footer.site { background: var(--forest-dark); color: rgba(248,246,241,0.85); padding: 52px 0 32px; margin-top: 40px; }
footer.site a { color: rgba(248,246,241,0.85); }
footer.site a:hover { color: var(--gold); }
.dre-block { font-size: 0.85rem; line-height: 1.8; border-top: 1px solid rgba(248,246,241,0.18); padding-top: 22px; margin-top: 28px; color: rgba(248,246,241,0.65); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }

.credit-card { font-size: 0.82rem; color: var(--ink-faint); border-top: 1px dashed rgba(31,46,40,0.2); padding-top: 12px; margin-top: 16px; }

/* Concierge quiz (The Towns) */
.concierge fieldset { border: none; margin: 0 0 26px; padding: 0; }
.concierge legend { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 10px; padding: 0; color: var(--ink); }
.concierge label { display: block; padding: 7px 0; cursor: pointer; color: var(--ink-soft); font-size: 0.96rem; }
.concierge label:hover { color: var(--ink); }
.concierge input[type=radio] { accent-color: var(--forest); margin-right: 10px; }
.concierge-result { display: none; border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin-top: 28px; }
.concierge-result.show { display: block; }
.concierge-note { display: none; color: var(--redwood); font-size: 0.9rem; margin-top: 14px; }
.concierge-note.show { display: block; }

/* Add-to-home-screen hint (PWA) */
.install-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  background: var(--paper); border-top: 2px solid var(--gold);
  border-radius: var(--radius); padding: 18px 44px 18px 20px;
  box-shadow: 0 10px 30px rgba(31,46,40,0.18);
  animation: install-rise 0.4s ease;
}
@keyframes install-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.install-banner .install-lead { font-family: var(--serif); font-style: italic; font-size: 1.05rem; margin: 0 0 6px; }
.install-banner .install-how { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }
.install-banner .btn { padding: 10px 20px; font-size: 0.86rem; margin-top: 4px; }
.install-dismiss {
  position: absolute; top: 8px; right: 10px; background: none; border: none;
  font-size: 1.3rem; line-height: 1; color: var(--ink-faint); cursor: pointer; padding: 6px;
}
