.site-header {
  background: rgba(255, 250, 240, 0.94);
  border-bottom-color: rgba(108, 83, 39, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74) inset,
    0 8px 24px rgba(73, 52, 21, 0.05);
}

.header-inner {
  min-height: 72px;
}

.brand {
  gap: 13px;
}

.brand-mark {
  box-shadow: 0 10px 24px rgba(35, 66, 52, 0.17);
}

.brand strong {
  font-size: 17.5px;
}

.site-nav {
  padding-top: 2px;
}

.nav-link {
  min-width: 108px;
  min-height: 40px;
  color: #7e7568;
  font-size: 15px;
  font-weight: 720;
}

.nav-link.is-active {
  color: var(--ink);
  font-weight: 860;
}

.site-nav::before {
  background: rgba(108, 83, 39, 0.18);
}

.site-nav::after {
  height: 3px;
  background: linear-gradient(90deg, #8f6421, var(--gold), #d8bd78);
}

.hero {
  position: relative;
  min-height: clamp(450px, 54vh, 540px);
  isolation: isolate;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(167, 125, 45, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 250, 240, 0.98) 0%, rgba(255, 247, 232, 0.94) 46%, rgba(247, 228, 186, 0.54) 100%),
    radial-gradient(circle at 78% 42%, rgba(216, 189, 120, 0.34), transparent 35%),
    radial-gradient(circle at 8% 12%, rgba(35, 66, 52, 0.07), transparent 28%);
  box-shadow:
    0 28px 78px rgba(73, 52, 21, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 15px;
  z-index: -1;
  border: 1px solid rgba(167, 125, 45, 0.13);
  border-radius: 8px;
  pointer-events: none;
}

.hero::after {
  content: "+";
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  top: clamp(18px, 3vw, 34px);
  z-index: -1;
  color: rgba(167, 125, 45, 0.23);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 600;
  line-height: 1;
}

.hero-copy {
  max-width: 700px;
  padding-left: clamp(0px, 1vw, 10px);
}

.hero-copy .eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #9a7128;
}

.hero-copy h1 {
  max-width: 720px;
  color: #a77d2d;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

.lead {
  max-width: 655px;
  margin-top: 20px;
  color: #51493d;
}

.hero-note {
  max-width: 640px;
  margin-top: 18px;
  color: #5e5548;
  font-weight: 760;
}

.hero-actions {
  display: flex;
  margin-top: 26px;
}

.hero-actions .primary-action,
.hero-actions .secondary-action {
  min-width: 156px;
}

.primary-action {
  background: linear-gradient(180deg, #bc9240, #9f7327);
  border-color: rgba(143, 100, 33, 0.72);
  box-shadow: 0 14px 30px rgba(167, 125, 45, 0.2);
}

.primary-action:hover {
  background: linear-gradient(180deg, #a97d2c, #875f1f);
}

.secondary-action {
  background: rgba(255, 253, 248, 0.8);
  border-color: rgba(108, 83, 39, 0.18);
}

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

.book-showcase {
  position: relative;
  min-height: 330px;
  align-items: center;
}

.book-showcase::before {
  content: "";
  position: absolute;
  inset: 16px 0 10px 32px;
  border: 1px solid rgba(167, 125, 45, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.6), rgba(255, 244, 223, 0.36)),
    radial-gradient(circle at 56% 42%, rgba(216, 189, 120, 0.32), transparent 54%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.book-cover-stack {
  height: 326px;
  min-height: 326px;
}

.cover-frame {
  width: 56%;
  border: 1px solid rgba(108, 83, 39, 0.14);
  box-shadow:
    0 24px 52px rgba(73, 52, 21, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.cover-frame:first-child {
  right: 8px;
  top: 2px;
}

.cover-frame:last-child {
  left: 10px;
  bottom: 2px;
}

.cover-frame:first-child,
.cover-frame:last-child {
  transform: none;
}

.cover-frame:hover,
.cover-frame:first-child:hover,
.cover-frame:last-child:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 62px rgba(73, 52, 21, 0.24);
}

.home-intro {
  margin-top: 24px;
  padding: 4px 0 24px;
}

.section-block {
  margin-top: 34px;
  padding-top: 26px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: #61584b;
  font-size: 16.5px;
  line-height: 1.58;
}

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

.start-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 20px;
  border: 1px solid rgba(108, 83, 39, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.95), rgba(248, 238, 219, 0.82)),
    var(--panel);
  box-shadow:
    0 14px 34px rgba(73, 52, 21, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.start-index {
  display: inline-flex;
  min-width: 42px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(167, 125, 45, 0.22);
  border-radius: 999px;
  background: rgba(167, 125, 45, 0.12);
  color: #8f6421;
  font-size: 13px;
  font-weight: 850;
}

.start-card h3 {
  margin: 0;
  color: #5f574a;
  font-size: 22px;
  line-height: 1.18;
}

.start-card p {
  margin: 0;
  color: #5f574a;
  line-height: 1.55;
}

.start-card .secondary-action {
  margin-top: auto;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
}

.reading-path-section {
  max-width: 980px;
}

.reading-path {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(108, 83, 39, 0.14);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: 0 10px 24px rgba(73, 52, 21, 0.07);
}

.reading-step-number {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #bc9240, #9f7327);
  color: #fffaf0;
  font-size: 14px;
  font-weight: 850;
}

.reading-step-body {
  display: grid;
  gap: 8px;
}

.reading-step h3,
.reading-step p {
  margin: 0;
}

.reading-step h3 {
  color: #5f574a;
  font-size: 20px;
  line-height: 1.25;
}

.reading-step p {
  color: #5f574a;
  line-height: 1.55;
}

.reading-step .secondary-action {
  width: fit-content;
  margin-top: 4px;
}

.resource-card {
  border-color: rgba(108, 83, 39, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(248, 238, 219, 0.82)),
    var(--panel);
  box-shadow:
    0 16px 38px rgba(73, 52, 21, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.resource-card:hover {
  border-color: rgba(167, 125, 45, 0.38);
  box-shadow: 0 18px 42px rgba(73, 52, 21, 0.14);
}

.resource-card.is-primary-book {
  border-color: rgba(167, 125, 45, 0.44);
  background:
    linear-gradient(180deg, rgba(255, 250, 239, 0.98), rgba(244, 226, 194, 0.9)),
    var(--panel);
}

.resource-card.is-feature {
  min-height: 390px;
  padding: 10px 10px 15px;
}

#libraryGrid .resource-card {
  min-height: 392px;
  padding: 10px 10px 15px;
}

.resource-card.is-feature .thumb,
#libraryGrid .resource-card .thumb {
  height: 190px;
}

.thumb {
  border-color: rgba(108, 83, 39, 0.17);
  background: #f5ead8;
}

.thumb-pages,
.thumb-read {
  background: rgba(255, 250, 240, 0.74);
  border-color: rgba(255, 250, 240, 0.58);
}

.badge {
  color: #956b25;
  background: rgba(167, 125, 45, 0.14);
}

.card-body {
  gap: 11px;
}

.resource-card h3 {
  color: #5f574a;
}

.resource-card p {
  color: #5f574a;
}

.resource-card .card-guide {
  padding-left: 12px;
  border-left: 3px solid rgba(167, 125, 45, 0.44);
  color: #6b5d4a;
  font-size: 14.5px;
  font-weight: 650;
}

.card-actions .secondary-action {
  background: rgba(255, 253, 248, 0.86);
}

.library-search-panel {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 24px;
  padding: 18px;
  border-color: rgba(167, 125, 45, 0.2);
  background:
    linear-gradient(135deg, rgba(167, 125, 45, 0.12), rgba(35, 66, 52, 0.04)),
    rgba(255, 253, 248, 0.82);
}

.library-search-panel .search-box input {
  min-height: 52px;
  border-color: rgba(108, 83, 39, 0.2);
  background-color: #fffdf8;
  font-size: 16px;
}

.search-help {
  margin: 0;
  color: #61584b;
  font-size: 15.5px;
  line-height: 1.55;
}

.library-category-nav {
  margin-bottom: 18px;
  padding-bottom: 2px;
}

.library-category-nav::before {
  background: rgba(108, 83, 39, 0.18);
}

.library-category-nav::after {
  height: 3px;
  background: linear-gradient(90deg, #8f6421, var(--gold), #d8bd78);
}

.filter-button {
  min-height: 42px;
  padding: 9px 15px;
  color: #7f7568;
  font-size: 14.5px;
  font-weight: 700;
}

.filter-button.is-active {
  color: #1d2e23;
  font-weight: 850;
}

.library-section-intro {
  max-width: 820px;
  margin: 2px 0 18px;
  padding: 0 0 16px 18px;
  border-left: 3px solid rgba(167, 125, 45, 0.58);
  color: #5b5346;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.62;
}

.library-count {
  margin-bottom: 16px;
  color: #756b5d;
}

.home-contact {
  margin-top: 62px;
  padding-top: 42px;
}

.contact-layout {
  gap: 28px;
}

.contact-panel {
  padding-top: 2px;
}

.contact-panel h2 {
  color: #6a6256;
}

.contact-panel p:not(.eyebrow) {
  max-width: 520px;
}

.contact-form {
  padding: 20px;
  border-color: rgba(108, 83, 39, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(255, 247, 232, 0.76)),
    var(--panel);
  box-shadow:
    0 16px 38px rgba(73, 52, 21, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 253, 248, 0.92);
  border-color: rgba(108, 83, 39, 0.17);
}

@media (max-width: 1040px) {
  .hero {
    min-height: auto;
  }

  .hero-feature {
    min-height: 330px;
    max-width: 520px;
  }

  .book-cover-stack {
    height: 315px;
    min-height: 315px;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 26px 20px;
  }

  .home-intro,
  .contact-layout,
  .contact-heading {
    gap: 22px;
  }

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

@media (max-width: 560px) {
  .brand {
    max-width: 100%;
  }

  .site-nav {
    width: 100%;
  }

  .nav-link {
    min-width: 0;
    font-size: 13.5px;
    font-weight: 760;
  }

  .hero {
    padding: 20px 16px;
    border-radius: 8px;
  }

  .hero::before {
    inset: 10px;
  }

  .hero::after {
    display: none;
  }

  .hero-copy .eyebrow {
    margin-bottom: 12px;
  }

  .hero-copy h1 {
    white-space: normal;
  }

  .lead {
    margin-top: 18px;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .primary-action,
  .hero-actions .secondary-action,
  .primary-action,
  .secondary-action {
    min-width: 0;
  }

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

  .book-showcase {
    min-height: 232px;
  }

  .book-showcase::before {
    inset: 14px 8px 0;
  }

  .book-cover-stack {
    height: 230px;
    min-height: 230px;
  }

  .cover-frame {
    width: min(46%, 154px);
  }

  .cover-frame:first-child {
    right: 10px;
    top: 0;
  }

  .cover-frame:last-child {
    left: 10px;
    bottom: 0;
  }

  .home-intro {
    margin-top: 16px;
    padding-bottom: 18px;
  }

  .section-block {
    margin-top: 22px;
    padding-top: 18px;
  }

  .section-heading > p:not(.eyebrow) {
    font-size: 15.5px;
  }

  .start-card {
    min-height: 0;
    padding: 16px;
  }

  .start-card h3 {
    font-size: 19px;
  }

  .reading-step {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .reading-step-number {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .reading-step h3 {
    font-size: 18px;
  }

  .library-search-panel {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .filter-button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13.5px;
  }

  .library-section-intro {
    margin-bottom: 14px;
    padding-left: 14px;
    font-size: 15.5px;
    line-height: 1.55;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .resource-card.is-feature .thumb,
  #libraryGrid .resource-card .thumb {
    height: clamp(190px, 52vw, 250px);
  }

  .contact-form {
    padding: 16px;
  }
}
