/* ==========================================================================
   Secrets of Surf Travel — styles.css
   Editorial field-journal aesthetic.
   Palette (matched to the SoST badge logo): sea-foam #F7FAFB · mist #E2ECF0 · deep navy #16324F · logo teal #17A398 · ocean slate #4A7FA0
   Type: Fraunces (headings) + Inter (body)
   ========================================================================== */

:root {
  --paper: #F7FAFB;
  --sand: #E2ECF0;
  --ink: #16324F;
  --teal: #17A398;
  --teal-dark: #0F7E76;
  --ocean: #4A7FA0;
  --ink-soft: rgba(22, 50, 79, 0.72);
  --ink-faint: rgba(22, 50, 79, 0.28);
  --paper-soft: rgba(247, 250, 251, 0.82);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1080px;
  --radius: 10px;
}

/* ---------- Reset & base ---------- */

*, *::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: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

img, svg { max-width: 100%; }

ul, ol { padding-left: 1.3em; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow { max-width: 720px; }

section { padding: 4rem 0; }

.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink a { color: #6FD0C6; }
.section-ink a:hover { color: var(--paper); }

.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 0.9rem;
}

.section-ink .kicker { color: #A8C4D4; }

.lead { font-size: 1.2rem; color: var(--ink-soft); }
.section-ink .lead { color: var(--paper-soft); }

.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- Dashed route motif ---------- */

.route-line {
  border: none;
  border-top: 2px dashed var(--ink-faint);
  margin: 0;
  position: relative;
  overflow: visible;
}
.route-line::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px dashed var(--teal);
  background: var(--paper);
}

/* ---------- Stamp badges ---------- */

.stamp {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.55em 0.9em;
  border: 2px solid currentColor;
  border-radius: 7px;
  transform: rotate(-2deg);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px currentColor;
  background: var(--paper);
  white-space: nowrap;
}
.stamp--researched { color: var(--teal-dark); }
.stamp--truthed { color: var(--ocean); }
.stamp--soon { color: var(--ink-soft); opacity: 0.75; }

/* ---------- Price tier tags (pilot: lodging + food only) ---------- */

.tier-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.32em 0.55em;
  border: 1.5px solid currentColor;
  border-radius: 5px;
  background: var(--paper);
  white-space: nowrap;
  margin-left: 0.4rem;
  vertical-align: middle;
}
.tier-budget { color: var(--teal-dark); }
.tier-mid { color: var(--ocean); }
.tier-luxury { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tier-unknown {
  color: var(--ink-soft);
  border-style: dashed;
  opacity: 0.75;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--teal);
  background: var(--teal);
  color: var(--paper);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--teal-dark);
}
.btn--ghost:hover { background: var(--teal); color: var(--paper); }

.section-ink .btn--ghost { color: var(--paper); border-color: var(--paper); }
.section-ink .btn--ghost:hover { background: var(--paper); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

/* ---------- Header / nav ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 2px dashed var(--ink-faint);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.1rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.brand svg { width: 1.7rem; height: 1.7rem; flex: none; }
.brand img { width: 2.1rem; height: 2.1rem; flex: none; border-radius: 50%; }
.brand:hover { color: var(--teal-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 7px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; width: 20px; height: 16px; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-dark); }
.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px dashed var(--ink-faint);
    padding: 0.6rem 1.25rem 1.2rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.2rem; }
  .site-nav a { display: block; padding: 0.65rem 0.2rem; font-size: 1.05rem; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6rem;
}
.hero .container { position: relative; z-index: 2; max-width: 820px; }
.hero h1 { color: var(--paper); margin-bottom: 0.4em; }
.hero .lead { color: var(--paper-soft); font-size: 1.3rem; }

.hero-topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.hero--inner { padding: 3.6rem 0 4rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.card {
  background: var(--paper);
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
}
.section-sand .card { background: var(--paper); }
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }

.card--accent { border-top: 5px solid var(--teal); }

.card--zone {
  border: 2px dashed var(--ink-faint);
  transition: border-color 0.15s;
}
.card--zone:hover { border-color: var(--teal); }
.card--zone .stamp { margin-bottom: 1rem; }
.card--muted { opacity: 0.72; }

.card-link {
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}
.card-link::after { content: " \2192"; }

.card-icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--ocean);
  margin-bottom: 0.9rem;
}

/* ---------- Pull-quote band ---------- */

.mantra-band {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 4.5rem 0;
}
.mantra-band blockquote {
  margin: 0 auto;
  max-width: 850px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.3;
}
.mantra-band cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #A8C4D4;
}

/* Inline pull-quote (light sections) */
.pull-quote {
  border-left: 4px solid var(--teal);
  margin: 2rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ink);
}

/* ---------- Newsletter ---------- */

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}
.newsletter-form input[type="email"] {
  flex: 1 1 260px;
  font: inherit;
  padding: 0.8em 1.1em;
  border: 2px solid var(--ink-faint);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
}
.newsletter-form input[type="email"]:focus { border-color: var(--teal); outline: none; }
.newsletter-note {
  display: none;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--ocean);
}
.newsletter-note.is-visible { display: block; }
.section-ink .newsletter-note { color: #A8C4D4; }

/* ---------- Lead form (real estate) ---------- */

.lead-form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.6rem;
}
.lead-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  font: inherit;
  padding: 0.8em 1.1em;
  border: 2px solid var(--ink-faint);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus { border-color: var(--teal); outline: none; }
.lead-form textarea { resize: vertical; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper-soft);
  padding: 3.5rem 0 2.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: #6FD0C6; text-decoration: underline; }

.footer-grid {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2.5rem;
}
.footer-tagline {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--paper);
  margin-bottom: 0.6rem;
}
.site-footer h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A8C4D4;
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }

.footer-bottom {
  border-top: 1px dashed rgba(247, 250, 251, 0.25);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Zone page ---------- */

.status-banner {
  background: var(--sand);
  border: 2px dashed var(--teal);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.1rem;
  margin: 2rem 0;
}
.status-banner p { margin: 0; flex: 1 1 340px; }

.zone-nav {
  position: sticky;
  top: 4.1rem;
  z-index: 40;
  background: var(--paper);
  border-bottom: 2px dashed var(--ink-faint);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.zone-nav ul {
  list-style: none;
  display: flex;
  gap: 0.4rem;
  margin: 0;
  padding: 0.55rem 1.25rem;
  max-width: var(--maxw);
  margin-inline: auto;
  white-space: nowrap;
}
.zone-nav a {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35em 0.75em;
  border-radius: 999px;
}
.zone-nav a:hover { background: var(--sand); color: var(--ink); }

.zone-section { padding: 3.2rem 0; scroll-margin-top: 7.5rem; }
.zone-section + .zone-section { border-top: 2px dashed var(--ink-faint); }

.hub-intro { max-width: 760px; }

/* Vendor lists */
.vendor-cat { margin-top: 2.2rem; }
.vendor-cat > h4 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ocean);
  border-bottom: 2px dashed var(--ink-faint);
  padding-bottom: 0.5rem;
  margin-bottom: 1.1rem;
}
.vendor-list { list-style: none; margin: 0; padding: 0; }
.vendor-list li {
  padding: 0.75rem 0;
  border-bottom: 1px dotted var(--ink-faint);
}
.vendor-list li:last-child { border-bottom: none; }
.vendor-name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; }
.vendor-town {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-left: 0.5rem;
  white-space: nowrap;
}
.vendor-why { display: block; color: var(--ink-soft); font-size: 0.97rem; margin-top: 0.15rem; }
.vendor-buzz { display: block; color: var(--ocean); font-size: 0.85rem; font-style: italic; margin-top: 0.3rem; }
.vendor-link { font-size: 0.9rem; font-weight: 700; white-space: nowrap; }

.field-note {
  background: var(--sand);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  font-size: 0.97rem;
  margin: 1.4rem 0;
}
.field-note p:last-child { margin-bottom: 0; }

/* Disclosure */
.disclosure {
  background: var(--paper);
  border: 2px solid var(--ocean);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.97rem;
}
.disclosure p:last-child { margin-bottom: 0; }

/* Local Secrets */
.secrets-list {
  list-style: none;
  counter-reset: secret;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.secrets-list li {
  counter-increment: secret;
  background: var(--paper);
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem 1.2rem 4.4rem;
  position: relative;
}
.secrets-list li::before {
  content: counter(secret, decimal-leading-zero);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal);
  transform: rotate(-3deg);
}
.secrets-list .secret-name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; display: block; }
.secrets-list .secret-when {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ocean);
}
.secrets-list p { margin: 0.25rem 0 0; color: var(--ink-soft); font-size: 0.97rem; }

/* FAQ */
.faq details {
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
  background: var(--paper);
}
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 1rem 1.3rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--teal);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 1.3rem 1.1rem; color: var(--ink-soft); }

/* ---------- Prose pages (Code, About) ---------- */

.prose { max-width: 720px; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }

.signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  margin-top: 2.5rem;
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 1.1rem 0 0;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "\2192"; margin-right: 0.4rem; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- 404 ---------- */

.page-404 { text-align: center; padding: 6rem 0; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.center { text-align: center; }

@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .hero { padding: 4rem 0 4.5rem; }
  .secrets-list li { padding-left: 3.6rem; }
  .secrets-list li::before { left: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
