:root {
  --bg: #eef2ee;
  --bg-soft: #f7f9f6;
  --surface: #ffffff;
  --surface-alt: #e5ece5;
  --ink: #18211b;
  --muted: #5c685f;
  --line: #ccd6cc;
  --accent: #476f5b;
  --accent-2: #d5a668;
  --shadow: 0 20px 50px rgba(24, 33, 27, 0.08);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(213, 166, 104, 0.14), transparent 28%),
    linear-gradient(180deg, #f3f6f2 0%, #e8eee8 100%);
  font-family: "Trebuchet MS", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
}

p {
  margin: 0;
  line-height: 1.68;
}

.page-frame {
  padding: 26px;
}

.site-header,
.hero-slab,
.library-section,
.notes-section,
.path-section,
.faq-section,
.request-section,
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 24px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-name,
.footer-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
}

.micro-label,
.section-kicker,
.panel-label,
.guide-index {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 6px;
  font-size: 0.95rem;
}

.main-nav a {
  color: var(--muted);
}

.main-nav a:hover,
.legal-links a:hover {
  color: var(--ink);
}

.hero-slab {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  padding: 12px 0 48px;
}

.hero-left {
  background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(247,249,246,0.95) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow);
}

.hero-left h1 {
  font-size: clamp(3rem, 6.8vw, 5.8rem);
  max-width: 10.5ch;
  margin: 12px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
}

.hero-summary {
  max-width: 62ch;
  color: #293129;
  font-size: 1.05rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: #f1f5f1;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  transition: 0.2s ease;
  font-size: 0.95rem;
}

.button-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button-dark:hover {
  transform: translateY(-1px);
  background: #0f1712;
}

.button-light {
  background: transparent;
}

.button-light:hover {
  background: rgba(71, 111, 91, 0.07);
  border-color: var(--accent);
}

.button.full {
  width: 100%;
}

.hero-right {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.panel-card {
  border-radius: var(--radius-xl);
  padding: 30px;
  border: 1px solid #c6d1c6;
}

.intro-card {
  background: linear-gradient(180deg, #476f5b 0%, #395646 100%);
  color: #f8faf7;
}

.intro-card .panel-label,
.intro-card p {
  color: rgba(248, 250, 247, 0.86);
}

.intro-card h2 {
  font-size: 2rem;
  max-width: 11ch;
  margin: 10px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
}

.stack-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mini-panel {
  background: var(--surface-alt);
  border: 1px solid #cad5ca;
  border-radius: 24px;
  padding: 24px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mini-panel span {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.mini-panel strong {
  font-size: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.library-section,
.notes-section,
.path-section,
.faq-section,
.request-section {
  padding: 28px 0 46px;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-intro.narrow {
  grid-template-columns: 1fr;
}

.section-intro h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
}

.section-intro p:last-child {
  color: var(--muted);
  max-width: 56ch;
}

.library-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
}

.guide-tile {
  min-height: 280px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-tile.featured {
  grid-row: span 2;
  min-height: 576px;
  background: linear-gradient(180deg, #fffaf4 0%, #f3e6d5 100%);
}

.guide-tile.accent {
  background: linear-gradient(180deg, #edf4ef 0%, #dde9e0 100%);
}

.guide-tile h3 {
  font-size: 1.8rem;
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
}

.guide-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-footer span {
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-footer strong {
  font-size: 1.12rem;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.notes-grid article {
  padding: 26px 0;
  border-top: 2px solid var(--ink);
}

.notes-grid h3 {
  font-size: 1.36rem;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.notes-grid p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
}

.timeline span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
}

.timeline h3 {
  font-size: 1.26rem;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
}

.timeline p {
  color: var(--muted);
}

.faq-wrap {
  display: grid;
  gap: 12px;
}

.faq-wrap details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.72);
  padding: 18px 20px;
}

.faq-wrap summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.faq-wrap summary::-webkit-details-marker {
  display: none;
}

.faq-wrap p {
  color: var(--muted);
  margin-top: 10px;
}

.request-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, #f5f7f3 0%, #e7eee6 100%);
  border: 1px solid var(--line);
  padding: 28px;
}

.request-copy h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin: 10px 0 16px;
  max-width: 11ch;
  font-family: Georgia, "Times New Roman", serif;
}

.request-copy p {
  color: #2f3830;
}

.publisher-meta {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.request-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.request-form label {
  display: grid;
  gap: 8px;
}

.request-form span {
  color: var(--muted);
  font-size: 0.92rem;
}

.request-form input,
.request-form textarea {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid #c8d2c8;
  background: #fbfcfb;
  color: var(--ink);
  padding: 14px 16px;
  font: inherit;
}

.request-form textarea {
  min-height: 140px;
  resize: vertical;
}

.request-form input:focus,
.request-form textarea:focus {
  outline: 2px solid rgba(71, 111, 91, 0.18);
  border-color: var(--accent);
}

.site-footer {
  padding: 20px 0 12px;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.footer-columns p,
.legal-links {
  color: var(--muted);
}

.legal-links {
  display: grid;
  gap: 10px;
}

.disclaimer {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}

.legal-page,
.thanks-page {
  min-height: 100vh;
}

.legal-frame,
.thanks-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 20px;
}

.legal-content,
.thanks-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.legal-content h1,
.thanks-card h1 {
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  margin: 10px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
}

.legal-lead,
.thanks-text {
  color: var(--muted);
  max-width: 60ch;
}

.legal-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-block h2 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
}

.thanks-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.thanks-card {
  width: 100%;
  max-width: 760px;
}

.thanks-meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

@media (max-width: 1080px) {
  .hero-slab,
  .section-intro,
  .request-layout,
  .footer-columns,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .library-layout {
    grid-template-columns: 1fr 1fr;
  }

  .guide-tile.featured {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 360px;
  }

  .stack-line {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .page-frame,
  .legal-frame,
  .thanks-wrap {
    padding: 16px;
  }

  .site-header,
  .legal-header {
    flex-direction: column;
  }

  .hero-left,
  .legal-content,
  .thanks-card,
  .request-layout {
    padding: 24px;
  }

  .library-layout,
  .stack-line,
  .notes-grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    grid-template-columns: 1fr;
  }

  .hero-left h1,
  .section-intro h2,
  .request-copy h2 {
    max-width: none;
  }
}