:root {
  --ink: #24312b;
  --muted: #6e7369;
  --line: #ded7c8;
  --paper: #fbf7ed;
  --panel: #fffdf7;
  --wash: #efe5d3;
  --sage: #8da18a;
  --sage-dark: #4f6d5a;
  --clay: #b66f4a;
  --rose: #f4ded4;
  --shadow: 0 18px 42px rgba(70, 55, 37, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Lexend, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 237, 0.95);
  backdrop-filter: blur(14px);
}

.topbar {
  border-bottom: 1px solid rgba(222, 215, 200, 0.72);
  background: #314339;
  color: #fffdf7;
  font-size: 13px;
  font-weight: 700;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 36px;
}

.topbar a {
  color: #fffdf7;
  text-decoration: none;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: inline-flex;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--sage-dark);
  color: #fff;
  font-size: 20px;
}

.nav-links {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 14px;
}

.nav-links a {
  padding: 8px 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--clay);
}

.home-hero {
  background: #fbf7ed;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.58fr);
  gap: 42px;
  align-items: end;
  min-height: 520px;
  padding-top: 58px;
  padding-bottom: 48px;
}

.hero-copy {
  max-width: 720px;
  padding: 18px 0;
}

.script-label {
  color: var(--clay);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-style: italic;
}

.eyebrow,
.meta {
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-hero h1,
.article-hero h1,
.page-hero h1 {
  margin: 8px 0 0;
  max-width: 840px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.home-hero p,
.article-hero p,
.page-hero p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #465047;
  font-size: 18px;
}

.actions,
.article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--sage-dark);
  padding: 10px 18px;
  background: var(--sage-dark);
  color: #fffdf7;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.button:hover {
  background: #3e5748;
}

.button.secondary {
  border-color: var(--ink);
  background: rgba(255, 253, 247, 0.72);
  color: var(--ink);
}

.hero-feature {
  align-self: stretch;
  display: block;
  min-height: 390px;
  border: 10px solid rgba(255, 253, 247, 0.88);
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  overflow: hidden;
}

.hero-feature img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  display: block;
  object-fit: cover;
  background: var(--wash);
}

.category-strip {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.category-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding-top: 17px;
  padding-bottom: 17px;
}

.category-strip a {
  color: var(--sage-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.section {
  padding: 42px 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  text-align: center;
}

.section-header > div {
  width: 100%;
}

.section-header h2,
.content h2,
.editorial-inner h2,
.newsletter-inner h2 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-header p {
  max-width: 680px;
  margin: 8px auto 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(70, 55, 37, 0.06);
}

.card-body {
  padding: 20px;
}

.card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--wash);
}

.card h3 {
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.18;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card a.stretched,
.card h3 a {
  text-decoration: none;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.category-card {
  background: linear-gradient(180deg, #fffdf7, #f5ecde);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
}

.feature-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.feature-item img {
  width: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--wash);
}

.feature-item h3 {
  margin: 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.18;
}

.feature-item h3 a {
  text-decoration: none;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.editorial-band,
.newsletter-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.editorial-band {
  background: #e8dac6;
}

.newsletter-band {
  background: #314339;
  color: #fffdf7;
}

.editorial-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.editorial-inner p,
.newsletter-inner p {
  margin: 0;
  color: inherit;
}

.page-hero,
.article-hero {
  padding: 48px 24px 26px;
}

.article-hero {
  text-align: center;
}

.article-hero .breadcrumb,
.article-hero p,
.article-actions {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.article-kicker {
  margin-top: 12px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumb {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
}

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

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 34px;
  align-items: start;
}

.content {
  background: var(--panel);
  border-top: 4px solid var(--sage);
  padding: 30px;
}

.lead-image {
  margin: 0 0 24px;
}

.lead-image img,
.content > img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  background: var(--wash);
}

.content h2 {
  margin-top: 34px;
}

.content h2:first-child {
  margin-top: 0;
}

.content p,
.content li {
  color: #3c453e;
}

.article-toc {
  border: 1px solid var(--line);
  background: #f8f1e5;
  padding: 18px 20px;
}

.article-toc p {
  margin: 0 0 8px;
  color: var(--ink);
  font-weight: 900;
}

.article-toc ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  margin: 0;
  padding-left: 20px;
}

.article-toc a {
  color: var(--sage-dark);
  font-weight: 750;
  text-decoration: none;
}

.note {
  border-left: 5px solid var(--clay);
  background: var(--rose);
  padding: 15px 17px;
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--clay);
  content: "*";
  font-size: 22px;
  line-height: 1;
}

.link-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fffdf7;
  padding: 14px;
}

.link-card + .link-card {
  margin-top: 14px;
}

.link-card img {
  width: 132px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: var(--wash);
}

.link-card h3 {
  margin: 4px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
}

.link-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 116px;
}

.sidebar-box {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}

.sidebar-box + .sidebar-box {
  margin-top: 16px;
}

.sidebar-box h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.sidebar-box p {
  color: var(--muted);
}

.buying-box {
  background: #f8f1e5;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 800;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.page-numbers {
  display: flex;
  gap: 8px;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  background: #fffdf7;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.page-link:hover,
.page-link.current {
  border-color: var(--sage-dark);
  background: var(--sage-dark);
  color: #fffdf7;
}

.page-step {
  min-width: 86px;
  padding: 0 14px;
}

.page-link.disabled {
  color: var(--muted);
  opacity: 0.45;
}

.site-footer {
  margin-top: 52px;
  border-top: 1px solid var(--line);
  background: #f1e7d7;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 32px 24px;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.footer-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  max-width: 520px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .brand,
  .nav-links {
    grid-column: 1;
    justify-content: center;
  }

  .hero-grid,
  .layout,
  .grid,
  .feature-list,
  .editorial-inner,
  .newsletter-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: auto;
  }

  .sidebar {
    position: static;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .wrap,
  .nav,
  .page-hero,
  .article-hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .topbar-inner a {
    display: none;
  }

  .brand {
    font-size: 24px;
  }

  .home-hero h1,
  .article-hero h1,
  .page-hero h1 {
    font-size: 40px;
  }

  .hero-feature {
    min-height: 320px;
  }

  .hero-feature img {
    min-height: 320px;
  }

  .content {
    padding: 22px 18px;
  }

  .feature-item,
  .link-card {
    grid-template-columns: 1fr;
  }

  .feature-item img,
  .link-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .article-toc ul {
    grid-template-columns: 1fr;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .page-numbers {
    justify-content: center;
  }

  .page-step {
    width: 100%;
  }
}
