/* Noveling marketing landing — tokens aligned with app.css */

:root {
  --ink: #1c1914;
  --ink-soft: #4a453f;
  --paper: #f3efe6;
  --paper-2: #e8e1d4;
  --sea: #1f4f5b;
  --sea-deep: #163840;
  --night: #0b1c22;
  --clay: #a35a3a;
  --on-sea: #f7f3eb;
  --line: rgba(28, 25, 20, 0.12);
  --serif: "Source Serif 4", Georgia, serif;
  --display: "Fraunces", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 72px;
  --r-md: 14px;
  --r-pill: 999px;
  --h-md: 40px;
  --h-lg: 48px;
  --line-strong: rgba(28, 25, 20, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 1rem/1.55 var(--sans);
  background: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--sea);
  color: var(--on-sea);
  padding: var(--sp-3) var(--sp-4);
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); top: var(--sp-4); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--h-md);
  padding: 0 1rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 500 0.9rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn.lg {
  min-height: var(--h-lg);
  padding: 0 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.btn.primary {
  background: var(--sea);
  border-color: var(--sea);
  color: var(--on-sea);
}
.btn.primary:hover { background: var(--sea-deep); border-color: var(--sea-deep); }
.btn.secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn.secondary:hover { border-color: var(--sea); color: var(--sea-deep); }
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
  min-height: 36px;
  padding: 0 0.75rem;
  font-weight: 500;
}
.btn.ghost:hover { color: var(--sea-deep); text-decoration: underline; text-underline-offset: 3px; }

.text-link {
  color: inherit;
  font: 500 0.95rem/1.4 var(--sans);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
}
.text-link:hover { text-decoration-color: currentColor; }

/* Top — Sign in only; brand lives in hero */
.lp-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: var(--sp-5) var(--sp-6);
}
.lp-top-signin {
  color: var(--on-sea);
  font: 500 0.95rem/1 var(--sans);
  text-decoration: none;
  opacity: 0.85;
}
.lp-top-signin:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--on-sea);
  background: var(--night);
}
.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.harbour {
  width: 100%;
  height: 100%;
  display: block;
}
.harbour-tall { display: none; }
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 28, 34, 0.82) 0%, rgba(11, 28, 34, 0.42) 38%, rgba(11, 28, 34, 0.08) 68%, rgba(11, 28, 34, 0.2) 100%),
    linear-gradient(180deg, rgba(11, 28, 34, 0.2) 0%, transparent 28%, rgba(11, 28, 34, 0.45) 100%);
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  padding: clamp(5rem, 12vh, 7rem) clamp(1.25rem, 5vw, 3.5rem) clamp(3rem, 8vh, 5rem);
  animation: hero-rise 0.55s ease-out both;
}
.hero-brand {
  margin: 0 0 var(--sp-4);
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-headline {
  margin: 0 0 var(--sp-4);
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.hero-support {
  margin: 0 0 var(--sp-6);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--on-sea) 88%, transparent);
  max-width: 28rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
}
.hero-cta .btn.primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--sea-deep);
}
.hero-cta .btn.primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--night);
}
.hero-cta .text-link { color: var(--on-sea); }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mist-drift {
  0%, 100% { opacity: 0.04; transform: translateX(0); }
  50% { opacity: 0.1; transform: translateX(18px); }
}
.mist { animation: mist-drift 16s ease-in-out infinite; }
.mist-b { animation-duration: 18s; animation-delay: -4s; }
.mist-c { animation-duration: 14s; animation-delay: -8s; }

@media (prefers-reduced-motion: reduce) {
  .hero-copy { animation: none; }
  .mist { animation: none; }
  .spark-quote.is-fading { transition: none; }
}

/* Sections */
.section {
  padding: var(--sp-8) 0;
}
.section-inner {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.section-inner.narrow { width: min(560px, calc(100% - 2.5rem)); }
.section-inner.center { text-align: center; }
.section-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-lead {
  margin: 0 0 var(--sp-6);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.05rem;
}

.doorways { background: var(--paper); border-top: 1px solid var(--line); }
.door-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.door-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
}
.door-link:hover {
  color: var(--sea-deep);
}
.door-link span {
  color: var(--clay);
  font-family: var(--sans);
  font-size: 1rem;
}

.feels { background: var(--paper-2); }
.feel-list {
  list-style: none;
  margin: var(--sp-6) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}
.feel-name {
  margin: 0 0 var(--sp-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--sea-deep);
}
.feel-body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.examples { background: var(--paper); }
.example-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
}
.example-card { margin: 0; }
.example-door {
  margin: 0 0 var(--sp-2);
  font: 500 0.8rem/1 var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay);
}
.example-title {
  margin: 0 0 var(--sp-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.45rem, 2.6vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.example-title a {
  color: inherit;
  text-decoration: none;
}
.example-title a:hover { color: var(--sea-deep); }
.example-feel {
  margin: 0 0 var(--sp-4);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
}
.example-excerpt {
  margin: 0 0 var(--sp-3);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
}
.example-excerpt:last-of-type { margin-bottom: var(--sp-4); }
.example-more {
  font: 600 0.9rem/1 var(--sans);
  color: var(--sea);
  text-decoration: none;
}
.example-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.example-more span { color: var(--clay); }

.page-example { background: var(--paper); }
.example-main {
  width: min(640px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: var(--sp-7) 0 var(--sp-8);
}
.example-head { margin-bottom: var(--sp-6); }
.example-book {
  margin: 0 0 var(--sp-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.example-ch {
  margin: var(--sp-4) 0 0;
  font: 500 0.9rem/1 var(--sans);
  color: var(--ink-soft);
}
.example-prose {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.65;
}
.example-prose p { margin: 0 0 1em; }
.example-prose p:last-child { margin-bottom: 0; }
.example-note {
  margin: var(--sp-6) 0 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
}
.example-sibs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin: var(--sp-6) 0;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.example-sib {
  font: 500 0.95rem/1.3 var(--sans);
  color: var(--sea);
  text-decoration: none;
}
.example-sib:hover { text-decoration: underline; text-underline-offset: 3px; }
.example-sib.current { color: var(--sea-deep); font-weight: 600; pointer-events: none; }
.example-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4) var(--sp-5);
  margin: 0;
}

.sparks { background: var(--paper-2); }
.spark-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.spark-head .section-title { margin: 0; }
.spark-quote {
  margin: 0 0 var(--sp-5);
  padding: 0;
  border: 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink);
  min-height: 4.5em;
  transition: opacity 0.25s ease;
}
.spark-quote.is-fading { opacity: 0; }

.close {
  background: var(--sea-deep);
  color: var(--on-sea);
}
.close-line {
  margin: 0 0 var(--sp-5);
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.close-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4) var(--sp-5);
}
.close .text-link { color: var(--on-sea); }
.close .btn.primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--sea-deep);
}
.close .btn.primary:hover { background: #fff; border-color: #fff; }

.lp-footer {
  background: var(--night);
  color: color-mix(in srgb, var(--on-sea) 80%, transparent);
  padding: var(--sp-6) 0;
}
.footer-inner {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp-3) var(--sp-5);
}
.footer-brand {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  color: var(--on-sea);
}
.footer-tag {
  margin: 0;
  flex: 1 1 12rem;
  font-family: var(--serif);
  font-size: 0.95rem;
}
.lp-footer .text-link { color: var(--on-sea); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  width: 100%;
  margin-top: var(--sp-2);
}

@media (max-width: 720px) {
  .lp-top { padding: var(--sp-4); }
  .harbour-wide { display: none; }
  .harbour-tall { display: block; }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 100dvh;
  }
  .hero-scene {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
  }
  .hero-veil {
    background: linear-gradient(180deg, rgba(11, 28, 34, 0) 62%, rgba(11, 28, 34, 0.55) 100%);
  }
  .hero-copy {
    flex: 1;
    max-width: none;
    margin-top: -1.25rem;
    padding: 0.5rem var(--sp-4) 2.25rem;
    background: linear-gradient(180deg, rgba(11, 28, 34, 0) 0%, var(--night) 18%);
  }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .section { padding: var(--sp-7) 0; }
  .door-link { font-size: 1.1rem; }
}
