/* Postcard marketing site — token contract per DESIGN.md (D008). Light only. */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/outfit-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/sourcesans3-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/sourcesans3-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}

:root {
  --paper: #F7F6F2;
  --card: #FFFFFF;
  --sunk: #EFEDE7;
  --ink: #16181D;
  --ink-2: #454A55;
  --muted: #6B7080;
  --rule: #DCD9D0;
  --rule-2: #C9C5B9;
  --accent: #0E6B6B;
  --accent-strong: #084F4F;
  --accent-soft: #DDEEEC;
  --good: #00703C;
  --good-soft: #E2EFE7;
  --warn: #8A5A00;
  --warn-soft: #F7EBD4;
  --alert: #B5121B;
  --alert-soft: #F5E3E3;
  --shadow: 0 1px 2px rgba(20,22,28,.05), 0 3px 10px rgba(20,22,28,.045);
  --radius: 8px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: 'Source Sans 3', -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: lining-nums tabular-nums;
}

h1, h2, h3, .display {
  font-family: 'Outfit', -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .4em;
}
h1 { font-size: clamp(34px, 7vw, 52px); letter-spacing: -0.015em; line-height: 1.05; }
h2 { font-size: clamp(26px, 4.4vw, 32px); letter-spacing: -0.01em; line-height: 1.12; }
h3 { font-size: 20px; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
img { max-width: 100%; display: block; }
.detail { font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .01em; }

.brand { font-family: 'Outfit', sans-serif; font-weight: 600; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.measure { max-width: 62ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: 12px 26px;
  border-radius: var(--radius); border: 1px solid transparent;
  font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 17px;
  text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn-primary { background: var(--accent-strong); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-on-photo { background: #fff; color: var(--accent-strong); }
.btn-on-photo:hover { background: var(--accent-soft); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247,246,242,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 21px; text-decoration: none; color: var(--ink); }
.logo .brand { color: var(--accent-strong); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 16px; }
.main-nav a:not(.btn):hover { color: var(--accent-strong); }
.main-nav a.is-current { color: var(--accent-strong); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 24px 20px; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--rule-2);
    background: var(--card); cursor: pointer;
  }
}

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,20,20,0) 0%, rgba(12,24,22,.18) 45%, rgba(9,20,19,.82) 100%); }
.hero-content { position: relative; z-index: 2; padding: 64px 0 56px; color: #fff; max-width: 760px; }
.hero-content .eyebrow { color: #DDEEEC; }
.hero-content h1 { color: #fff; }
.hero-content p { color: #EAF3F1; font-size: 20px; max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.eyebrow { display: inline-block; font-family: 'Source Sans 3', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--accent-strong); }

/* Sections */
section { padding: 84px 0; position: relative; }
section.tight { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.right { margin-left: auto; text-align: right; }
.on-sunk { background: var(--sunk); }
.on-card-band { background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

/* Threaded line — the signature element. A drawn stroke, `stroke-dashoffset` animates on scroll. */
.thread-rail { position: relative; }
.thread-rail svg.thread-line { position: absolute; left: 18px; top: 0; height: 100%; width: 4px; overflow: visible; }
.thread-rail svg.thread-line path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.thread-stops { list-style: none; margin: 0; padding: 0; }
.thread-stop { position: relative; padding: 0 0 56px 64px; }
.thread-stop:last-child { padding-bottom: 0; }
.thread-stop::before {
  content: ""; position: absolute; left: 12px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--accent); box-shadow: 0 0 0 4px var(--paper);
}
.thread-stop .step-no { display: block; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; color: var(--accent-strong); margin-bottom: 4px; }
.thread-stop h3 { margin-bottom: 6px; }
.thread-stop:nth-child(2) { margin-left: 6%; }
.thread-stop:nth-child(4) { margin-left: 6%; }
@media (max-width: 640px) { .thread-stop:nth-child(2), .thread-stop:nth-child(4) { margin-left: 0; } }

/* "Not a booking site" split */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; align-items: center; }
.split .split-copy { padding: 0 48px 0 0; }
.split .split-photo { position: relative; }
.split .split-photo img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; box-shadow: var(--shadow); }
.pull { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 24px; color: var(--ink); line-height: 1.3; margin: 20px 0; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split .split-copy { padding: 0; order: 2; }
  .split .split-photo { order: 1; margin: 0 -24px; }
  .split .split-photo img { border-radius: 0; }
}

/* Day card mock — DESIGN.md pattern */
.day-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; max-width: 560px; }
.day-card summary { list-style: none; cursor: pointer; padding: 18px 22px; background: var(--sunk); display: flex; align-items: baseline; gap: 12px; }
.day-card summary::-webkit-details-marker { display: none; }
.day-card .date-stamp { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--accent-strong); font-size: 15px; }
.day-card .day-title { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 18px; color: var(--ink); }
.day-card .day-note { color: var(--muted); font-size: 15px; margin-left: auto; }
.day-card .day-body { padding: 18px 22px 22px; }
.leg-strip { list-style: none; margin: 0 0 16px; padding: 0; border-left: 2px solid var(--rule-2); }
.leg-strip li { position: relative; padding: 4px 0 4px 18px; font-size: 16px; color: var(--ink-2); }
.leg-strip .mode { color: var(--accent-strong); font-weight: 600; margin-right: 6px; }
.leg-strip .time { color: var(--muted); float: right; font-variant-numeric: tabular-nums; }
.callouts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.callout { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
.callout.watch { background: var(--warn-soft); color: var(--warn); }
.callout.booked { background: var(--good-soft); color: var(--good); }
.callout.free { background: var(--accent-soft); color: var(--accent-strong); }
.alt-menu { border-top: 1px solid var(--rule); padding-top: 12px; font-size: 15px; color: var(--muted); }
.alt-menu strong { color: var(--ink-2); }

/* Trip-with section */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.role-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.role-card .detail { color: var(--accent-strong); display: block; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* Scrapbook / book */
.scrap-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.scrap-photo { position: relative; }
.scrap-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.book-mock { display: flex; align-items: flex-end; gap: 4px; margin-top: 28px; }
.book-mock .spine { width: 34px; height: 84px; background: var(--accent-strong); border-radius: 3px 0 0 3px; }
.book-mock .pages { width: 150px; height: 100px; background: var(--card); border: 1px solid var(--rule-2); border-left: none; border-radius: 0 6px 6px 0; box-shadow: var(--shadow); position: relative; }
.book-mock .pages::after { content: "the printed book"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; padding: 8px; }
@media (max-width: 860px) { .scrap-wrap { grid-template-columns: 1fr; } .scrap-photo { margin: 0 -24px; } .scrap-photo img { border-radius: 0; } }

/* Pricing teaser */
.pricing-banner { display: inline-block; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.tier-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.tier-card.featured { border-color: var(--accent); box-shadow: 0 2px 4px rgba(14,107,107,.12), 0 8px 24px rgba(14,107,107,.14); transform: translateY(-10px); }
.tier-card .tier-name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 22px; color: var(--ink); }
.tier-card .tier-price { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 36px; color: var(--accent-strong); margin: 6px 0 4px; font-variant-numeric: lining-nums tabular-nums; }
.tier-card .tier-price small { font-family: 'Source Sans 3', sans-serif; font-size: 15px; color: var(--muted); font-weight: 600; }
.tier-card ul { list-style: none; margin: 18px 0; padding: 0; font-size: 16px; }
.tier-card li { padding: 6px 0 6px 24px; position: relative; }
.tier-card li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.tag-featured { display: inline-block; background: var(--accent-strong); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
@media (max-width: 860px) { .tier-grid { grid-template-columns: 1fr; } .tier-card.featured { transform: none; } }

/* FAQ */
.faq-list { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq-item summary { cursor: pointer; list-style: none; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 19px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 22px; flex-shrink: 0; transition: transform 200ms var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--sunk); border-top: 1px solid var(--rule); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-strong); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Reveal on scroll — hidden state applied by JS only (never CSS alone). */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.js-has-reveal .reveal { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.reveal-photo { clip-path: inset(0 0 100% 0); }
.reveal-photo.is-visible { clip-path: inset(0 0 0% 0); transition: clip-path 900ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal-photo, .reveal-photo.is-visible { clip-path: none !important; transition: none !important; }
}

/* Generic content pages (about, pricing detail, privacy) */
.page-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--rule); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
table.plain { border-collapse: collapse; width: 100%; margin: 1.4em 0; }
table.plain th, table.plain td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rule); font-size: 16px; }
table.plain th { font-family: 'Outfit', sans-serif; color: var(--ink); background: var(--sunk); }

.card-simple { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

.contact-strip { background: var(--accent-strong); color: #fff; padding: 56px 0; }
.contact-strip h2 { color: #fff; }
.contact-strip p { color: #DDEEEC; }

.credits-list { list-style: none; margin: 0; padding: 0; }
.credits-list li { padding: 18px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.credits-list .credit-photo { max-width: 260px; border-radius: var(--radius); margin-bottom: 10px; }
