:root {
  --pine: #0e6b52;
  --pine-deep: #0a3d30;
  --ink: #1c1917;
  --muted: #6b6560;
  --line: #e7e0d4;
  --paper: #f4f0e8;
  --sheet: #fffcf7;
  --clay: #c4623a;
  --clay-wash: #f8ebe4;
  --tide: #1c6e78;
  --tide-wash: #e6f3f4;
  --honey-wash: #f8f1de;
  --shadow: 0 18px 50px rgba(28, 25, 23, 0.08);
  --max: 74rem;
  --read: 44rem;
  --header: 4.4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(90% 40% at 100% -10%, rgba(196, 98, 58, 0.08), transparent 50%),
    var(--paper);
  font-family: "Source Sans 3", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pine-deep);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(100% - 2.4rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.55rem;
}

.brand span {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.nav-slot {
  position: relative;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: 600 0.92rem/1 "Source Sans 3", sans-serif;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
}

.nav a[aria-current="page"] {
  color: var(--pine);
  box-shadow: inset 0 -2px 0 var(--pine);
}

.nav a:hover {
  color: var(--pine);
}

.opening {
  padding: 3.2rem 0 1rem;
}

.opening-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
.brand span {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
}

h1,
h2,
h3,
[id] {
  scroll-margin-top: calc(var(--header) + 1rem);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.lede {
  font-size: 1.28rem;
  line-height: 1.5;
  max-width: 40rem;
}

.asof {
  color: var(--muted);
  font-size: 0.98rem;
}

.frame {
  margin: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sheet);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.frame figcaption,
.caption {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 0.75rem 0.2rem 0;
}

.section {
  padding: 3.2rem 0;
}

.step-next {
  padding-top: 0;
}

.step-next-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: end;
  background: var(--sheet);
  border-radius: 1.4rem;
  padding: 1.6rem 1.75rem;
  box-shadow: var(--shadow);
}

.step-next-inner h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  line-height: 1.12;
}

.step-lede {
  margin: 0;
  font-size: 1.05rem;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.step-actions .btn {
  margin-top: 0;
}

.product-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  background: var(--tide-wash);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
}

.product-strip-copy {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.product-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.product-strip-actions .btn {
  margin-top: 0;
  padding: 0.55rem 0.95rem;
  font-size: 0.95rem;
}

.sticky-cta {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 12;
  transform: translateX(-50%);
  background: var(--pine-deep);
  color: #f7f3ea;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow);
}

.sticky-cta:hover {
  color: white;
}

.section h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.panel {
  background: var(--sheet);
  border-radius: 1.4rem;
  padding: 1.4rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.panel h3 {
  margin: 0.8rem 0 0.4rem;
  font-size: 1.55rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

.panel img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: 1rem;
}

.prose {
  max-width: var(--read);
}

.prose h2 {
  margin-top: 2.4rem;
}

.prose p,
.prose li {
  font-size: 1.12rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

.toc {
  position: sticky;
  top: calc(var(--header) + 1rem);
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
}

.toc a:hover {
  color: var(--pine-deep);
}

.figures {
  display: grid;
  gap: 0.8rem;
  margin: 1.2rem 0 1.6rem;
}

.figures div {
  background: var(--sheet);
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
}

.figures dt {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide);
}

.figures dd {
  margin: 0.25rem 0 0;
}

.country-grid,
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.country-card {
  display: grid;
  text-decoration: none;
  color: inherit;
  background: var(--sheet);
  border-radius: 1.3rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.country-card img {
  width: 100%;
  height: 12.5rem;
  object-fit: cover;
}

.country-card div {
  padding: 1rem 1.15rem 1.2rem;
}

.country-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
}

.country-card p {
  margin: 0;
  color: var(--muted);
}

.country-card:hover h3 {
  color: var(--pine);
}

.band {
  display: grid;
  grid-template-columns: 16rem 1fr;
  gap: 1.6rem;
  align-items: center;
  background: var(--pine-deep);
  color: #f7f3ea;
  border-radius: 1.5rem;
  padding: 1.2rem;
}

.band img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: 1rem;
}

.band a {
  color: #f7f3ea;
}

.band .btn,
.band .btn:hover {
  color: var(--pine-deep);
  background: #f4f0e8;
}

.band h2 {
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  margin-top: 0.8rem;
  background: #f4f0e8;
  color: var(--pine-deep);
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
}

.btn:hover {
  background: white;
  color: var(--pine-deep);
}

.btn-line {
  background: transparent;
  color: var(--pine-deep);
  border: 1px solid var(--line);
  margin-left: 0.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.6rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  align-content: start;
}

.footer-links a {
  text-decoration: none;
  font-weight: 600;
}

.fine {
  font-size: 0.92rem;
}

.confirm {
  padding: 4rem 0 6rem;
  max-width: 36rem;
}

@media (max-width: 860px) {
  .opening-grid,
  .split,
  .country-grid,
  .note-grid,
  .guide-layout,
  .band,
  .site-footer .wrap,
  .step-next-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sticky-cta {
    display: inline-flex;
  }

  body {
    padding-bottom: 4.5rem;
  }

  .toc {
    position: static;
  }

  .nav-button {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.55rem);
    width: min(18rem, 80vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--sheet);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    padding: 0.4rem;
  }

  .nav a {
    padding: 0.75rem 0.9rem;
    border-radius: 0.7rem;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }

  .nav a[aria-current="page"] {
    box-shadow: none;
    background: var(--honey-wash);
  }

  .band img,
  .panel img {
    height: 14rem;
  }
}
