@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --bg: #efe4d4;
  --surface: #f8efe3;
  --surface-strong: #f5e7d5;
  --ink: #172636;
  --ink-soft: #4d6172;
  --navy: #17324a;
  --navy-deep: #0b1827;
  --sand: #d8b996;
  --coral: #c56b4f;
  --gold: #e4bf78;
  --line: rgba(23, 38, 54, 0.14);
  --white: #fffaf3;
  --max: 1200px;
  --gutter: clamp(1.1rem, 3vw, 2rem);
  --radius: 1.5rem;
  --shadow: 0 34px 80px rgba(11, 24, 39, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(197, 107, 79, 0.18), transparent 26rem),
    radial-gradient(circle at 82% 18%, rgba(228, 191, 120, 0.18), transparent 18rem),
    linear-gradient(180deg, #f7efe2 0%, #efe2d0 56%, #ead9c4 100%);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  line-height: 1.7;
}

.site-header,
.section,
.site-footer {
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
  background: rgba(247, 239, 226, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(248, 239, 226, 0.92);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-mark,
.footer-title {
  font-family: "Newsreader", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-text {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.96rem;
}

.site-nav a {
  color: var(--ink-soft);
  transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

.nav-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(24rem, 35rem);
  justify-content: center;
  column-gap: clamp(1rem, 2vw, 2rem);
  min-height: calc(100svh - 82px);
  padding-inline: clamp(1rem, 3vw, 2.5rem);
  overflow: clip;
  background:
    linear-gradient(115deg, rgba(11, 24, 39, 0.99) 0%, rgba(19, 50, 74, 0.98) 40%, rgba(24, 51, 68, 0.92) 66%, rgba(32, 56, 68, 0.78) 100%);
}

.hero-compact {
  grid-template-columns: 1fr;
  min-height: unset;
}

.hero-compact::before {
  background:
    linear-gradient(180deg, rgba(9, 26, 45, 0.95) 0%, rgba(9, 26, 45, 0.84) 52%, rgba(9, 26, 45, 0.76) 100%),
    linear-gradient(180deg, rgba(228, 163, 160, 0.12), transparent 45%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 24, 39, 0.16) 0%, rgba(11, 24, 39, 0) 34%, rgba(228, 191, 120, 0.18) 100%),
    radial-gradient(circle at 18% 24%, rgba(228, 191, 120, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(197, 107, 79, 0.12), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  max-width: 36rem;
  padding: clamp(2.5rem, 7vw, 5.8rem) clamp(1rem, 2vw, 1.75rem)
    clamp(3rem, 7vw, 5.2rem);
  color: var(--white);
}

.hero-compact .hero-copy {
  max-width: 48rem;
  padding-top: clamp(6rem, 10vw, 8rem);
  padding-bottom: 2rem;
}

.eyebrow,
.section-label,
.post-meta {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.eyebrow,
.section-label {
  color: rgba(255, 240, 211, 0.82);
}

.hero h1,
.section h2,
.priority h3,
.proof-grid h3,
.blog-preview-grid h3 {
  margin: 0;
}

.hero h1,
.section h2 {
  font-family: "Newsreader", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(3rem, 5.8vw, 5.4rem);
  line-height: 0.92;
  text-wrap: balance;
}

.hero-lede {
  max-width: 31rem;
  color: rgba(255, 250, 243, 0.82);
  font-size: 1.08rem;
}

.hero-actions,
.contact-block,
.site-footer {
  display: flex;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 18px 38px rgba(197, 107, 79, 0.28);
}

.button-secondary {
  border-color: rgba(253, 251, 248, 0.32);
  color: var(--white);
  background: rgba(253, 251, 248, 0.1);
}

.hero-points {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 247, 236, 0.78);
  max-width: 34rem;
}

.hero-points li {
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 250, 243, 0.16);
}

.hero-visual {
  display: grid;
  align-items: center;
  justify-items: start;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.hero-photo-wrap {
  justify-self: start;
  width: min(100%, 35rem);
  aspect-ratio: 4 / 5.2;
  border-radius: 2.2rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 280ms ease;
  will-change: transform;
  border: 1px solid rgba(255, 250, 243, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.08), rgba(255, 250, 243, 0.02)),
    rgba(255, 250, 243, 0.06);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.hero-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.4rem 0;
  color: rgba(255, 245, 228, 0.82);
  font-size: 0.86rem;
}

.section {
  width: min(100%, calc(var(--max) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding-top: clamp(4.5rem, 10vw, 7rem);
}

.section-intro {
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-intro .section-label {
  color: var(--ink-soft);
}

.section h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.blog-title {
  margin: 0;
  font-family: "Newsreader", serif;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-story {
  display: grid;
  gap: 1.8rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.section-priorities {
  padding-bottom: 1rem;
}

.priority-list {
  display: grid;
  gap: 0;
}

.priority {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.4rem;
  align-items: start;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.priority:last-child {
  border-bottom: 1px solid var(--line);
}

.priority-number {
  font-family: "Newsreader", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: rgba(17, 40, 60, 0.45);
}

.priority h3,
.proof-grid h3,
.blog-preview-grid h3 {
  font-size: 1.35rem;
  margin-bottom: 0.45rem;
}

.section-about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 30%;
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.about-copy .section-label {
  color: var(--ink-soft);
}

.section-proof {
  position: relative;
  padding-bottom: 1rem;
}

.proof-grid,
.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.proof-grid > div,
.blog-preview-grid article {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.section-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.cta-copy {
  display: grid;
  gap: 1rem;
}

.cta-copy .section-label {
  color: var(--ink-soft);
}

.signup-panel {
  padding: clamp(1.2rem, 4vw, 2rem);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.92), rgba(248, 239, 226, 0.72)),
    rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow);
}

.signup-form,
.about-copy,
.cta-copy {
  display: grid;
}

.signup-form {
  gap: 1rem;
}

.signup-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.tag-fieldset {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  border: 0;
}

.tag-fieldset legend {
  margin-bottom: 0.2rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.commitment-grid {
  display: grid;
  gap: 0.75rem;
}

.commitment-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(17, 40, 60, 0.12);
  border-radius: 1rem;
  background: rgba(255, 250, 243, 0.82);
  font-weight: 600;
}

.commitment-option input {
  width: auto;
  margin: 0;
}

.commitment-option span {
  line-height: 1.4;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.check-option input {
  width: auto;
}

.signup-form input,
.signup-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(17, 40, 60, 0.12);
  border-radius: 1rem;
  background: rgba(255, 250, 243, 0.85);
  color: var(--ink);
  font: inherit;
}

.signup-form input:focus,
.signup-form textarea:focus {
  outline: 2px solid rgba(17, 40, 60, 0.18);
  outline-offset: 2px;
}

.form-status {
  min-height: 1.4rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.form-status.is-error {
  color: #8b2f2c;
}

.form-status.is-success {
  color: #1d5b39;
}

.contact-block {
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.contact-block p {
  color: var(--ink-soft);
}

.contact-block a {
  font-weight: 600;
}

.section-blog-preview {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.post-body {
  width: min(100%, 48rem);
  display: grid;
  gap: 1.2rem;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.post-meta {
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.site-footer {
  width: min(100%, calc(var(--max) + (var(--gutter) * 2)));
  margin: 0 auto;
  padding-top: 1.2rem;
  padding-bottom: 2rem;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  color: var(--ink-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(253, 251, 248, 0.7);
    font: inherit;
    color: var(--ink);
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav.always-open {
    display: flex;
  }

  .hero,
  .section-about,
  .section-cta,
  .proof-grid,
  .blog-preview-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: unset;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(11, 24, 39, 0.94) 0%, rgba(19, 50, 74, 0.8) 34%, rgba(11, 24, 39, 0.16) 70%, transparent 100%);
  }

  .hero-copy {
    order: 1;
    max-width: none;
    padding-top: 3.2rem;
    padding-bottom: 2rem;
  }

  .hero-visual {
    order: 2;
    align-items: start;
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-photo-wrap {
    justify-self: stretch;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3.9;
  }

  .hero-caption {
    color: rgba(255, 245, 228, 0.72);
    font-size: 0.8rem;
    padding-top: 0.8rem;
  }

  .proof-grid,
  .blog-preview-grid {
    gap: 2rem;
  }

  .site-footer,
  .hero-actions,
  .contact-block {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points {
    max-width: none;
  }
}

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

  .reveal,
  .hero-photo-wrap,
  .button,
  .site-header {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
