/* =========================================================================
   Seahearth — landing page styles
   Dark navy base · warm fire accent · cream text · handcrafted, weathered
   Mobile-first. No CDN. No framework.
   ========================================================================= */

/* ---- Self-hosted fonts -------------------------------------------------- */
@font-face {
  font-family: 'Henny Penny';
  src: url('/assets/fonts/HennyPenny-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-latin.woff2') format('woff2');
  font-weight: 100 900;               /* variable */
  font-style: normal;
  font-display: swap;
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  /* ink / navy */
  --ink-900: #060a14;
  --ink-800: #0a0f1e;   /* base background */
  --ink-700: #0d1426;
  --ink-600: #131a30;   /* panels */
  --ink-500: #1b2440;   /* raised / borders */

  /* fire */
  --fire:     #ff7a33;
  --fire-600: #f2622e;
  --ember:    #ffb066;

  /* text */
  --cream:     #f4ecd8;
  --cream-dim: #d8d1c1;
  --muted:     #b9c0cf;

  /* water */
  --water:      #2b6f8a;
  --water-lite: #7fc0d8;

  --focus: #ffc27a;

  --maxw: 1140px;
  --pad: clamp(1.1rem, 4.5vw, 2rem);
  --radius: 14px;
  --radius-sm: 9px;
  --border: 1px solid rgba(127, 192, 216, 0.14);
  --shadow: 0 20px 55px -22px rgba(0, 0, 0, 0.78);

  --font-display: 'Henny Penny', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink-800);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--ember); text-underline-offset: 0.18em; }
a:hover { color: var(--fire); }

/* ---- Utilities ---------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: 0.6rem; left: 0.6rem; z-index: 200;
  background: var(--fire); color: var(--ink-900);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); color: var(--ink-900); }

/* ---- Wordmark ----------------------------------------------------------- */
.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--cream);
}
.wordmark--sm { font-size: 1.35rem; text-decoration: none; }
a.wordmark--sm:hover { color: var(--ember); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--fire);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.btn--primary {
  background: var(--fire);
  color: #1a0d05;                     /* dark ink on orange — AA contrast */
  box-shadow: 0 10px 26px -12px rgba(255, 122, 51, 0.75);
}
.btn--primary:hover { background: var(--ember); color: #1a0d05; transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(244, 236, 216, 0.02);
  color: var(--cream);
  border-color: rgba(244, 236, 216, 0.4);
}
.btn--ghost:hover { border-color: var(--ember); color: var(--ember); transform: translateY(-2px); }
.btn--sm { padding: 0.6rem 1rem; font-size: 0.9rem; }

/* ---- Sticky header ------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(8, 12, 22, 0.86);
  border-bottom: 1px solid rgba(127, 192, 216, 0.1);
  backdrop-filter: blur(10px);
  transform: translateY(-110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.site-header.is-visible { transform: translateY(0); opacity: 1; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.7rem;
}
.site-header__cta { display: flex; align-items: center; gap: 0.6rem; }
.site-header__cta .btn--ghost { border-color: rgba(244, 236, 216, 0.28); }
@media (max-width: 560px) {
  .site-header__cta [data-role="updates"] { display: none; }
}

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-block: clamp(5rem, 12vh, 9rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__art {
  position: absolute; inset: 0; z-index: -3;
  /* Burning sky over cold ocean. Swap for real key art:
     replace this background with `url('/assets/img/hero.webp') center/cover`. */
  background:
    linear-gradient(180deg,
      #090d1a 0%,
      #10182e 40%,
      #2a1a2e 57%,
      #6f3320 69%,
      #ff8a3c 75.5%,
      #b0491f 79%,
      #0a0f1e 86%,
      #06090f 100%);
}
.hero__sun {
  position: absolute; left: 50%; top: 75.5%;
  width: min(46vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%);
  z-index: -2;
  background: radial-gradient(circle,
    rgba(255, 226, 178, 0.95) 0%,
    rgba(255, 138, 60, 0.85) 30%,
    rgba(255, 122, 51, 0.25) 55%,
    rgba(255, 122, 51, 0) 72%);
  filter: blur(2px);
}
.hero__silhouette { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(6, 9, 15, 0.72) 0%,
      rgba(6, 9, 15, 0.28) 22%,
      rgba(6, 9, 15, 0) 44%,
      rgba(6, 9, 15, 0.18) 70%,
      rgba(6, 9, 15, 0.68) 100%);
}
.hero__content { position: relative; text-align: center; max-width: 40rem; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.32em; font-size: 0.78rem;
  font-weight: 600; color: var(--ember); margin-bottom: clamp(1.9rem, 4vw, 2.9rem);
}
.hero__title {
  font-size: clamp(2.5rem, 11vw, 8.5rem);
  line-height: 0.95;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 46px rgba(255, 150, 80, 0.28);
}
.hero__tagline {
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  color: var(--cream); margin-top: 1.1rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 0.85rem; justify-content: center;
  margin-top: 2rem;
}
.hero__byline {
  margin-top: 1.8rem; color: var(--cream-dim); font-size: 0.95rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ---- Sections ----------------------------------------------------------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); scroll-margin-top: 4.5rem; }
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.12;
  color: var(--cream);
}
.section__title.center { margin-inline: auto; max-width: 20ch; }
.section__sub { color: var(--muted); margin-top: 0.9rem; max-width: 46ch; }
.section__sub.center { margin-inline: auto; }

/* ---- Media frame (shared) ---------------------------------------------- */
.media-frame {
  border-radius: var(--radius); overflow: hidden;
  background: var(--ink-600); border: var(--border); box-shadow: var(--shadow);
}
.media-frame img { width: 100%; height: auto; }
.media-frame--portrait { aspect-ratio: 3 / 4; }
.media-frame--portrait img { width: 100%; height: 100%; object-fit: cover; }

/* ---- What is Seahearth -------------------------------------------------- */
.what { background: linear-gradient(180deg, var(--ink-800), var(--ink-900)); }
.what__grid { display: grid; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: center; }
.lede { font-size: clamp(1.05rem, 1rem + 0.5vw, 1.28rem); color: var(--cream-dim); margin-top: 1.2rem; }
.lede__strong { color: var(--cream); font-weight: 600; display: block; margin-top: 0.9rem; }
@media (min-width: 840px) {
  .what__grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Features ----------------------------------------------------------- */
.features { background: var(--ink-900); }
.features .section__title { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.feature { display: grid; gap: 1.4rem; align-items: center; margin-block: clamp(2.5rem, 6vw, 4.5rem); }
.feature:first-of-type { margin-top: 0; }
.feature:last-of-type { margin-bottom: 0; }
.feature__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 3.6vw, 2.15rem); line-height: 1.15; color: var(--ember);
  margin-bottom: 0.6rem;
}
.feature__copy p { color: var(--cream-dim); font-size: 1.08rem; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .feature--reverse .feature__media { order: 2; }
  .feature--reverse .feature__copy { order: 1; }
}

/* ---- Media strip (gallery) --------------------------------------------- */
.media { background: linear-gradient(180deg, var(--ink-900), var(--ink-800)); }
.media .section__sub { margin-bottom: clamp(1.6rem, 4vw, 2.4rem); }
.gallery { list-style: none; padding: 0; column-count: 2; column-gap: 1rem; }
.gallery__item { break-inside: avoid; margin: 0 0 1rem; }
.gallery__btn {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: none;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform 0.16s ease, outline-color 0.16s ease;
}
.gallery__btn img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: var(--border); transition: transform 0.35s ease, filter 0.25s ease;
}
.gallery__btn:hover img { transform: scale(1.035); filter: brightness(1.08); }
@media (min-width: 720px) { .gallery { column-count: 3; } }

/* ---- Meet the crew ------------------------------------------------------ */
.crew { background: var(--ink-800); }
.crew__grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 1.6rem); margin-top: clamp(2rem, 5vw, 3rem); }
.crew__name { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin-top: 0.9rem; color: var(--cream); }
.crew__line { color: var(--muted); font-size: 0.98rem; margin-top: 0.3rem; }
@media (min-width: 820px) { .crew__grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Signup ------------------------------------------------------------- */
.signup {
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(255, 122, 51, 0.12) 0%, rgba(255, 122, 51, 0) 55%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
  border-top: 1px solid rgba(255, 122, 51, 0.14);
}
.signup__inner { max-width: 42rem; }
.signup__form { display: flex; flex-wrap: wrap; gap: 0.7rem; max-width: 32rem; margin: 1.6rem auto 0; }
.signup__input {
  flex: 1 1 15rem; min-width: 0;
  font-family: var(--font-body); font-size: 1rem; color: var(--cream);
  background: var(--ink-700); border: 1px solid rgba(127, 192, 216, 0.22);
  border-radius: 999px; padding: 0.95rem 1.3rem;
}
.signup__input::placeholder { color: #7b869c; }
.signup__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: transparent; }
.signup__submit { flex: 0 0 auto; }
.signup__status { min-height: 1.4rem; margin-top: 1rem; text-align: center; font-weight: 600; }
.signup__status.is-ok { color: var(--water-lite); }
.signup__status.is-err { color: #ff9a7a; }
.signup__fallback, .signup__fineprint { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 0.8rem; }
.signup__fineprint { font-size: 0.83rem; margin-top: 0.6rem; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer { background: var(--ink-900); border-top: 1px solid rgba(127, 192, 216, 0.1); padding-block: clamp(2.5rem, 6vw, 4rem); }
.site-footer__inner { display: grid; gap: 1.8rem; }
.site-footer__tag { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer__social a { color: var(--cream-dim); text-decoration: none; font-weight: 600; }
.site-footer__social a:hover { color: var(--ember); }
.site-footer__meta { color: var(--muted); font-size: 0.9rem; display: grid; gap: 0.35rem; }
.site-footer__meta a { color: var(--cream-dim); }
.site-footer__meta a:hover { color: var(--ember); }
.site-footer__privacy { opacity: 0.85; }
@media (min-width: 780px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; grid-template-areas: "brand social" "brand meta"; align-items: start; }
  .site-footer__brand { grid-area: brand; }
  .site-footer__social { grid-area: social; justify-content: flex-end; }
  .site-footer__meta { grid-area: meta; justify-items: end; text-align: right; }
}

/* ---- Legal / privacy page ---------------------------------------------- */
.legal-top { padding-block: 1.1rem; border-bottom: 1px solid rgba(127, 192, 216, 0.1); }
.legal-top__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.legal-top a { text-decoration: none; }
.legal-back { color: var(--cream-dim); font-weight: 600; font-size: 0.9rem; }
.legal { max-width: 46rem; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3rem); }
.legal .legal__updated { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.legal h2 { font-size: 1.2rem; color: var(--ember); margin-top: 2.2rem; }
.legal p { color: var(--cream-dim); margin-top: 0.7rem; }
.legal a { color: var(--ember); }

/* ---- Lightbox ----------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 12, 0.92); backdrop-filter: blur(6px); }
.lightbox__dialog { position: relative; display: flex; align-items: center; gap: 0.5rem; max-width: min(94vw, 1200px); }
.lightbox__img { max-width: 100%; max-height: 82vh; width: auto; height: auto; border-radius: var(--radius); border: var(--border); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); background: var(--ink-700); }
.lightbox__nav, .lightbox__close {
  background: rgba(10, 15, 30, 0.72); color: var(--cream); border: 1px solid rgba(244, 236, 216, 0.24);
  cursor: pointer; border-radius: 999px; line-height: 1; transition: background-color 0.15s ease, transform 0.15s ease;
}
.lightbox__nav { width: 3rem; height: 3rem; font-size: 1.9rem; flex: 0 0 auto; }
.lightbox__nav:hover, .lightbox__close:hover { background: var(--fire); color: var(--ink-900); }
.lightbox__close { position: absolute; top: -3.2rem; right: 0; width: 2.7rem; height: 2.7rem; font-size: 1.6rem; }
@media (max-width: 640px) {
  .lightbox__nav { width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
  .lightbox__close { top: -3rem; }
}
