:root {
  --forest: #1f4d3a;
  --forest-deep: #16382b;
  --cream: #f3efe6;
  --paper: #faf7f0;
  --clay: #b5673e;
  --clay-dark: #8f4f2e;
  --ink: #1a221c;
  --muted: #5c6b61;
  --line: #d9d2c4;
  --display: "Fraunces", Georgia, serif;
  --body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  font-family: var(--body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(181,103,62,.08), transparent 45%),
    linear-gradient(180deg, #ebe6db 0%, var(--cream) 180px);
  line-height: 1.65;
  font-size: 1.02rem;
}
img { max-width: 100%; display: block; }
a { color: var(--forest); }
a:hover { color: var(--clay); }

.top-strip {
  background: var(--forest-deep);
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  letter-spacing: .04em;
  padding: .45rem 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.top-strip .lang a {
  color: #fff;
  text-decoration: none;
  margin-left: .4rem;
  opacity: .7;
  font-weight: 700;
}
.top-strip .lang a.active { opacity: 1; border-bottom: 2px solid var(--clay); }

/* Full-bleed hero */
.hero {
  position: relative;
  min-height: min(92vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22,56,43,.25) 0%, rgba(22,56,43,.78) 70%, rgba(22,56,43,.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 4rem 0 3.5rem;
}
.brand-hero {
  font-family: var(--display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: .85rem;
}
.brand-hero span {
  display: block;
  font-family: var(--body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #e8b896;
  margin-bottom: .6rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.hero p {
  max-width: 42ch;
  opacity: .92;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--clay);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: .85rem 1.35rem;
  border: 0;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--clay-dark); color: #fff; transform: translateY(-2px); }

.warn {
  width: min(1100px, 92%);
  margin: 1.25rem auto 0;
  background: #fff8f0;
  border-left: 4px solid var(--clay);
  padding: .9rem 1.1rem;
  font-size: .9rem;
  color: #6b4528;
}

/* Sticky chapter pills */
.chapters-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243,239,230,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: .65rem 0;
  margin-top: 1rem;
}
.chapters-track {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: .15rem;
}
.chapters-track a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .45rem .85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
  transition: .2s;
}
.chapters-track a:hover,
.chapters-track a.active {
  color: var(--forest);
  background: #fff;
  border-color: var(--line);
}

.chapter {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.chapter .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--clay);
  font-size: 1.1rem;
  margin-bottom: .4rem;
}
.chapter h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--forest);
  margin-bottom: .85rem;
  max-width: 22ch;
  line-height: 1.15;
}
.chapter p { margin-bottom: .85rem; max-width: 68ch; color: var(--ink); }
.chapter ul { margin: 0 0 1rem 1.2rem; max-width: 65ch; }
.chapter li { margin-bottom: .45rem; }

.split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img {
  width: 100%;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(31,77,58,.12);
}

.ad-slot {
  width: min(1100px, 92%);
  margin: 2rem auto;
  border: 1px dashed var(--line);
  padding: 1rem 1.2rem;
  font-size: .88rem;
  color: var(--muted);
  background: var(--paper);
}
.ad-slot strong { color: var(--clay); display: block; margin-bottom: .35rem; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }

.site-nav {
  width: min(1100px, 92%);
  margin: 1.5rem auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .92rem;
  font-weight: 600;
}
.site-nav a { text-decoration: none; }

.prose-page {
  width: min(720px, 92%);
  margin: 2rem auto 3rem;
}
.prose-page h1 {
  font-family: var(--display);
  font-size: 2.2rem;
  color: var(--forest);
  margin-bottom: 1rem;
  font-weight: 600;
}
.prose-page h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--forest);
  margin: 1.5rem 0 .6rem;
}
.prose-page p, .prose-page li { margin-bottom: .7rem; }
.prose-page ul { margin-left: 1.2rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { text-decoration: none; }

.form { display: grid; gap: .7rem; max-width: 480px; }
.form label { font-weight: 600; font-size: .9rem; }
.form input, .form textarea {
  padding: .75rem;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  border-radius: 2px;
}

.footer {
  margin-top: 3rem;
  background: var(--forest-deep);
  color: rgba(255,255,255,.8);
  padding: 2.5rem 0 2rem;
  font-size: .9rem;
}
.footer-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footer a { color: #e8b896; }
.footer strong { color: #fff; font-family: var(--display); font-size: 1.3rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: .7s ease; }
.reveal.show { opacity: 1; transform: none; }
