:root {
  color-scheme: light;
  --ink: #15201d;
  --muted: #5c6862;
  --paper: #fbf7ef;
  --surface: #fffdf8;
  --line: #ded6c8;
  --teal: #123b3a;
  --gold: #b57a2b;
  --red: #9b3f32;
  --shadow: 0 18px 55px rgba(31, 31, 22, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  background: rgba(16, 32, 31, .92);
  backdrop-filter: blur(14px);
}

.brand,
.top-nav,
.hero-actions,
.section-heading,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: var(--gold);
  color: #1b1510;
  font-size: .82rem;
}

.top-nav {
  gap: 18px;
  font-size: .94rem;
  color: rgba(255, 255, 255, .82);
}

.top-nav a:hover,
.footer-links a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  margin-top: -65px;
  padding: 130px clamp(18px, 5vw, 76px) 72px;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(9, 21, 20, .88) 0%, rgba(9, 21, 20, .62) 44%, rgba(9, 21, 20, .2) 100%),
    linear-gradient(180deg, rgba(9, 21, 20, .3), rgba(9, 21, 20, .82));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding-top: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(2.4rem, 6vw, 5.75rem);
  line-height: .98;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 1.14rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--gold);
  color: #17100b;
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro-band,
.content-band {
  padding: 56px 0;
}

.intro-band {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.intro-grid,
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.intro-grid p,
.flow-grid p {
  margin: 0;
  color: var(--muted);
}

.categories-section {
  padding: 70px 0;
}

.section-heading {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

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

.category-card {
  display: grid;
  min-height: 202px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(45, 36, 24, .06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(181, 122, 43, .46);
  box-shadow: var(--shadow);
}

.category-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(181, 122, 43, .14);
  color: var(--gold);
  font-weight: 900;
  font-size: .9rem;
}

.category-card h3 {
  margin: 18px 0 8px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.category-card p,
.prose-card p,
.prose-card li,
.article-content p,
.article-content li {
  color: var(--muted);
}

.category-link {
  align-self: end;
  margin-top: 18px;
  color: var(--red);
  font-weight: 800;
}

.content-band {
  background: #10201f;
  color: #fff;
}

.content-band p {
  color: rgba(255, 255, 255, .76);
}

.site-footer {
  padding: 26px 18px;
  text-align: center;
  background: #0b1514;
  color: rgba(255, 255, 255, .7);
}

.footer-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

.page-hero,
.category-hero {
  padding: 72px 0 52px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(16, 32, 31, .96), rgba(75, 45, 34, .88)),
    url("/assets/images/hero-primbon.jpg") center / cover;
}

.page-hero h1 {
  max-width: 860px;
  font-size: clamp(2.1rem, 5vw, 4.1rem);
  line-height: 1.04;
}

.page-hero p,
.category-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
}

.prose-page {
  padding: 54px 0 70px;
}

.prose-card,
.article-content,
.article-sidebar,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.prose-card {
  max-width: 880px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 8px 24px rgba(45, 36, 24, .06);
}

.prose-card h2,
.article-content h2 {
  margin-top: 34px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.prose-card h2:first-child,
.article-content h2:first-child {
  margin-top: 0;
}

.category-shell,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 38px;
  padding: 56px 0;
}

.category-main,
.article-content {
  min-width: 0;
}

.article-content {
  padding: clamp(24px, 4vw, 42px);
}

.side-panel,
.article-sidebar {
  align-self: start;
  padding: 22px;
}

.side-panel h2,
.article-sidebar h2 {
  font-size: 1.25rem;
}

.side-panel a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--teal);
  font-weight: 800;
}

.side-panel a:last-child {
  border-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, .78);
  font-size: .9rem;
}

.breadcrumb a {
  color: #fff;
  font-weight: 800;
}

.article-list {
  display: grid;
  gap: 16px;
  padding-left: 20px;
}

.article-list a {
  color: var(--teal);
  font-weight: 900;
}

.featured-article-list {
  display: grid;
  gap: 14px;
  padding-left: 0;
  list-style: none;
}

.featured-article-list li {
  padding: 16px;
  border: 1px solid rgba(181, 122, 43, .28);
  border-radius: 8px;
  background: #fffaf0;
}

.featured-article-list a {
  display: grid;
  gap: 6px;
  color: var(--teal);
}

.featured-article-list span {
  color: var(--red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.cluster-card {
  display: grid;
  gap: 6px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cluster-card strong {
  color: var(--teal);
  font-size: 1.02rem;
}

.cluster-card span {
  color: var(--muted);
  font-size: .95rem;
}

.faq-block {
  margin-top: 34px;
}

.faq-block details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.faq-block summary {
  cursor: pointer;
  color: var(--teal);
  font-weight: 900;
}

.faq-block p {
  margin: 10px 0 0;
}

.article-count {
  color: var(--muted);
  font-size: .95rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination-link,
.pagination-number,
.pagination-gap {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  background: #fff;
  color: var(--teal);
  font-weight: 900;
}

.pagination-link {
  min-width: 116px;
}

.pagination-number.active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.pagination-link.disabled,
.pagination-gap {
  color: var(--muted);
}

.pagination-link.disabled {
  opacity: .55;
}

.pagination-gap {
  min-width: 32px;
  border-color: transparent;
  background: transparent;
  padding-inline: 4px;
}

.disclaimer-box {
  margin: 0 0 24px;
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fff8eb;
}

.disclaimer-box p {
  margin: 0;
}

.related-links {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-date {
  font-size: .92rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  white-space: normal;
  font-size: .95rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.article-content th,
.article-content td {
  border: 1px solid #eadfcf;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.article-content th {
  background: #faf3e8;
  color: var(--ink);
  font-weight: 800;
}

.quick-summary {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 1px solid #eadfcf;
  border-radius: 8px;
  background: #fffaf3;
}

.quick-summary h2 {
  margin-top: 0;
}

.quick-summary dl {
  display: grid;
  gap: .75rem;
  margin: 0;
}

.quick-summary div {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: .75rem;
}

.quick-summary dt {
  font-weight: 800;
}

.quick-summary dd {
  margin: 0;
}

.sitemap-development-list span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
}

.hub-intro {
  color: var(--ink);
  font-size: 1.05rem;
}

.source-note {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.ebook-slot {
  margin: 28px 0;
  padding: 16px;
  border: 1px dashed rgba(181, 122, 43, .55);
  border-radius: 8px;
  background: #fff8eb;
}

.ebook-slot:first-child {
  margin-top: 0;
}

.ebook-slot-heading {
  margin-bottom: 10px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ebook-list {
  display: grid;
  gap: 12px;
}

.ebook-ad {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: #fffdf8;
  border: 1px solid rgba(222, 214, 200, .9);
}

.ebook-ad h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.ebook-ad p {
  margin: 6px 0 0;
  color: var(--muted);
}

.ebook-label {
  margin: 0;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ebook-slot-compact {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .hero {
    min-height: 640px;
  }

  .intro-grid,
  .flow-grid,
  .category-shell,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cluster-grid {
    grid-template-columns: 1fr;
  }
}

.dream-import-page .article-hero h1,
.dream-import-page .breadcrumb { overflow-wrap: anywhere; }

@media (max-width: 560px) {
  .hero {
    min-height: 620px;
    padding-top: 122px;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 174px;
  }

  .quick-summary div {
    grid-template-columns: 1fr;
  }
}

/* Brand tokens and shared styles are copied from the verified main checkout. */
a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #b57a2b;outline-offset:5px}
.skip-link{position:fixed;left:18px;top:-100px;z-index:100;padding:12px;background:#fff;color:#123b3a}.skip-link:focus{top:12px}
.site-header{flex-wrap:wrap}.brand{white-space:nowrap}.top-nav a{padding-block:8px}.top-nav a[aria-current]{color:#fff;border-bottom:2px solid #b57a2b}
.menu-toggle{display:none;font:inherit;border:1px solid #ffffff55;border-radius:6px;color:#fff;background:transparent;padding:8px 12px;cursor:pointer}.menu-toggle[hidden]{display:none}
.breadcrumb ol{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}.breadcrumb li{display:flex;gap:8px}
.page-hero .eyebrow{color:#e0b77c;margin-top:24px}.page-hero .hero-note{font-size:1rem;max-width:620px;margin-bottom:26px}.page-hero .button{gap:20px}
.intro-second{margin-top:16px!important}.reading-section{padding-block:58px}.article-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.reading-card{padding:28px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}.reading-card h3{font:700 1.6rem/1.25 Georgia,serif;margin:10px 0}.reading-card p{color:var(--muted)}.reading-card .eyebrow{color:var(--red)}.reading-card .category-link{display:inline-block}
.catalog-note{border-left:3px solid var(--gold);padding:18px 22px;margin-top:28px;background:#f2ebde}.catalog-note p{margin:6px 0;color:var(--muted)}
.principles{background:var(--surface);padding:50px 0;border-block:1px solid var(--line)}.principle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px;margin-top:30px}.principle-grid h3{margin-bottom:8px}.principle-grid p{color:var(--muted);margin:0}.text-link{color:var(--red);font-weight:700}
.faq-section{padding-bottom:64px}.faq-block{max-width:820px;margin-top:0}.faq-block h2{margin-bottom:22px}.faq-block p{color:var(--muted)}.category-card p{margin:0}
.article-content a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}.article-content h2{line-height:1.3}.article-content h3{margin-top:28px}.article-content p,.article-content li{overflow-wrap:anywhere}.article-content h2:first-child{margin-top:0}.source-note h2{font-size:1.35rem}.article-sidebar p{color:var(--muted)}
.error-page{min-height:60vh;padding-block:80px}.error-page h1{font:700 3rem Georgia,serif}
@media(max-width:860px){.site-header{flex-direction:row;align-items:center;gap:14px}.menu-toggle:not([hidden]){display:inline-flex;gap:8px}.top-nav{flex-wrap:wrap;overflow:visible;gap:8px 20px}.site-header.nav-ready .top-nav{display:none}.site-header.nav-ready.is-open .top-nav{display:flex}.section-heading{gap:16px}.principle-grid{gap:22px}.article-cards{grid-template-columns:1fr}}
@media(max-width:560px){.principle-grid{grid-template-columns:1fr}.page-hero{padding-block:38px}.page-hero h1{font-size:3rem}.reading-section,.categories-section{padding-block:40px}.reading-card{padding:22px}.brand{font-size:.95rem}.site-header{padding:12px 18px}.section-inner{width:calc(100% - 36px)}.top-nav a{min-height:44px;display:flex;align-items:center}.intro-band{padding-block:38px}.article-layout{gap:24px;padding-block:30px}.article-content{padding:22px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
