/* ============================================================
   THE SLOW COAST — design system
   Fonts: Instrument Serif (display) · Karla (body/UI)
   Palette: sand, paper, terracotta, sage, pine. Earthy & muted.
   ============================================================ */

:root {
  --sand: #ECE4D6;
  --paper: #F6F1E7;
  --ink: #2B2620;
  --muted: #7C7163;
  --line: #DCD2C0;
  --terra: #B96A3C;
  --terra-deep: #9C5430;
  --sage: #77856F;
  --pine: #3E4838;
  --pine-deep: #2F372B;
  --cream-on-pine: #EDE6D8;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Karla", system-ui, sans-serif;

  --wrap: 1180px;
  --pad: clamp(72px, 9vw, 130px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; max-width: 66ch; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 0.4em; letter-spacing: -0.005em; }
h1 { font-size: clamp(44px, 6.6vw, 76px); }
h2 { font-size: clamp(34px, 4.4vw, 50px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
em.i { font-style: italic; color: var(--terra); }
::selection { background: var(--terra); color: var(--paper); }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 34px; }
.section { padding: var(--pad) 0; }
.section--paper { background: var(--paper); }
.section--pine { background: var(--pine); color: var(--cream-on-pine); }
.section--pine .muted { color: rgba(237, 230, 216, .68); }
.label {
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--terra);
  margin: 0 0 22px;
}
.section--pine .label { color: #D9B48A; }
.lede { font-size: 19px; color: var(--muted); line-height: 1.7; max-width: 58ch; }
.section--pine .lede { color: rgba(237, 230, 216, .78); }
.hairline { height: 1px; border: 0; background: var(--line); margin: 0; }
.section--pine .hairline { background: rgba(237, 230, 216, .18); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--font-body); font-size: 14px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 15px 34px; border-radius: 2px; border: 1px solid var(--ink);
  cursor: pointer; transition: all .22s ease; line-height: 1.2; text-align: center;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--terra); border-color: var(--terra); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: transparent; color: var(--cream-on-pine); border-color: rgba(237,230,216,.55); }
.btn--light:hover { background: var(--cream-on-pine); color: var(--pine); }
.btn--terra { background: var(--terra); border-color: var(--terra); color: var(--paper); }
.btn--terra:hover { background: var(--terra-deep); border-color: var(--terra-deep); }

/* underline link */
.ulink { position: relative; font-weight: 600; }
.ulink::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.ulink:hover::after { transform: scaleX(1); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 100; background: var(--sand); transition: border-color .3s ease; border-bottom: 1px solid transparent; }
.site-head.solid { border-bottom-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 36px; height: 84px; }
.wordmark { font-family: var(--font-display); font-size: clamp(17px, 5.6vw, 30px); line-height: 1; letter-spacing: 0.005em; color: var(--ink); }
.wordmark em { font-style: italic; color: var(--terra); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { border-bottom: 1px solid var(--terra); padding-bottom: 3px; }
.head-cta { padding: 11px 22px; font-size: 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; color: var(--ink); cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,38,32,0) 0%, rgba(43,38,32,0) 42%, rgba(43,38,32,.14) 58%, rgba(43,38,32,.5) 80%, rgba(43,38,32,.7) 100%); }
.hero .inner { position: relative; z-index: 2; padding: 0 34px 90px; color: var(--paper); }
.hero .label { color: #E7C9A2; text-shadow: 0 1px 14px rgba(0,0,0,.4); }
.hero h1 { max-width: 18ch; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero .sub { font-size: 18px; max-width: 52ch; color: rgba(246,241,231,.92); margin-bottom: 34px; }
.hero .btn--ghost { color: var(--paper); border-color: rgba(246,241,231,.7); }
.hero .btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- strips / media ---------- */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.photo-strip figure { margin: 0; }
.photo-strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; filter: saturate(.9); }
.photo-strip figcaption { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.figure-wide { margin: 56px 0 0; }
.figure-wide img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.figure-wide figcaption { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }

/* ---------- split intro ---------- */
.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: end; }
.split .lede { margin: 0; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px; }
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.step .num { font-family: var(--font-display); font-style: italic; font-size: 44px; color: var(--terra); line-height: 1; display: block; margin-bottom: 14px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- areas grid ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
.area-card { background: var(--paper); border: 1px solid var(--line); padding: 34px 32px; transition: border-color .25s ease, transform .25s ease; }
.area-card:hover { border-color: var(--terra); transform: translateY(-3px); }
.area-card h3 { margin-bottom: 6px; }
.area-card .place { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--sage); margin-bottom: 16px; }
.area-card p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- waitlist form ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(30px, 4vw, 54px); }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-family: var(--font-body); font-size: 17px; padding: 10px 2px;
  border-radius: 0; transition: border-color .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B96A3C' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--terra); }
.field textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.form-grid .full { grid-column: 1 / -1; }
.form-note { margin-top: 18px; font-size: 15px; display: none; }
.form-note.ok { display: block; color: var(--sage); }
.form-note.err { display: block; color: #A4422A; }
.micro { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* ---------- quote / statement ---------- */
.statement { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); line-height: 1.16; max-width: 24ch; }
.statement em { font-style: italic; color: var(--terra); }
.section--pine .statement em { color: #D9B48A; }

/* ---------- CTA band ---------- */
.cta-band { padding: var(--pad) 0; }
.cta-band .inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.cta-band h2 { margin: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--pine-deep); color: var(--cream-on-pine); padding: 76px 0 44px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.foot-grid .wordmark { color: var(--cream-on-pine); }
.foot-tag { font-size: 13px; color: rgba(237,230,216,.6); max-width: 34ch; margin-top: 12px; }
.foot-grid h4 { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #D9B48A; margin: 0 0 18px; }
.foot-grid a { display: block; color: rgba(237,230,216,.75); font-size: 15px; margin-bottom: 10px; transition: color .2s; }
.foot-grid a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(237,230,216,.16); margin-top: 56px; padding-top: 26px; font-size: 12.5px; color: rgba(237,230,216,.55); }
.foot-legal p { max-width: 90ch; }

/* ---------- misc ---------- */
.page-hero { padding: clamp(64px, 8vw, 110px) 0 clamp(40px, 5vw, 70px); }
.page-hero h1 { max-width: 20ch; }
.prose { max-width: 68ch; }
.prose p { color: var(--muted); font-size: 17.5px; }
.prose h2 { margin-top: 52px; }
.prose h3 { margin-top: 34px; }
.guide-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 52px); margin-top: 56px; }
.guide-card h2 { margin-bottom: 14px; }
.guide-card p { color: var(--muted); }
.empty-state { text-align: center; padding: 80px 40px; border: 1px dashed var(--line); }
.tag-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tag { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); border: 1px solid var(--line); padding: 5px 13px; border-radius: 99px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .split, .cta-band .inner, .guide-card { grid-template-columns: 1fr; }
  .steps, .areas-grid { grid-template-columns: 1fr 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; }
  .photo-strip figure:last-child { display: none; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 38px; }
  .head-in { gap: 14px; }
  .nav-toggle { font-size: 24px; }
  .nav {
    position: fixed; top: 84px; left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 10px 34px 20px;
    display: none;
  }
  .nav.open { display: flex; animation: navIn .28s ease; }
  @keyframes navIn {
    from { transform: translateY(-14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .nav-toggle { display: block; margin-left: auto; }
  .head-cta { display: none; }
  .steps, .areas-grid, .photo-strip, .form-grid { grid-template-columns: 1fr; }
  .photo-strip figure:last-child { display: block; }
  .hero .inner { padding: 0 38px 64px; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- journal / articles ---------- */
.article-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(32px, 4vw, 52px); }
.article-hero h1 { max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 26px; color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.article-meta span { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .cat { color: var(--terra); }
.facts-box { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--terra); padding: 26px 30px; margin: 36px 0; }
.facts-box h3 { font-size: 22px; margin-bottom: 14px; }
.facts-box ul { margin: 0; padding-left: 0; list-style: none; }
.facts-box li { padding: 9px 0 9px 26px; position: relative; color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--line); }
.facts-box li:last-child { border-bottom: 0; }
.facts-box li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.prose ul, .prose ol { color: var(--muted); font-size: 17.5px; margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose blockquote { margin: 36px 0; padding: 6px 0 6px 30px; border-left: 2px solid var(--terra); font-family: var(--font-display); font-size: 24px; line-height: 1.35; color: var(--ink); }
.prose blockquote p { color: var(--ink); font-size: 24px; line-height: 1.35; }
.prose table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 15.5px; color: var(--muted); }
.prose th { text-align: left; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); font-weight: 600; border-bottom: 1px solid var(--line); padding: 10px 12px; }
.prose td { border-bottom: 1px solid var(--line); padding: 12px; vertical-align: top; }
.prose strong { color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.article-card { background: var(--paper); border: 1px solid var(--line); padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; transition: border-color .25s ease, transform .25s ease; }
.article-card:hover { border-color: var(--terra); transform: translateY(-3px); }
.article-card .cat { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.article-card h3 { font-size: 24px; margin: 0; }
.article-card p { font-size: 14.5px; color: var(--muted); margin: 0; }
.article-card .meta { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; margin-top: auto; }
.journal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 56px; }
@media (max-width: 960px) {
  .related-grid, .journal-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .related-grid, .journal-grid { grid-template-columns: 1fr; }
}
.article-end { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.article-end p { margin: 0; color: var(--muted); font-size: 15px; }
.toc { background: var(--paper); border: 1px solid var(--line); padding: 26px 30px; margin: 36px 0; }
.toc h3 { font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.toc ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 15.5px; }
.toc a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.toc a:hover { color: var(--terra); }
