@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #263331;
  --ink-soft: #53605b;
  --muted: #718078;
  --paper: #f7f5f0;
  --surface: #fffefa;
  --surface-deep: #eeece5;
  --forest: #2b3938;
  --forest-dark: #202c2b;
  --sage: #dce3d9;
  --clay: #e8c7a6;
  --clay-dark: #bb8c66;
  --line: #deded5;
  --white: #fff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --page-width: 1240px;
  --reading-width: 780px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 50px rgb(30 43 40 / 9%);
  --shadow-card: 0 8px 28px rgb(30 43 40 / 6%);
}

* {
  box-sizing: border-box;
}

/* Existing stylesheet retained. Text-only article headers support contact and policy pages. */
.article-hero.article-hero-text {
  min-height: 0;
  max-width: 900px;
  padding-block: 42px 36px;
  grid-template-columns: 1fr;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

::selection {
  background: var(--clay);
  color: var(--forest-dark);
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--forest-dark);
  color: var(--white);
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

/* Header and navigation */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgb(38 51 49 / 8%);
  background: rgb(247 245 240 / 94%);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  width: min(100% - 36px, var(--page-width));
  min-height: 72px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  font-size: 19px;
}

.menu-toggle:hover {
  border-color: var(--clay-dark);
}

.primary-nav {
  display: none;
}

.primary-nav a {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--clay-dark);
}

.primary-nav .nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
}

.primary-nav .nav-cta:hover {
  background: var(--forest);
  color: var(--white);
}

/* Shared typography */
.eyebrow {
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--forest-dark);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 11vw, 5.6rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 7vw, 3.45rem);
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 4vw, 1.8rem);
}

p {
  margin: 0 0 1.15em;
}

.hero-lede {
  max-width: 650px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.7;
}

.small-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Buttons and text links */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  padding: 12px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
}

.button-primary:hover {
  border-color: var(--forest-dark);
  background: var(--forest-dark);
}

.button-secondary {
  border-color: #c9cec5;
  background: transparent;
  color: var(--forest);
}

.button-secondary:hover {
  border-color: var(--forest);
  background: var(--sage);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  color: var(--clay-dark);
  font-size: 18px;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Homepage hero */
.hero.home-hero {
  display: grid;
  width: min(100% - 36px, var(--page-width));
  margin: 34px auto 0;
  align-items: center;
  gap: 34px;
}

.hero-copy {
  padding-block: 20px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-deep);
  box-shadow: var(--shadow-soft);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 290px;
  object-fit: cover;
}

.hero-visual::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(23 34 32 / 60%));
  content: "";
  pointer-events: none;
}

.hero-visual figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Guides */
.section {
  width: min(100% - 36px, var(--page-width));
  margin-inline: auto;
}

.guide-section {
  padding-block: 82px 76px;
  scroll-margin-top: 90px;
}

.section-heading {
  display: grid;
  margin-bottom: 30px;
  gap: 12px;
}

.section-heading h2 {
  max-width: 690px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 480px;
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.guide-card {
  overflow: hidden;
  border: 1px solid rgb(38 51 49 / 7%);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.52;
  background: var(--surface-deep);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.guide-card:hover .card-image img {
  transform: scale(1.035);
}

.card-content {
  padding: 22px 22px 24px;
}

.card-content .tag {
  margin-bottom: 10px;
  color: var(--clay-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.card-content h3 a {
  transition: color 160ms ease;
}

.card-content h3 a:hover {
  color: var(--clay-dark);
}

.card-content > p:not(.tag) {
  color: var(--ink-soft);
  font-size: 14px;
}

.card-content .text-link {
  margin-top: 6px;
}

/* Homepage feature and callout */
.feature-grid {
  display: grid;
  padding-block: 20px 78px;
  align-items: center;
  gap: 34px;
}

.feature-image {
  overflow: hidden;
  min-height: 300px;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-deep);
}

.feature-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.feature-copy h2 {
  max-width: 560px;
}

.feature-copy p:not(.eyebrow) {
  color: var(--ink-soft);
}

.feature-copy .text-link {
  margin-top: 4px;
}

.closing-callout {
  position: relative;
  overflow: hidden;
  padding: 58px 22px;
  background: var(--forest);
  color: rgb(255 255 255 / 80%);
  text-align: center;
}

.closing-callout::before,
.closing-callout::after {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgb(232 199 166 / 19%);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.closing-callout::before {
  top: -140px;
  left: -70px;
}

.closing-callout::after {
  right: -90px;
  bottom: -160px;
  width: 300px;
  height: 300px;
}

.closing-callout > * {
  position: relative;
  z-index: 1;
}

.closing-callout .eyebrow {
  color: var(--clay);
}

.closing-callout h2 {
  max-width: 720px;
  margin: 0 auto 14px;
  color: var(--white);
}

.closing-callout > p:not(.eyebrow) {
  max-width: 550px;
  margin: 0 auto 24px;
}

.closing-callout .button-primary {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--forest-dark);
}

.closing-callout .button-primary:hover {
  border-color: #f1d8bd;
  background: #f1d8bd;
}

/* Article pages */
.article-main {
  width: min(100% - 36px, var(--page-width));
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  padding: 24px 0 18px;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a {
  transition: color 160ms ease;
}

.breadcrumbs a:hover {
  color: var(--clay-dark);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
}

.article-hero {
  display: grid;
  padding: 26px 0 45px;
  align-items: center;
  gap: 28px;
}

.article-hero h1 {
  font-size: clamp(2.55rem, 9vw, 4.8rem);
}

.article-hero > img {
  width: 100%;
  aspect-ratio: 1.55;
  border-radius: var(--radius-lg);
  background: var(--surface-deep);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.article-body {
  width: min(100%, var(--reading-width));
  margin-inline: auto;
  padding-bottom: 76px;
  color: #46534e;
  font-size: 16px;
  line-height: 1.85;
}

.article-body .article-intro {
  margin-bottom: 38px;
  color: var(--forest);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  line-height: 1.55;
}

.article-body h2 {
  margin: 42px 0 15px;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
}

.article-body h3 {
  margin: 30px 0 12px;
  font-size: 1.5rem;
}

.article-body p {
  margin-bottom: 1.25em;
}

.article-body strong {
  color: var(--forest-dark);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
}

.article-body li {
  margin: 0 0 .55em;
  padding-left: .3em;
}

.article-body li::marker {
  color: var(--clay-dark);
}

.article-image {
  margin: 34px 0 40px;
}

.article-image img {
  width: 100%;
  aspect-ratio: 1.58;
  border-radius: var(--radius-md);
  background: var(--surface-deep);
  object-fit: cover;
}

.article-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.related-box {
  margin-top: 48px;
  padding: 28px 24px;
  border: 1px solid #d7ded5;
  border-radius: var(--radius-md);
  background: #e9eee7;
}

.related-box .eyebrow {
  margin-bottom: 10px;
}

.related-box h2 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

.related-box > p:not(.eyebrow) {
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.related-box .button-row {
  margin-top: 20px;
}

/* Footer */
.site-footer {
  background: var(--forest-dark);
  color: rgb(255 255 255 / 72%);
}

.footer-main {
  display: grid;
  width: min(100% - 36px, var(--page-width));
  margin-inline: auto;
  padding-block: 48px 40px;
  gap: 32px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.footer-intro p {
  max-width: 300px;
  margin-bottom: 0;
  color: rgb(255 255 255 / 63%);
  font-size: 13px;
}

.footer-company h2,
.footer-links h2 {
  margin: 0 0 14px;
  color: var(--clay);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-company dl {
  display: grid;
  margin: 0;
  grid-template-columns: 1fr;
  gap: 2px;
  font-size: 12px;
  line-height: 1.55;
}

.footer-company dt {
  margin-top: 7px;
  color: rgb(255 255 255 / 48%);
}

.footer-company dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: rgb(255 255 255 / 83%);
}

.footer-company a,
.footer-links a,
.footer-cookie {
  color: rgb(255 255 255 / 75%);
  transition: color 160ms ease;
}

.footer-company a:hover,
.footer-links a:hover,
.footer-cookie:hover {
  color: var(--clay);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.footer-links h2 {
  margin-bottom: 7px;
}

.footer-cookie {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: inherit;
}

.footer-bottom {
  display: flex;
  width: min(100% - 36px, var(--page-width));
  min-height: 60px;
  margin-inline: auto;
  padding-block: 15px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid rgb(255 255 255 / 13%);
  color: rgb(255 255 255 / 48%);
  font-size: 10px;
}

/* Cookie notice and preferences */
.cookie-banner {
  position: fixed;
  z-index: 100;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  max-width: 850px;
  margin-inline: auto;
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--radius-md);
  background: var(--forest-dark);
  box-shadow: 0 18px 60px rgb(0 0 0 / 28%);
  color: var(--white);
}

.cookie-copy strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}

.cookie-copy p {
  margin: 0;
  color: rgb(255 255 255 / 70%);
  font-size: 12px;
  line-height: 1.55;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.cookie-actions .button {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 11px;
}

.cookie-banner .button-primary,
.cookie-panel .button-primary {
  border-color: var(--clay);
  background: var(--clay);
  color: var(--forest-dark);
}

.cookie-banner .button-primary:hover,
.cookie-panel .button-primary:hover {
  border-color: #f1d8bd;
  background: #f1d8bd;
}

.cookie-banner .button-secondary,
.cookie-panel .button-secondary {
  border-color: rgb(255 255 255 / 35%);
  color: var(--white);
}

.cookie-banner .button-secondary:hover,
.cookie-panel .button-secondary:hover {
  background: rgb(255 255 255 / 10%);
}

.text-button {
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--clay);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.text-button:hover {
  color: var(--white);
}

.cookie-panel {
  position: fixed;
  z-index: 110;
  top: 50%;
  left: 50%;
  width: min(100% - 28px, 480px);
  padding: 24px;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 25px 90px rgb(0 0 0 / 30%);
  color: var(--ink-soft);
  font-size: 13px;
}

.cookie-panel::before {
  position: fixed;
  z-index: -1;
  inset: -100vh -100vw;
  background: rgb(22 31 29 / 58%);
  content: "";
}

.cookie-panel-head {
  display: flex;
  margin-bottom: 12px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-panel-head .eyebrow {
  margin-bottom: 5px;
}

.cookie-panel-head h2 {
  margin: 0;
  font-size: 1.8rem;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.icon-button:hover {
  background: var(--surface-deep);
}

.preference-row {
  display: flex;
  margin-block: 12px;
  padding: 13px 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.preference-row span {
  display: grid;
  gap: 2px;
}

.preference-row strong {
  font-size: 13px;
}

.preference-row small {
  color: var(--muted);
  font-size: 11px;
}

.preference-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--forest);
}

.cookie-panel .cookie-actions {
  margin-top: 18px;
}

/* Responsive layouts */
@media (min-width: 600px) {
  .brand {
    font-size: 15px;
  }

  .hero.home-hero {
    margin-top: 48px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 370px;
  }

  .section-heading {
    grid-template-columns: 1.3fr .7fr;
    align-items: end;
    gap: 35px;
  }

  .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .feature-grid {
    gap: 42px;
  }

  .article-hero {
    padding-block: 32px 55px;
  }

  .article-hero.article-hero-text {
    padding-block: 42px 36px;
  }

  .related-box {
    padding: 34px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 28px;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner {
    right: 22px;
    bottom: 22px;
    left: 22px;
    padding: 24px;
  }
}

@media (min-width: 900px) {
  .header-inner {
    width: min(100% - 56px, var(--page-width));
    min-height: 82px;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2vw, 27px);
  }

  .primary-nav a {
    font-size: 12px;
  }

  .hero.home-hero {
    width: min(100% - 56px, var(--page-width));
    min-height: 590px;
    margin-top: 30px;
    grid-template-columns: .92fr 1.08fr;
    gap: 54px;
  }

  .hero-copy {
    padding-block: 55px;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 500px;
  }

  .hero-visual {
    border-radius: 28px;
  }

  .section {
    width: min(100% - 56px, var(--page-width));
  }

  .guide-section {
    padding-block: 95px 92px;
  }

  .card-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .card-content {
    padding: 24px 24px 27px;
  }

  .feature-grid {
    grid-template-columns: .92fr 1.08fr;
    gap: 72px;
    padding-block: 16px 100px;
  }

  .feature-image,
  .feature-image img {
    min-height: 600px;
  }

  .closing-callout {
    padding-block: 78px;
  }

  .article-main {
    width: min(100% - 56px, var(--page-width));
  }

  .breadcrumbs {
    padding-top: 31px;
  }

  .article-hero {
    min-height: 460px;
    padding-block: 36px 65px;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .article-hero.article-hero-text {
    min-height: 0;
    padding-block: 42px 36px;
    grid-template-columns: 1fr;
  }

  .article-hero > img {
    aspect-ratio: 1.22;
  }

  .article-body {
    padding-bottom: 100px;
    font-size: 17px;
  }

  .footer-main {
    width: min(100% - 56px, var(--page-width));
    padding-block: 62px 52px;
    grid-template-columns: 1.15fr 1.25fr .8fr .7fr;
    gap: 32px;
  }

  .footer-bottom {
    width: min(100% - 56px, var(--page-width));
  }

  .cookie-banner {
    right: 28px;
    bottom: 28px;
    left: auto;
    padding: 22px 24px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-copy {
    max-width: 350px;
  }

  .cookie-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1200px) {
  .header-inner,
  .section,
  .article-main,
  .footer-main,
  .footer-bottom {
    width: min(100% - 80px, var(--page-width));
  }

  .hero.home-hero {
    width: min(100% - 80px, var(--page-width));
  }

  .article-hero {
    min-height: 520px;
    gap: 80px;
  }

  .article-hero.article-hero-text {
    min-height: 0;
  }

  .article-hero > img {
    aspect-ratio: 1.4;
  }

  .guide-section {
    padding-top: 110px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}