:root {
  --forest: #123c2f;
  --forest-2: #1b5544;
  --forest-3: #2a6b56;
  --peach: #e98a5f;
  --peach-soft: #f3b092;
  --cream: #fcf9f3;
  --cream-2: #f2ece0;
  --paper: #ffffff;
  --ink: #1c2a24;
  --muted: #5c6b62;
  --line: #ded6c6;
  --sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --max: 1140px;
  --shadow: 0 24px 50px -30px rgba(18, 60, 47, 0.5);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--forest-3); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--peach); }

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--forest);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 2.7vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.35em; }
li { margin-bottom: 0.45em; }

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

.narrow { max-width: 780px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--peach);
  color: var(--forest);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-family: var(--sans);
  font-weight: 700;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.logo {
  font-family: var(--sans);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--forest);
  text-decoration: none;
  line-height: 1;
}
.logo span { color: var(--peach); }
.logo:hover { color: var(--forest); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.nav > a,
.dropdown > summary {
  color: var(--forest);
  text-decoration: none;
  cursor: pointer;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
.nav > a:hover,
.dropdown > summary:hover { border-bottom-color: var(--peach); color: var(--forest); }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; display: inline-flex; align-items: center; gap: 0.35rem; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary::after { content: "+"; font-size: 0.95rem; color: var(--peach); }
.dropdown[open] > summary::after { content: "\2212"; }

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--peach);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  display: grid;
  z-index: 60;
}
.dropdown-menu a {
  padding: 0.55rem 0.7rem;
  color: var(--forest);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 500;
}
.dropdown-menu a:hover { background: var(--cream-2); color: var(--forest); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--cream);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(12, 40, 31, 0.96) 0%, rgba(12, 40, 31, 0.86) 42%, rgba(12, 40, 31, 0.42) 100%),
    linear-gradient(0deg, rgba(12, 40, 31, 0.55), rgba(12, 40, 31, 0.2));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.hero-copy { max-width: 36rem; }

.hero .kicker {
  color: var(--peach-soft);
  font-family: var(--sans);
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero .kicker::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--peach);
  display: inline-block;
}

.hero h1 {
  color: #fffdf8;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
}

.hero .lede {
  color: #e7dfd0;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  max-width: 32rem;
  margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Ledger panel */
.ledger {
  background: var(--cream);
  color: var(--forest);
  border-top: 5px solid var(--peach);
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 32px 60px -30px rgba(0, 0, 0, 0.7);
  justify-self: end;
  width: 100%;
  max-width: 330px;
}

.ledger-head {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--peach);
  margin: 0 0 0.9rem;
}

.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger-list li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0;
  padding: 0.62rem 0;
  border-bottom: 1px dashed var(--line);
}
.ledger-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger-num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--peach);
}
.ledger-list a {
  color: var(--forest);
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.94rem;
}
.ledger-list a:hover { color: var(--peach); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--peach);
  color: var(--forest);
  border: 2px solid var(--peach);
  padding: 0.65rem 1.3rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }

.btn-lg { padding: 0.85rem 1.65rem; font-size: 0.84rem; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-ghost:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }

/* Sections */
.section { padding-block: clamp(2.7rem, 6vw, 4.6rem); }
.section + .section { border-top: 1px solid var(--line); }
.section .wrap > h2 { margin-bottom: 0.3em; }
.section-sub { color: var(--muted); max-width: 42rem; margin-bottom: 2rem; }

.section.values { background: var(--forest); color: var(--cream); }
.section.values h2 { color: var(--cream); }
.values .grid { margin-top: 2rem; }

/* Category rows */
.cat-grid {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.cat-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 1.15rem 0.4rem;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.16s ease, padding 0.16s ease;
}
.cat-row:hover { background: var(--cream-2); color: var(--ink); padding-inline: 0.9rem; }

.cat-num {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--peach);
}
.cat-body { display: flex; flex-direction: column; gap: 0.1rem; }
.cat-name {
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--forest);
  line-height: 1.25;
}
.cat-desc { font-size: 0.9rem; color: var(--muted); }
.cat-arrow {
  font-size: 1.4rem;
  line-height: 1;
  color: var(--peach);
  transition: transform 0.16s ease;
}
.cat-row:hover .cat-arrow { transform: translateX(4px); }

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 var(--cream-2);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: 8px 8px 0 var(--peach-soft); transform: translate(-2px, -2px); }

.card-media { display: block; overflow: hidden; background: var(--forest); }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.card:hover .card-media img { transform: scale(1.03); }

.card-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--cream-2);
  border-left: 3px solid var(--peach);
  padding: 0.26rem 0.6rem;
  text-decoration: none;
}
.badge:hover { color: var(--forest); background: var(--peach-soft); }

.card-title { margin: 0; font-size: 1.18rem; line-height: 1.28; }
.card-title a { color: var(--forest); text-decoration: none; }
.card-title a:hover { color: var(--forest-3); text-decoration: underline; text-decoration-color: var(--peach); }

.card-body p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
  padding: 0.45rem 0.9rem;
  font-size: 0.7rem;
}
.card-body .btn:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }

/* Blog featured */
.grid.featured { margin-bottom: 2.5rem; }

/* Values */
.value {
  background: var(--cream);
  border-top: 4px solid var(--peach);
  padding: 1.5rem 1.4rem;
}
.value h3 { margin-bottom: 0.4rem; font-size: 1.12rem; }
.value p { font-size: 0.94rem; color: #4d5c53; margin: 0; }

/* Breadcrumb */
.breadcrumb { margin: 1.8rem 0 1.4rem; font-size: 0.82rem; color: var(--muted); font-family: var(--sans); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--peach); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); text-decoration: underline; }

/* Page head */
.page-head {
  padding-bottom: 1.6rem;
  border-bottom: 3px solid var(--forest);
  margin-bottom: 2rem;
}
.page-head .kicker {
  font-family: var(--sans);
  font-size: 0.73rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--peach);
  margin-bottom: 0.7rem;
}
.page-head .lede { color: var(--muted); max-width: 46rem; margin-bottom: 0; }

/* Category intros */
.intro-2 { margin-bottom: 1.2rem; }
.subtopics {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}
.subtopics li {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--forest);
  padding: 0.3rem 0.65rem;
  color: var(--forest);
}
.other-cats { margin-top: 1rem; }

/* Article */
.article-wrap { padding-bottom: 3rem; }
.article-head { padding-bottom: 1.6rem; border-bottom: 3px solid var(--forest); margin-bottom: 2rem; }
.article-head h1 { margin: 0.6rem 0 0.7rem; }
.article-head .lede { color: var(--muted); font-size: 1.1rem; margin-bottom: 1rem; }
.meta { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); margin: 0; }

.prose { max-width: 74ch; }
.prose h2 {
  margin-top: 2.4em;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--peach);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
}
.prose h3 { margin-top: 1.8em; }
.prose ul li::marker { color: var(--peach); }
.prose a { color: var(--forest-3); text-decoration-color: var(--peach); font-weight: 500; }
.prose a:hover { color: var(--peach); }

.article-figure { margin: 2rem 0; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption {
  font-family: var(--sans);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.03em;
}

/* FAQ */
.faq { margin: 3rem 0 2.5rem; max-width: 74ch; }
.faq h2 { border-bottom: 2px solid var(--peach); padding-bottom: 0.3rem; }
.faq details {
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 0.6rem;
}
.faq summary {
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-family: var(--sans);
  font-weight: 700;
  color: var(--forest);
  list-style: none;
  position: relative;
  padding-right: 2.6rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--peach);
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Author */
.author-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  max-width: 74ch;
}
.author-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  background: var(--peach);
  color: var(--forest);
  font-family: var(--sans);
  font-weight: 800;
  display: grid;
  place-items: center;
  border-radius: 0;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}
.author-box h2 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.author-box p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Related */
.related { margin-top: 2.5rem; }
.related > h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* Info / simple pages */
.updated { font-family: var(--sans); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* Footer */
.site-footer {
  background: var(--forest);
  color: #d5ddd6;
  margin-top: 3rem;
  border-top: 6px solid var(--peach);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3rem;
}
.site-footer h3 {
  color: var(--peach-soft);
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { color: #d5ddd6; text-decoration: none; }
.site-footer a:hover { color: var(--peach-soft); text-decoration: underline; }
.footer-logo {
  font-size: 1.45rem;
  color: var(--paper);
  margin-bottom: 0.8rem;
}
.footer-logo span { color: var(--peach); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-block: 1.2rem;
  font-size: 0.78rem;
  color: #a9b8ad;
  font-family: var(--sans);
}
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.2rem; padding-block: 3rem; }
  .hero-copy { max-width: 42rem; }
  .ledger { justify-self: start; max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 1.6rem, var(--max)); }
  .header-inner { min-height: 64px; }
  .logo { font-size: 1.4rem; }
  .nav { gap: 0.7rem; font-size: 0.68rem; letter-spacing: 0.06em; }
  .dropdown-menu { right: auto; left: 0; }
  .hero h1 { font-size: 2.1rem; }
  .hero .lede { font-size: 1rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .ledger { padding: 1.3rem 1.2rem; }
  .cat-row { grid-template-columns: 40px 1fr auto; gap: 0.8rem; }
  .cat-name { font-size: 1.05rem; }
  .grid, .grid.three, .related .grid { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 110px 1fr; }
  .card-media img { height: 100%; aspect-ratio: auto; }
  .card-body { padding: 0.9rem 1rem; gap: 0.4rem; }
  .card-title { font-size: 1.02rem; }
  .card-body p { display: none; }
  .card-body .btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .author-box { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
