:root {
  --ink: #243142;
  --muted: #647184;
  --line: #d9dee7;
  --paper: #fbfaf7;
  --paper-2: #f3efe8;
  --white: #ffffff;
  --navy: #22324a;
  --orange: #d86c2f;
  --red: #d23c47;
  --green: #3e8f58;
  --gold: #b7894a;
  --shadow: 0 18px 55px rgba(36, 49, 66, .12);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(217, 222, 231, .75);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  font-size: 1.18rem;
  color: var(--navy);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 650;
}
.site-nav a:hover,
.site-nav a.active { color: var(--ink); }
.site-nav a.button {
  color: var(--white);
  opacity: 1;
}
.site-nav a.button:hover {
  color: var(--white);
}
.nav-toggle { display: none; }

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--white);
  background: var(--navy);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(34, 50, 74, .18); }
.button.secondary { background: transparent; color: var(--navy); }
.button.ghost { border-color: var(--line); background: var(--white); color: var(--navy); }
.button.small { padding: 9px 14px; font-size: .9rem; }
.button.orange { background: var(--orange); border-color: var(--orange); }
.button.red { background: var(--red); border-color: var(--red); }
.button.green { background: var(--green); border-color: var(--green); }

main { overflow: hidden; }
.section { padding: 78px 22px; }
.section.compact { padding: 46px 22px; }
.container { max-width: var(--max); margin: 0 auto; }
.narrow { max-width: 820px; }
.kicker {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  margin: 0 0 12px;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  color: var(--navy);
}
h1 { font-size: clamp(2.65rem, 6vw, 5.25rem); margin: 0 0 18px; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); margin: 0 0 18px; }
h3 { font-size: 1.45rem; margin: 0 0 10px; }
p { margin-top: 0; }
.lede { font-size: clamp(1.12rem, 2.1vw, 1.38rem); color: #3f4d60; }
.muted { color: var(--muted); }

.hero {
  padding: 72px 22px 54px;
  background:
    radial-gradient(circle at 20% 15%, rgba(216,108,47,.10), transparent 30%),
    radial-gradient(circle at 80% 28%, rgba(62,143,88,.10), transparent 35%),
    linear-gradient(180deg, var(--paper), #f6f2eb);
}
.hero-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, .94fr);
  gap: 48px;
  align-items: center;
}
.hero h1 span { display: block; }
.hero-subtitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.22;
  color: #46546a;
  margin: 0 0 22px;
}
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-visual { filter: drop-shadow(var(--shadow)); }
.context-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .95rem;
}
.context-line::before {
  content: "";
  width: 42px;
  height: 1px;
  background: var(--line);
}

.bg-light { background: #fffdf9; }
.bg-cream { background: var(--paper-2); }
.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: center;
}
.card, .book-card, .author-card, .call-card, .panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(36, 49, 66, .06);
}
.feature-card { padding: 24px; align-self: start; }
.cover-frame {
  background: #f6f1ea;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid #e5ded4;
}
.book-cover { display: block; width: min(360px, 100%); margin: 0 auto; border-radius: 10px; box-shadow: var(--shadow); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cards { margin-top: 28px; }
.call-card, .book-card, .author-card { padding: 24px; position: relative; }
.book-card { display: flex; flex-direction: column; gap: 10px; }
.book-card .actions { margin-top: auto; }
.status, .tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 8px;
  padding: 5px 9px;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #f2f4f7;
  color: var(--muted);
}
.tag.orange { background: rgba(216,108,47,.12); color: #944616; }
.tag.red { background: rgba(210,60,71,.12); color: #9d2630; }
.tag.green { background: rgba(62,143,88,.13); color: #286a3e; }
.rule { border-top: 1px solid var(--line); margin: 30px 0; }

.page-hero {
  padding: 70px 22px 40px;
  background: linear-gradient(180deg, #f7f3ed, var(--paper));
}
.page-hero .container { max-width: var(--max); }
.breadcrumb { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.breadcrumb a { text-decoration: none; color: var(--navy); font-weight: 700; }
.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.meta-list li {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(217, 222, 231, .82);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
}

.details-list { display: grid; gap: 14px; margin-top: 28px; }
details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}
summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  color: var(--navy);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-size: 1.4rem; line-height: 1; color: var(--gold); }
details[open] summary::after { content: "–"; }
.detail-body { padding: 0 20px 20px; color: #4d5a6c; }
.detail-meta { color: var(--muted); font-size: .94rem; margin-bottom: 8px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}
.filter-button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 750;
  cursor: pointer;
}
.filter-button.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.author-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.author-card { min-height: 210px; display: flex; flex-direction: column; }
.author-card h3 { font-size: 1.24rem; }
.author-card .chapter-link { margin-top: auto; font-weight: 800; color: var(--navy); text-decoration: none; }
.author-card .chapter-link:hover { text-decoration: underline; }
.empty-state {
  margin-top: 24px;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
}
.empty-state h3 { margin-bottom: 8px; }
.empty-state.hidden { display: none !important; }
.hidden { display: none !important; }

.form-panel { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field.full { grid-column: 1 / -1; }
label { display: block; font-weight: 800; color: var(--navy); margin-bottom: 7px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 160px; resize: vertical; }

.footer {
  border-top: 1px solid var(--line);
  background: #1f2d3f;
  color: rgba(255,255,255,.82);
  padding: 44px 22px 24px;
}
.footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, .7fr);
  gap: 28px;
}
.footer h2, .footer h3 { color: #fff; margin-top: 0; }
.footer h2 { font-size: 1.45rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-note {
  max-width: var(--max);
  margin: 34px auto 0;
  border-top: 1px solid rgba(255,255,255,.16);
  padding-top: 18px;
  color: rgba(255,255,255,.62);
  font-size: .9rem;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 10px;
    padding: 8px 10px;
    color: var(--navy);
    font-weight: 800;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 65px;
    left: 22px;
    right: 22px;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav .button { width: 100%; }
  .hero-grid, .split, .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section { padding: 56px 18px; }
  .hero, .page-hero { padding-left: 18px; padding-right: 18px; }
  .header-inner { padding-left: 18px; padding-right: 18px; }
  .wordmark { font-size: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .author-grid, .form-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.65rem; }
}
