@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --panel: #ece8dc;
  --card: #faf8f1;
  --ink: #17201a;
  --forest: #1c362b;
  --forest-deep: #142b22;
  --soft-ink: #505d53;
  --rule: #d0cec0;
  --citrus: #dded83;
  --citrus-hover: #e9f5aa;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-editorial: "Instrument Serif", Georgia, serif;
  --page-width: 86rem;
  --gutter: clamp(1.125rem, 3.6vw, 3.75rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

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

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

h1, h2, h3, p, figure {
  margin: 0;
}

summary {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: var(--citrus);
  color: var(--forest-deep);
}

.container {
  width: min(var(--page-width), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  transform: translateY(calc(-100% - 2rem));
  background: var(--citrus);
  color: var(--forest);
}

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

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
  min-height: 5rem;
}

.brand {
  display: inline-flex;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  align-items: center;
  gap: .7rem;
  line-height: 1.12;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: .55rem;
}

.brand-wordmark {
  display: grid;
  gap: .27rem;
}

.brand-wordmark strong {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -.06em;
}

.brand-wordmark small {
  color: var(--soft-ink);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.primary-nav,
.header-actions {
  display: flex;
  align-items: center;
}

.primary-nav {
  justify-content: center;
  gap: clamp(1rem, 2.5vw, 2.35rem);
}

.primary-nav a,
.footer-link {
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.3;
}

.primary-nav a:hover,
.footer-link:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.header-actions {
  justify-self: end;
  gap: .6rem;
}

.button,
.menu-trigger,
.menu > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.2rem;
  padding: .75rem 1.13rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  font-size: .94rem;
  font-weight: 750;
  line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.button-primary {
  background: var(--citrus);
  color: var(--forest-deep);
}

.button-primary:hover {
  background: var(--citrus-hover);
}

.button-secondary,
.menu > summary {
  border-color: var(--rule);
  color: var(--forest);
}

.button-secondary:hover,
.menu > summary:hover,
.menu[open] > summary {
  border-color: var(--forest);
  background: var(--card);
}

.header-cta {
  min-height: 2.65rem;
  padding: .55rem .85rem;
  background: var(--forest);
  color: var(--paper);
  font-size: .83rem;
}

.header-cta:hover {
  background: var(--forest-deep);
}

.menu {
  position: relative;
}

.menu > summary {
  list-style: none;
  text-align: start;
}

.menu > summary::-webkit-details-marker,
.faq-items summary::-webkit-details-marker {
  display: none;
}

.menu > summary .menu-trigger {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.language-menu > summary {
  min-height: 2.65rem;
  padding: .55rem .75rem;
  font-size: .83rem;
}

.chevron {
  width: .48rem;
  height: .48rem;
  flex: none;
  margin: -.2rem .13rem 0 .05rem;
  transform: rotate(45deg);
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  font-size: 0;
}

.menu[open] .chevron {
  margin-top: .2rem;
  transform: rotate(225deg);
}

.menu-panel {
  position: absolute;
  z-index: 2;
  top: calc(100% + .45rem);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 11rem;
  max-width: calc(100vw - var(--gutter) * 2);
  max-height: 65vh;
  padding: .4rem;
  overflow-y: auto;
  border: 1px solid var(--rule);
  border-radius: .5rem;
  background: var(--card);
  box-shadow: 0 .65rem 2rem rgb(23 32 26 / .12);
}

.menu-panel a {
  display: flex;
  min-height: 2.55rem;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .5rem .7rem;
  border-radius: .27rem;
  color: var(--forest);
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.25;
}

.menu-panel a:hover,
.menu-panel a[aria-current="page"] {
  background: #e8ead9;
}

.menu-panel a:focus-visible {
  outline-offset: -2px;
}

.hero {
  padding-block: clamp(2.1rem, 4.2vw, 4.1rem) clamp(2.85rem, 5.3vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .89fr) minmax(0, 1.11fr);
  align-items: stretch;
  gap: clamp(1.5rem, 4.4vw, 4.8rem);
}

.hero-copy {
  align-self: center;
  padding-block: 1.1rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--forest);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.4rem;
  height: 1px;
  flex: none;
  background: currentColor;
  content: "";
}

.hero h1 {
  margin-top: .95rem;
  font-size: clamp(3.5rem, 6.9vw, 7.5rem);
  font-weight: 820;
  letter-spacing: -.088em;
  line-height: .91;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  margin-top: .08em;
  color: var(--forest);
  font-family: var(--font-editorial);
  font-size: .82em;
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.hero-intro {
  max-width: 32rem;
  margin-top: clamp(1.1rem, 2.5vw, 1.9rem);
  color: var(--soft-ink);
  font-size: clamp(1.03rem, 1.45vw, 1.19rem);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: clamp(1.35rem, 3vw, 2rem);
}

.hero-media {
  position: relative;
  min-height: clamp(27rem, 39vw, 35rem);
  overflow: hidden;
  border-radius: .72rem;
  background: #cec3b1;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
}

.categories,
.guide,
.faq {
  padding-block: clamp(3rem, 6.3vw, 6.6rem);
}

.categories {
  border-block: 1px solid var(--rule);
  background: var(--panel);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem 3rem;
  margin-bottom: clamp(1.65rem, 3vw, 2.65rem);
}

.section-head h2,
.guide h2,
.faq h2 {
  margin-top: .55rem;
  font-size: clamp(2.35rem, 4.3vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -.067em;
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section-intro {
  max-width: 42rem;
  margin-top: .75rem;
  color: var(--soft-ink);
  line-height: 1.65;
}

.category-menu > summary {
  min-width: 14rem;
  justify-content: space-between;
  border-color: var(--forest);
  background: var(--card);
}

.category-menu > summary:hover,
.category-menu[open] > summary {
  background: var(--forest);
  color: var(--paper);
}

.category-menu .menu-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(33rem, 100vw - var(--gutter) * 2);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 1.75vw, 1.5rem);
}

.feature-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: .55rem;
  background: var(--card);
  transition: border-color .18s ease;
}

.feature-card:hover {
  border-color: var(--forest);
}

.feature-card img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  background: #d5ccbb;
}

.feature-body {
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: flex-start;
  gap: .55rem;
  padding: clamp(.8rem, 1.55vw, 1.35rem);
}

.feature-body h3 {
  font-size: clamp(1.1rem, 1.85vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.feature-body p {
  margin-top: .42rem;
  color: var(--soft-ink);
  font-size: .92rem;
  line-height: 1.45;
}

.feature-arrow {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: none;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--forest);
  font-size: 1.03rem;
  line-height: 1;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.feature-card:hover .feature-arrow {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--paper);
}

.guide {
  background: var(--forest);
  color: var(--paper);
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 8vw, 7.5rem);
}

.guide .eyebrow {
  color: var(--citrus);
}

.guide .section-intro {
  color: #d4ded0;
}

.guide .button {
  margin-top: 1.6rem;
}

.steps {
  display: grid;
  align-self: start;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
  border-top: 1px solid #587063;
}

.steps li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  align-items: start;
  gap: .9rem;
  padding-block: 1.22rem;
  border-bottom: 1px solid #587063;
  counter-increment: guide-step;
}

.steps li::before {
  color: var(--citrus);
  content: counter(guide-step, decimal-leading-zero);
  font-size: .81rem;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.8;
}

.steps h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}

.steps p {
  max-width: 37rem;
  margin-top: .42rem;
  color: #d4ded0;
  font-size: .95rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .67fr) minmax(0, 1.33fr);
  gap: clamp(1.35rem, 6.2vw, 5rem);
}

.faq h2 {
  margin-top: 0;
}

.faq-items {
  border-top: 1px solid var(--rule);
}

.faq-items details {
  border-bottom: 1px solid var(--rule);
}

.faq-items summary {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .85rem;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 760;
  line-height: 1.35;
}

.faq-items summary::after {
  width: 1.3rem;
  flex: none;
  color: var(--forest);
  content: "+";
  font-size: 1.4rem;
  font-weight: 450;
  text-align: center;
}

.faq-items [open] > summary::after {
  content: "−";
}

.faq-items details > p {
  max-width: 46rem;
  padding: 0 1.8rem 1.15rem 0;
  color: var(--soft-ink);
}

.site-footer {
  padding-block: 1.7rem;
  border-top: 1px solid var(--rule);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem clamp(1rem, 3.5vw, 3rem);
}

.footer-inner p {
  max-width: 46rem;
  color: var(--soft-ink);
  font-size: .88rem;
}

.footer-link {
  color: var(--forest);
}

@media (max-width: 63rem) {
  .header-inner {
    gap: 1rem;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    gap: clamp(1rem, 3.2vw, 2.25rem);
  }

  .hero-media {
    min-height: 25rem;
  }
}

@media (max-width: 48rem) {
  .hero-grid,
  .guide-grid,
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding: 0;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 11.6vw, 6.3rem);
  }

  .hero-media {
    min-height: 0;
    aspect-ratio: 1.45;
    margin-top: .3rem;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-menu {
    justify-self: start;
  }

  .category-menu .menu-panel {
    right: auto;
    left: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 34rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    gap: 0 .85rem;
    padding-top: .7rem;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .primary-nav {
    grid-column: 1 / -1;
    justify-content: start;
    gap: .5rem 1.15rem;
    min-height: 2.7rem;
    padding-top: .25rem;
  }

  .primary-nav a {
    display: inline-flex;
    min-height: 2.4rem;
    align-items: center;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 4.55rem);
  }

  .hero-media {
    aspect-ratio: 1.22;
  }

  .feature-body {
    position: relative;
    flex-direction: column;
    padding: .8rem .73rem;
  }

  .feature-body p {
    font-size: .87rem;
  }

  .feature-arrow {
    width: 1.65rem;
    height: 1.65rem;
    margin-top: auto;
    font-size: .85rem;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 23rem) {
  .category-menu .menu-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
  }
}
