/* The Hearth landing — sparklifetoday.com/hearth */

@font-face {
  font-family: "Black Mango";
  src: url("/assets/fonts/black-mango-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vincentia";
  src: url("/assets/fonts/Vincentia.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Agrandir Tight";
  src: url("/assets/fonts/agrandir-tight.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #023550;
  --cream: #EEEEE9;
  --gold: #CC9752;
  --gold-soft: #E4CB8A;
  --hearth-red: #9b3636;
  --hearth-ember: #c45a3a;
  --line: rgba(253, 248, 243, 0.28);
  --header: "Black Mango", serif;
  --body: "Agrandir Tight", sans-serif;
  --script: "Vincentia", cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background-color: #1a0f0c;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--body);
  color: var(--cream);
  background-color: #1a0f0c;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  opacity: 0.35;
}

.bg-warmth {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 20% 0%, rgba(196, 90, 58, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(204, 151, 82, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(26, 15, 12, 0.72) 0%, rgba(2, 53, 80, 0.88) 100%);
}

/* Header — transparent over hero, actions only */
.hearth-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 3vw, 3rem);
  pointer-events: none;
}

/* The header itself ignores pointer events so the hero stays clickable, so
   every interactive child has to opt back in. */
.hearth-home {
  display: inline-flex;
  align-items: center;
  /* The mark is narrow, so pad the link out to a comfortable tap target and
     pull it back level with the header edge. */
  padding: 4px 12px;
  margin-left: -12px;
  pointer-events: auto;
  opacity: 0.92;
  transition: opacity 160ms ease;
}

.hearth-home:hover,
.hearth-home:focus-visible {
  opacity: 1;
}

/* The shared mark is a muted sage meant for light pages; over the dark hero
   video it has to read as white to stay visible. */
.hearth-home img {
  display: block;
  width: auto;
  height: 46px;
  filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}

.hearth-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  pointer-events: auto;
}

.btn-login,
.btn-create {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-login {
  border: 1px solid var(--line);
  color: var(--cream);
  background: rgba(2, 53, 80, 0.45);
}

.btn-login:hover,
.btn-login:focus-visible {
  border-color: var(--gold-soft);
  outline: none;
  transform: translateY(-1px);
}

.btn-create {
  border: none;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 6px 20px rgba(204, 151, 82, 0.35);
}

.btn-create:hover,
.btn-create:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(204, 151, 82, 0.45);
}

/* Main */
.hearth-main {
  position: relative;
  z-index: 1;
}

/* Hero */
.hearth-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hearth-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hearth-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(26, 15, 12, 0.55) 0%,
    rgba(2, 53, 80, 0.45) 45%,
    rgba(2, 53, 80, 0.82) 100%
  );
}

.hearth-hero-inner {
  position: relative;
  z-index: 2;
  padding: clamp(5.5rem, 12vw, 7rem) 1.25rem clamp(3rem, 6vw, 4rem);
  max-width: 44rem;
  margin: 0 auto;
}

.hearth-intro {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem) 1.25rem;
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  line-height: 1.65;
  color: rgba(253, 248, 243, 0.88);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 53, 80, 0.35);
}

.hearth-logo {
  width: min(420px, 88vw);
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
}

.hearth-kicker {
  font-family: var(--body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.hearth-hero h1 {
  font-family: var(--header);
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  line-height: 1.15;
  color: #fdf8f3;
  margin-bottom: 1rem;
}

.hearth-lead {
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
  color: rgba(253, 248, 243, 0.92);
  max-width: 34rem;
  margin: 0 auto;
}

/* Visual mosaic */
.hearth-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.65rem;
  padding: 0 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.mosaic-cell {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 140px;
  border: 1px solid var(--line);
}

.mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.mosaic-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 53, 80, 0.82) 100%);
}

.mosaic-label {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.75rem;
  z-index: 1;
  font-family: var(--header);
  font-size: 1.05rem;
  color: #fdf8f3;
}

.mosaic-cell.span-7 { grid-column: span 7; }
.mosaic-cell.span-5 { grid-column: span 5; }
.mosaic-cell.span-4 { grid-column: span 4; }
.mosaic-cell.span-8 { grid-column: span 8; }

/* Journals */
.hearth-journals {
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.hearth-journals h2 {
  font-family: var(--header);
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  color: #fdf8f3;
  margin-bottom: 0.5rem;
}

.hearth-journals .sub {
  text-align: center;
  color: rgba(253, 248, 243, 0.82);
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

.journal-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(2, 53, 80, 0.35);
  backdrop-filter: blur(4px);
}

.journal-card strong {
  display: block;
  font-family: var(--header);
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.journal-card span {
  font-size: 0.88rem;
  color: rgba(253, 248, 243, 0.78);
  line-height: 1.45;
}

/* Pillars */
.hearth-pillars {
  padding: 0 1.25rem clamp(3rem, 6vw, 4.5rem);
  max-width: 1000px;
  margin: 0 auto;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.pillar {
  padding: 1.25rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(155, 54, 54, 0.12);
  text-align: center;
}

/* The script face has a very small x-height, so it needs a much larger size
   than a text font to read at the same visual weight. */
/* Scoped past `.pillar p` below, which is more specific than a bare class and
   was silently overriding this size. */
.pillar .pillar-icon {
  font-family: var(--script);
  font-size: clamp(2.3rem, 6vw, 2.75rem);
  line-height: 1.1;
  color: var(--gold-soft);
  margin-bottom: 0.4rem;
}

.pillar h3 {
  font-family: var(--header);
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  color: #fdf8f3;
  margin-bottom: 0.45rem;
}

.pillar p {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(253, 248, 243, 0.85);
}

/* Bottom CTA */
.hearth-cta {
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  background: rgba(2, 53, 80, 0.4);
}

.hearth-cta p {
  font-family: var(--script);
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  margin-bottom: 1.25rem;
  color: var(--cream);
}

.hearth-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.hearth-footer {
  text-align: center;
  padding: 1rem 1.25rem 2rem;
  font-size: 0.82rem;
  color: rgba(253, 248, 243, 0.55);
}

.hearth-footer a {
  color: var(--gold-soft);
}

.hearth-footer a:hover { color: var(--cream); }

@media (max-width: 720px) {
  .hearth-header {
    padding: 0.75rem 1.25rem;
  }

  .hearth-home img {
    height: 34px;
  }

  .btn-login,
  .btn-create {
    padding: 0.62rem 0.9rem;
    font-size: 0.82rem;
  }

  .mosaic-cell.span-7,
  .mosaic-cell.span-5,
  .mosaic-cell.span-4,
  .mosaic-cell.span-8 {
    grid-column: span 12;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) {
  .hearth-header {
    padding: 1.25rem 3rem;
  }

  .btn-login,
  .btn-create {
    padding: 1rem 1.75rem;
    font-size: 1.05rem;
  }
}
