:root {
  color-scheme: light;
  --emerald: #064e3b;
  --emerald-deep: #04392c;
  --emerald-soft: #eaf1ed;
  --gold: #d4af37;
  --gold-light: #e8d79c;
  --ink: #1f2c28;
  --muted: #65716b;
  --line: #dce3df;
  --paper: #ffffff;
  --mist: #f4f6f4;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Montserrat", Arial, sans-serif;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

.container {
  width: calc(100% - 36px);
  max-width: var(--content);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 20;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 4px;
  background: var(--paper);
  color: var(--emerald);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #edf0ee;
  background: var(--paper);
}

.header-inner {
  display: grid;
  gap: 0;
  padding-top: 12px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.75);
  border-radius: 50%;
  color: var(--gold);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.brand-copy > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.52rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  border-top: 1px solid #edf0ee;
}

.main-nav a {
  position: relative;
  padding: 10px 2px 12px;
  color: #4f5c56;
  font-size: clamp(0.6rem, 2.8vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold);
  content: "";
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  color: var(--emerald);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  overflow: hidden;
  align-items: flex-start;
  background-color: var(--emerald-deep);
  background-image: linear-gradient(90deg, rgba(3, 34, 26, 0.9) 0%, rgba(4, 48, 36, 0.72) 100%), url("/manus-storage/islamic-architecture_cada8afc.jpg"), url("assets/islamic-architecture.jpg");
  background-position: center, 55% center, 55% center;
  background-size: cover;
  color: var(--paper);
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, transparent 0 41px, rgba(255, 255, 255, 0.025) 42px 43px, transparent 44px 82px);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: 56px;
  width: 142px;
  height: 142px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-top: 75px;
  padding-bottom: 74px;
}

.hero-copy {
  max-width: 730px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--emerald);
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
}

.eyebrow--light {
  color: #e9e2c9;
}

.eyebrow-mark {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
}

.hero h1,
.page-intro h1,
.about-heading h2,
.section-heading h2,
.closing-inner h2,
.curriculum-cta h2,
.library-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(2.4rem, 10vw, 4rem);
}

.hero h1 em,
.page-intro h1 em,
.about-heading h2 em,
.section-heading h2 em,
.closing-inner h2 em,
.curriculum-cta h2 em,
.library-heading h2 em {
  color: var(--gold-light);
  font-weight: 500;
}

.hero-lead {
  max-width: 550px;
  margin: 19px 0 0;
  color: rgba(255, 255, 255, 0.83);
  font-size: 0.83rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 27px;
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-align: center;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.text-link:focus-visible,
.back-top:focus-visible,
.footer-brand:focus-visible,
.subject-card:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.button--gold {
  background: var(--gold);
  color: #17231d;
}

.button--gold:hover {
  background: #e1c456;
}

.button--outline {
  border-color: rgba(232, 215, 156, 0.65);
  color: var(--paper);
}

.button--outline:hover {
  background: var(--paper);
  color: var(--emerald);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--emerald);
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: none;
}

.text-link span {
  color: #ad8d23;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link--light {
  color: var(--paper);
}

.text-link--light span {
  color: var(--gold-light);
}

.hero-note {
  display: none;
}

.hero-index {
  position: absolute;
  right: 0;
  bottom: 42px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.58rem;
  letter-spacing: 0.17em;
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 11px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
}

.section-space {
  padding-top: 68px;
  padding-bottom: 71px;
}

.about-section {
  background: var(--paper);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 20px;
}

.about-heading h2,
.section-heading h2,
.library-heading h2 {
  color: var(--emerald);
  font-size: clamp(2.05rem, 9vw, 2.9rem);
}

.about-heading h2 em,
.section-heading h2 em,
.library-heading h2 em {
  color: #9a7b1b;
}

.about-copy p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.9;
}

.about-copy .lead-copy {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
}

.about-copy .text-link {
  margin-top: 5px;
}

.about-seal {
  display: none;
}

.subjects-section {
  background: var(--mist);
}

.section-heading,
.library-heading {
  display: block;
  margin-bottom: 28px;
}

.section-aside {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.7;
}

.subject-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.subject-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 21px 22px 29px;
  border: 1px solid #e1e7e3;
  background: var(--paper);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  border-color: #d8c26a;
  box-shadow: 0 14px 35px rgba(12, 45, 32, 0.06);
}

.subject-number {
  position: absolute;
  top: 20px;
  right: 21px;
  color: #a9b5ae;
  font-size: 0.61rem;
  letter-spacing: 0.12em;
}

.subject-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid #e9e0bf;
  border-radius: 50%;
  color: #98791a;
}

.subject-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.subject-card h3 {
  margin: 0;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
}

.subject-card h3 span {
  display: block;
  color: #758078;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
}

.subject-card p {
  max-width: 340px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.8;
}

.card-arrow {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #a88924;
  font-size: 1.02rem;
}

.closing-band {
  padding: 49px 0;
  background: var(--emerald);
  color: var(--paper);
}

.closing-inner {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 24px;
}

.closing-inner h2,
.curriculum-cta h2 {
  font-size: clamp(1.9rem, 8vw, 2.7rem);
}

.closing-inner .eyebrow {
  margin-bottom: 12px;
}

.site-footer {
  background: #032f24;
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding-top: 20px;
  padding-bottom: 19px;
}

.footer-brand {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.footer-brand span {
  color: #c5d1ca;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0;
}

.footer-inner p {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  font-size: 0.61rem;
  text-align: left;
}

.back-top {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: #e4d18c;
  font-size: 0.66rem;
  text-decoration: none;
  white-space: nowrap;
}

.back-top span {
  margin-left: 5px;
}

.page-intro {
  position: relative;
  overflow: hidden;
  padding: 59px 0 48px;
  background: linear-gradient(110deg, #eff3f0 0%, #f5f6f3 60%, #edeadd 100%);
}

.page-intro--lessons {
  background: linear-gradient(110deg, #eff3f0 0%, #f6f7f4 66%, #f0eddf 100%);
}

.page-intro-inner {
  position: relative;
  z-index: 1;
}

.page-intro h1 {
  max-width: 550px;
  color: var(--emerald);
  font-size: clamp(2.65rem, 11vw, 4rem);
}

.page-intro h1 em {
  color: #9a7b1b;
}

.page-lead {
  max-width: 600px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #69756e;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.meta-divider {
  width: 22px;
  height: 1px;
  background: #c2a436;
}

.intro-ornament {
  position: absolute;
  right: 2%;
  bottom: -22px;
  color: rgba(6, 78, 59, 0.065);
  font-family: var(--serif);
  font-size: 6rem;
  line-height: 1;
}

.curriculum-section,
.library-section {
  background: var(--paper);
}

.curriculum-container {
  max-width: 930px;
}

.curriculum-topline {
  display: flex;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
  color: #87938c;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.module-list {
  position: relative;
}

.module-list::before {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: 22px;
  width: 1px;
  background: #d9dfdb;
  content: "";
}

.module-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 15px;
  padding: 29px 0 31px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 28px;
}

.module-index {
  position: relative;
  z-index: 1;
  width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.module-index span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d8c26a;
  border-radius: 50%;
  background: var(--paper);
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 1rem;
}

.module-index i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b69a33;
}

.module-content {
  min-width: 0;
  padding-top: 4px;
}

.module-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #76827b;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.module-tag {
  padding: 3px 6px;
  border: 1px solid #e5e8e4;
  color: #7f8a84;
  font-size: 0.46rem;
}

.module-content h2 {
  margin: 8px 0;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 1.46rem;
  font-weight: 600;
  line-height: 1.3;
}

.module-content p {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.85;
}

.module-topics {
  display: grid;
  gap: 5px;
  margin: 13px 0 0;
  padding: 0;
  color: #52625a;
  font-size: 0.62rem;
  list-style: none;
}

.module-topics li::before {
  margin-right: 7px;
  color: #b5962d;
  content: "—";
}

.module-mark {
  display: none;
}

.curriculum-cta {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 21px;
  margin-top: 39px;
  padding: 27px 22px;
  background: var(--emerald);
  color: var(--paper);
}

.curriculum-cta .eyebrow {
  margin-bottom: 10px;
  color: #e6dfc3;
}

.curriculum-cta h2 em {
  color: var(--gold-light);
}

.library-section {
  background: #fbfcfb;
}

.library-heading {
  margin-bottom: 25px;
}

.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.book-card {
  min-width: 0;
}

.book-cover {
  position: relative;
  min-height: 265px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(30, 48, 39, 0.12);
  color: #f7f2e5;
  text-align: center;
  isolation: isolate;
}

.book-cover::before,
.book-cover::after {
  position: absolute;
  z-index: -1;
  content: "";
}

.book-cover::before {
  inset: 9px;
  border: 1px solid rgba(231, 214, 159, 0.64);
}

.book-cover::after {
  inset: 16px;
  border: 1px solid rgba(231, 214, 159, 0.24);
}

.book-cover--green {
  background: radial-gradient(ellipse at center, #1c7255 0%, #0b553f 58%, #06402f 100%);
}

.book-cover--sand {
  background: radial-gradient(ellipse at center, #8e7b49 0%, #75643b 58%, #554d32 100%);
}

.book-cover--blue {
  background: radial-gradient(ellipse at center, #315f62 0%, #214a4b 60%, #163c3d 100%);
}

.book-cover--olive {
  background: radial-gradient(ellipse at center, #64734e 0%, #4a5d3d 62%, #344830 100%);
}

.book-cover--charcoal {
  background: radial-gradient(ellipse at center, #53605a 0%, #36433d 58%, #23342e 100%);
}

.book-cover--rust {
  background: radial-gradient(ellipse at center, #8a6042 0%, #704b37 58%, #523a2f 100%);
}

.cover-label,
.cover-footer {
  max-width: calc(100% - 20px);
  color: rgba(249, 239, 208, 0.82);
  font-size: 0.43rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.cover-label {
  position: absolute;
  top: 24px;
}

.cover-ornament {
  margin: 2px 0 7px;
  color: var(--gold-light);
  font-size: 1.45rem;
}

.cover-title {
  max-width: 100%;
  color: #fff8e8;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 7vw, 1.8rem);
  line-height: 1.28;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
}

.cover-rule {
  width: 42px;
  height: 1px;
  margin: 15px 0 12px;
  background: var(--gold-light);
}

.book-info {
  padding: 12px 2px 0;
}

.book-category {
  color: #9b812b;
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.book-info h3 {
  margin: 5px 0 6px;
  color: var(--emerald);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
}

.book-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.8;
}

.library-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 30px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #718078;
  font-size: 0.65rem;
}

.library-note span {
  color: #a68a28;
}

@media (min-width: 390px) {
  .book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 27px 13px;
  }

  .book-cover {
    min-height: 226px;
    padding: 17px;
  }

  .cover-label {
    max-width: calc(100% - 28px);
  }

  .cover-title {
    font-size: clamp(1.08rem, 5vw, 1.55rem);
  }

  .book-category {
    font-size: 0.45rem;
    letter-spacing: 0.1em;
  }

  .book-info h3 {
    font-size: 1rem;
  }

  .book-info p {
    font-size: 0.65rem;
  }
}

@media (min-width: 701px) {
  .header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 0;
  }

  .brand {
    gap: 11px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-mark svg {
    width: 25px;
    height: 25px;
  }

  .brand-copy strong {
    font-size: 1.18rem;
  }

  .brand-copy > span {
    font-size: 0.58rem;
  }

  .main-nav {
    justify-content: flex-start;
    gap: clamp(16px, 3vw, 42px);
    margin-top: 0;
    border-top: 0;
  }

  .main-nav a {
    padding: 29px 0 27px;
    font-size: 0.75rem;
    letter-spacing: 0.035em;
  }

  .main-nav a::after {
    bottom: 18px;
  }

  .hero {
    min-height: 570px;
    align-items: center;
    background-image: linear-gradient(90deg, rgba(3, 34, 26, 0.94) 0%, rgba(4, 48, 36, 0.78) 47%, rgba(4, 45, 35, 0.34) 100%), url("/manus-storage/islamic-architecture_cada8afc.jpg"), url("assets/islamic-architecture.jpg");
    background-position: center, 58% 48%, 58% 48%;
  }

  .hero::after {
    right: 5.2%;
    bottom: 8%;
    width: 155px;
    height: 155px;
  }

  .hero-inner {
    padding-top: 65px;
    padding-bottom: 70px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.64rem;
    letter-spacing: 0.17em;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 7vw, 5.3rem);
  }

  .hero-lead {
    margin-top: 23px;
    font-size: 0.93rem;
  }

  .hero-actions {
    gap: 26px;
    margin-top: 34px;
  }

  .button {
    min-height: 52px;
    padding: 13px 21px;
    font-size: 0.72rem;
  }

  .hero-caption {
    padding-right: max(20px, calc((100% - var(--content)) / 2));
    padding-left: max(20px, calc((100% - var(--content)) / 2));
    font-size: 0.55rem;
    letter-spacing: 0.18em;
  }

  .hero-index {
    bottom: 6px;
  }

  .section-space {
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .about-layout {
    grid-template-columns: 0.9fr 1.35fr;
    gap: 34px;
  }

  .about-heading h2,
  .section-heading h2,
  .library-heading h2 {
    font-size: clamp(2.1rem, 4vw, 3.25rem);
  }

  .about-copy p {
    font-size: 0.84rem;
  }

  .about-copy .lead-copy {
    font-size: 1.22rem;
  }

  .section-heading,
  .library-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 39px;
  }

  .section-aside {
    margin: 0 0 3px;
    font-size: 0.73rem;
  }

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

  .subject-card {
    min-height: 292px;
    padding: 25px 25px 29px;
  }

  .subject-icon {
    margin-bottom: 24px;
  }

  .subject-card h3 {
    font-size: 1.42rem;
  }

  .subject-card p {
    max-width: 285px;
    font-size: 0.76rem;
  }

  .closing-band {
    padding: 66px 0;
  }

  .closing-inner {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 30px;
  }

  .closing-inner h2,
  .curriculum-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .footer-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .footer-inner p {
    grid-column: auto;
    grid-row: auto;
    text-align: center;
  }

  .back-top {
    grid-column: auto;
    grid-row: auto;
  }

  .page-intro {
    padding: 77px 0 65px;
  }

  .page-intro h1 {
    max-width: none;
    font-size: clamp(2.8rem, 7vw, 5.4rem);
  }

  .page-lead {
    font-size: 0.88rem;
  }

  .page-meta {
    gap: 15px;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }

  .meta-divider {
    width: 28px;
  }

  .intro-ornament {
    top: 50%;
    right: max(5%, calc((100% - var(--content)) / 2));
    bottom: auto;
    transform: translateY(-50%);
    font-size: clamp(5rem, 15vw, 12rem);
  }

  .curriculum-topline {
    font-size: 0.57rem;
  }

  .module-list::before {
    top: 48px;
    bottom: 48px;
    left: 32px;
  }

  .module-card {
    grid-template-columns: 66px minmax(0, 1fr) 20px;
    gap: 18px;
    padding: 38px 8px 40px 0;
  }

  .module-index {
    width: 66px;
  }

  .module-index span {
    width: 50px;
    height: 50px;
    font-size: 1.18rem;
  }

  .module-kicker {
    gap: 12px;
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .module-tag {
    padding: 4px 8px;
    font-size: 0.5rem;
  }

  .module-content h2 {
    margin: 10px 0;
    font-size: clamp(1.55rem, 3.6vw, 2.25rem);
  }

  .module-content p {
    font-size: 0.78rem;
  }

  .module-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 21px;
    margin-top: 19px;
    font-size: 0.66rem;
  }

  .module-mark {
    display: block;
    padding-top: 8px;
    color: #ad922f;
    font-size: 1.15rem;
  }

  .curriculum-cta {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    gap: 28px;
    margin-top: 59px;
    padding: 37px 39px;
  }

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

  .book-cover {
    min-height: 276px;
    padding: 24px;
  }

  .book-cover::before {
    inset: 12px;
  }

  .book-cover::after {
    inset: 21px;
  }

  .cover-label {
    top: 31px;
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }

  .cover-footer {
    font-size: 0.48rem;
    letter-spacing: 0.16em;
  }

  .cover-title {
    font-size: clamp(1.43rem, 2.5vw, 1.88rem);
  }

  .book-info {
    padding: 16px 2px 0;
  }

  .book-category {
    font-size: 0.54rem;
    letter-spacing: 0.14em;
  }

  .book-info h3 {
    font-size: 1.22rem;
  }

  .book-info p {
    font-size: 0.71rem;
  }

  .library-heading {
    margin-bottom: 37px;
  }

  .library-note {
    margin-top: 41px;
  }
}

@media (min-width: 901px) {
  .about-layout {
    grid-template-columns: 0.95fr 1.25fr 150px;
    gap: 42px;
  }

  .about-seal {
    width: 136px;
    height: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9c878;
    border-radius: 50%;
    color: #9b812c;
    outline: 1px solid #e8e0bd;
    outline-offset: 5px;
    text-align: center;
  }

  .about-seal svg {
    width: 48px;
    height: 48px;
    margin: 4px 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.1;
  }

  .seal-top,
  .seal-bottom {
    font-size: 0.48rem;
    letter-spacing: 0.13em;
  }

  .hero-note {
    position: absolute;
    right: 1%;
    bottom: 18%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.76);
    font-family: var(--serif);
    font-size: 0.84rem;
    font-style: italic;
    line-height: 1.35;
  }

  .hero-note-line {
    width: 37px;
    height: 1px;
    background: var(--gold);
  }
}

@media (min-width: 1400px) {
  .hero {
    min-height: 630px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
