:root {
  --color-chalk: #f7f5f1;
  --color-white: #fffcf8;
  --color-teal: #4a9b8c;
  --color-teal-deep: #3a7d71;
  --color-coral: #c47a6a;
  --color-beige: #e8dcc8;
  --color-dune: #d4c4a8;
  --color-navy: #1b2a4a;
  --color-navy-soft: #2a3d5f;
  --color-ink: #142033;
  --color-muted: #5c6578;
  --color-error: #9b3d3d;
  --color-success: #2f6b5a;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Segoe UI", sans-serif;
  --shadow-paper: 0 8px 28px rgba(27, 42, 74, 0.08);
  --radius-card: 14px;
  --radius-pill: 999px;
  --header-h: 4.25rem;
  --space: clamp(1rem, 2vw, 1.75rem);
  --measure: 70rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(74, 155, 140, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(196, 122, 106, 0.1), transparent 50%),
    linear-gradient(180deg, var(--color-chalk) 0%, var(--color-beige) 48%, var(--color-chalk) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--color-teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-navy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main {
  padding-top: var(--header-h);
}

.wrap {
  width: min(100% - 2 * var(--space), var(--measure));
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2 * var(--space), 44rem);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  margin-bottom: calc(var(--header-h) * -1);
  background: rgba(247, 245, 241, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.site-header__inner {
  width: min(100% - 2 * var(--space), var(--measure));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.site-header__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-navy);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  list-style: none;
}

.site-nav a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-navy-soft);
  position: relative;
}

.site-nav a:not(.site-nav__cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 1px;
  background: var(--color-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav a:not(.site-nav__cta):hover::after {
  transform: scaleX(1);
}

.site-nav__cta {
  background: var(--color-navy);
  color: var(--color-white) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  transition: background 0.3s var(--ease);
}

.site-nav__cta:hover {
  background: var(--color-teal);
}

@media (max-width: 900px) {
  .site-header__toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(247, 245, 241, 0.97);
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    padding: 1rem var(--space) 1.25rem;
    display: none;
  }

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

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.25s var(--ease);
}

.btn--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--navy:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--teal {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--teal:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
  border: 1px solid rgba(27, 42, 74, 0.25);
}

.btn--ghost:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.text-link {
  font-weight: 600;
  color: var(--color-navy);
  text-decoration: none;
  background-image: linear-gradient(var(--color-teal), var(--color-teal));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1.5px;
  transition: background-size 0.35s var(--ease);
}

.text-link:hover {
  background-size: 100% 1.5px;
  color: var(--color-navy);
}

/* Hero variations */
.hero-editorial {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.hero-editorial__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: 1rem;
}

.hero-editorial__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: -0.02em;
  max-width: 12ch;
  margin-bottom: 1.25rem;
}

.hero-editorial__lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-editorial__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero-editorial__media {
  position: relative;
  min-height: 22rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(27, 42, 74, 0.12);
  box-shadow: var(--shadow-paper);
}

.hero-editorial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 22rem;
  transform: scale(1.04);
  will-change: transform;
}

.hero-editorial__media[data-parallax] img {
  transition: transform 0.1s linear;
}

.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 2rem;
}

.page-hero--band {
  background: linear-gradient(120deg, rgba(74, 155, 140, 0.14), rgba(232, 220, 200, 0.5));
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
  margin-bottom: 2.5rem;
}

.page-hero__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 18ch;
}

.page-hero__lede {
  color: var(--color-muted);
  max-width: 40rem;
  font-size: 1.1rem;
}

@media (max-width: 800px) {
  .hero-editorial {
    grid-template-columns: 1fr;
  }

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

/* Sections */
.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section--tint {
  background: rgba(255, 252, 248, 0.65);
  border-block: 1px solid rgba(27, 42, 74, 0.06);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-chalk);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.section__header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section__kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-coral);
  margin-bottom: 0.4rem;
}

.section__title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0;
}

.section__intro {
  color: var(--color-muted);
  max-width: 36rem;
}

.wide-band {
  position: relative;
  min-height: 16rem;
  overflow: hidden;
}

.wide-band img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.wide-band__caption {
  position: absolute;
  inset: auto var(--space) var(--space) auto;
  background: rgba(27, 42, 74, 0.82);
  color: var(--color-white);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  max-width: 22rem;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-white);
  border: 1px solid rgba(27, 42, 74, 0.14);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(27, 42, 74, 0.12);
}

.card--tint {
  background: rgba(74, 155, 140, 0.08);
}

.card--coral {
  background: rgba(196, 122, 106, 0.1);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.card__meta {
  font-size: 0.8rem;
  color: var(--color-coral);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

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

.card__text {
  color: var(--color-muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

/* Split / magazine modules */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split--reverse > :first-child {
  order: 2;
}

@media (max-width: 800px) {
  .split,
  .split--reverse > :first-child {
    grid-template-columns: 1fr;
    order: initial;
  }

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

.panel {
  background: var(--color-white);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  box-shadow: var(--shadow-paper);
}

.panel--beige {
  background: rgba(232, 220, 200, 0.55);
}

.list-check {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.list-check li {
  padding-left: 1.4rem;
  position: relative;
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--color-teal);
}

/* Quote / reviews */
.quote-stack {
  display: grid;
  gap: 1.25rem;
}

.quote {
  background: var(--color-white);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-left: 3px solid var(--color-teal);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-paper);
}

.quote__text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.quote__meta {
  font-size: 0.9rem;
  color: var(--color-muted);
}

.quote__name {
  font-weight: 700;
  color: var(--color-ink);
}

/* Story blocks */
.story {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: rgba(255, 252, 248, 0.8);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-card);
  margin-bottom: 1.25rem;
}

.story h3 {
  margin-bottom: 0.25rem;
}

/* Pricing */
.fee-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.12);
}

.fee-row:last-child {
  border-bottom: 0;
}

.fee-row__price {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-navy);
  white-space: nowrap;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
}

.form__row {
  display: grid;
  gap: 0.35rem;
}

.form__row--2 {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form__row--2 {
    grid-template-columns: 1fr;
  }
}

.form label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(27, 42, 74, 0.2);
  border-radius: 10px;
  font: inherit;
  background: var(--color-white);
  color: var(--color-ink);
}

.form textarea {
  min-height: 9rem;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
}

.form__error {
  color: var(--color-error);
  font-size: 0.85rem;
  margin: 0;
}

.form-status {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
}

.form-status--success {
  background: rgba(47, 107, 90, 0.12);
  color: var(--color-success);
}

.form-status--error {
  background: rgba(155, 61, 61, 0.1);
  color: var(--color-error);
}

.contact-aside {
  background: var(--color-navy);
  color: var(--color-chalk);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.contact-aside h2 {
  color: var(--color-white);
}

.contact-aside a {
  color: var(--color-beige);
}

.contact-aside address {
  font-style: normal;
  margin-bottom: 1rem;
}

/* Legal */
.legal {
  padding-bottom: 4rem;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  border: 1px solid rgba(27, 42, 74, 0.15);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: rgba(74, 155, 140, 0.12);
  color: var(--color-navy);
}

/* Process steps */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid rgba(27, 42, 74, 0.12);
  border-radius: var(--radius-card);
}

.steps__item::before {
  content: counter(step);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-white);
  background: var(--color-teal);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* Footer */
.site-footer {
  background: var(--color-navy);
  color: rgba(247, 245, 241, 0.86);
  margin-top: 3rem;
  padding: 3.5rem 0 0;
}

.site-footer__inner {
  width: min(100% - 2 * var(--space), var(--measure));
  margin-inline: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__wordmark {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.site-footer__tagline {
  color: rgba(247, 245, 241, 0.72);
  font-size: 0.95rem;
}

.site-footer__address {
  font-style: normal;
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.site-footer a {
  color: var(--color-beige);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer__heading {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.site-footer__links {
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer__newsletter-text {
  font-size: 0.95rem;
  color: rgba(247, 245, 241, 0.72);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form__input {
  flex: 1 1 10rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(247, 245, 241, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
  font: inherit;
}

.newsletter-form__input::placeholder {
  color: rgba(247, 245, 241, 0.5);
}

.site-footer__strip {
  border-top: 1px solid rgba(247, 245, 241, 0.12);
  padding: 1.1rem 0 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
}

.site-footer__social {
  list-style: none;
  display: flex;
  gap: 1rem;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: var(--space);
  right: var(--space);
  bottom: var(--space);
  z-index: 200;
  max-width: 42rem;
  margin-inline: auto;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  background: var(--color-white);
  border: 1px solid rgba(27, 42, 74, 0.16);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(20, 32, 51, 0.18);
  padding: 1.25rem 1.35rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner__title {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cookie-banner__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

/* Reveal motion */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] {
  transition-delay: 0.1s;
}

[data-reveal-delay="2"] {
  transition-delay: 0.2s;
}

[data-reveal-delay="3"] {
  transition-delay: 0.3s;
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem var(--space);
}

.error-page__code {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--color-teal);
  margin: 0;
}

/* Prose for posts */
.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1.15rem;
}

.post-hero-img {
  border-radius: var(--radius-card);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  border: 1px solid rgba(27, 42, 74, 0.1);
}

.post-hero-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.detail-meta strong {
  color: var(--color-navy);
  font-weight: 600;
}
