:root {
  --forest: #073c33;
  --forest-deep: #042a24;
  --emerald: #0b6553;
  --mint: #dcece6;
  --gold: #d0a856;
  --gold-soft: #f1e3bf;
  --ink: #14201d;
  --muted: #60706a;
  --paper: #fbfcfb;
  --line: rgba(7, 60, 51, .14);
  --shadow: 0 28px 70px rgba(3, 41, 34, .15);
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -80px; padding: 10px 14px; color: white; background: var(--forest); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.portal-header { position: absolute; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; width: min(1220px, calc(100% - 48px)); min-height: 86px; margin: 0 auto; color: white; border-bottom: 1px solid rgba(255,255,255,.18); }
.portal-brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.portal-brand > span:last-child { display: grid; line-height: 1.03; }
.portal-brand strong { font-size: 1rem; letter-spacing: .01em; }
.portal-brand small { margin-top: 4px; opacity: .68; font-size: .75rem; letter-spacing: .06em; }
.brand-monogram { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.42); border-radius: 13px; color: var(--forest-deep); background: var(--gold); font-weight: 850; letter-spacing: -.05em; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.portal-nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-size: .87rem; }
.portal-nav a { text-decoration: none; opacity: .8; }
.portal-nav a:hover, .portal-nav a:focus-visible { opacity: 1; }
.portal-nav .nav-platform { padding: 10px 14px; border: 1px solid rgba(255,255,255,.34); border-radius: 10px; opacity: 1; font-weight: 700; }

.hero { position: relative; isolation: isolate; min-height: 760px; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(480px,.98fr); align-items: center; gap: clamp(28px, 6vw, 90px); padding: 150px max(24px, calc((100vw - 1220px)/2)) 88px; overflow: hidden; color: white; background: radial-gradient(circle at 82% 18%, rgba(35,138,111,.5), transparent 34%), radial-gradient(circle at 12% 100%, rgba(199,155,59,.18), transparent 34%), linear-gradient(135deg, var(--forest-deep), var(--forest) 58%, #0b5547); }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, transparent, black); }
.eyebrow { margin: 0 0 18px; color: var(--gold); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 750px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6.4vw, 6.5rem); font-weight: 500; letter-spacing: -.055em; line-height: .94; text-wrap: balance; }
.hero-intro { max-width: 680px; margin: 30px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 20px; border-radius: 11px; font-size: .88rem; font-weight: 750; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: var(--forest-deep); background: var(--gold); box-shadow: 0 14px 36px rgba(0,0,0,.2); }
.button.primary:hover { background: #dfbd75; }
.button.secondary { color: white; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.button.light { color: var(--forest-deep); background: white; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 35px; }
.hero-proof span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.67); font-size: .72rem; }

.hero-library { position: relative; min-height: 520px; perspective: 1200px; }
.hero-glow { position: absolute; inset: 13% 5% 2%; border-radius: 50%; background: rgba(208,168,86,.26); filter: blur(55px); }
.cover { position: absolute; top: 28px; width: clamp(190px, 19vw, 270px); margin: 0; border-radius: 7px; overflow: hidden; box-shadow: 0 35px 70px rgba(0,0,0,.42); transform-origin: center bottom; }
.cover img { width: 100%; aspect-ratio: 2 / 2.86; object-fit: cover; }
.cover-left { left: 2%; transform: rotate(-9deg) translateY(34px); }
.cover-center { z-index: 2; left: 50%; transform: translateX(-50%) translateY(-7px); }
.cover-right { right: 2%; transform: rotate(9deg) translateY(34px); }
.collection-note { position: absolute; z-index: 3; left: 50%; bottom: 0; width: min(310px, 80%); margin: 0; padding: 14px 18px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.2); border-radius: 13px; text-align: center; background: rgba(4,42,36,.82); backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0,0,0,.24); }
.collection-note strong, .collection-note span { display: block; }
.collection-note strong { color: var(--gold-soft); font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; }
.collection-note span { margin-top: 4px; color: rgba(255,255,255,.68); font-size: .72rem; }

.purpose-section, .books-section, .platform-callout, .portal-footer { width: min(1220px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
.purpose-section { display: grid; grid-template-columns: .8fr 1.8fr; gap: 64px; padding: 100px 0 78px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.25rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; text-wrap: balance; }
.section-heading.compact h2 { font-size: clamp(2rem, 3vw, 3rem); }
.section-heading .eyebrow { color: var(--emerald); }
.purpose-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.purpose-grid article { padding-top: 18px; border-top: 2px solid var(--forest); }
.purpose-grid span { color: var(--gold); font-weight: 850; font-size: .72rem; }
.purpose-grid h3 { margin: 16px 0 9px; font-size: 1.05rem; }
.purpose-grid p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

.books-section { padding: 100px 0 110px; }
.books-section > .section-heading { display: grid; grid-template-columns: 1.25fr .75fr; align-items: end; gap: 60px; }
.books-section > .section-heading > p { margin: 0 0 6px; color: var(--muted); font-size: .97rem; line-height: 1.7; }
.series-title { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 70px 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.series-title span { font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; }
.series-title p { margin: 0; color: var(--muted); font-size: .78rem; }
.series-title.second { margin-top: 86px; }
.book-grid { display: grid; gap: 22px; }
.book-grid.trilogy { grid-template-columns: repeat(3,minmax(0,1fr)); }
.book-grid.complementary { grid-template-columns: repeat(4,minmax(0,1fr)); }
.book-card { min-width: 0; height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 30px rgba(7,60,51,.055); transition: transform .2s ease, box-shadow .2s ease; }
.book-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.book-card > img { width: 100%; aspect-ratio: 2 / 2.85; object-fit: cover; object-position: center top; background: var(--forest-deep); }
.book-copy { padding: 22px; }
.book-kicker { margin: 0 0 9px !important; color: var(--emerald) !important; font-size: .67rem !important; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.book-copy h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.08; }
.book-copy > p { margin: 13px 0 0; color: var(--muted); font-size: .84rem; line-height: 1.62; }
.book-copy details { margin-top: 17px; border-top: 1px solid var(--line); }
.book-copy summary { padding-top: 13px; color: var(--forest); cursor: pointer; font-size: .78rem; font-weight: 750; }
.book-copy details p { margin: 10px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.book-sales-links { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem; }
.book-sales-link { border: 1px solid rgba(7,60,51,.2); border-radius: 999px; color: var(--forest); font-size: .82rem; font-weight: 700; padding: .5rem .8rem; text-decoration: none; }
.book-sales-link:hover, .book-sales-link:focus-visible { background: var(--mint-soft); border-color: var(--forest); }
.portal-admin-link { color: var(--gold) !important; font-weight: 750; }

.platform-callout { min-height: 300px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; margin-bottom: 92px; padding: clamp(34px, 6vw, 70px); overflow: hidden; border-radius: 24px; color: white; background: radial-gradient(circle at 85% 0, rgba(208,168,86,.24), transparent 38%), var(--forest); box-shadow: var(--shadow); }
.platform-callout h2 { max-width: 750px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.platform-callout p:not(.eyebrow) { max-width: 720px; margin: 18px 0 0; color: rgba(255,255,255,.7); line-height: 1.65; }
.portal-footer { min-height: 130px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 48px; padding: 30px 0; border-top: 1px solid var(--line); }
.footer-brand { color: var(--forest); }
.footer-brand .brand-monogram { color: white; background: var(--forest); }
.portal-footer p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.portal-footer > a:last-child { color: var(--forest); font-size: .8rem; font-weight: 750; text-decoration: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 145px; }
  .hero-copy { max-width: 820px; }
  .hero-library { width: min(670px, 100%); margin: 10px auto 0; }
  .book-grid.complementary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .portal-header { width: min(100% - 32px, 1220px); min-height: 76px; }
  .portal-nav > a:not(.nav-platform) { display: none; }
  .portal-nav .nav-platform { padding: 9px 11px; font-size: .74rem; }
  .hero { padding: 125px 20px 66px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.1rem); }
  .hero-library { min-height: 400px; }
  .cover { width: clamp(145px, 38vw, 220px); }
  .cover-left { left: -2%; }
  .cover-right { right: -2%; }
  .purpose-section, .books-section, .platform-callout, .portal-footer { width: min(100% - 32px, 1220px); }
  .purpose-section { grid-template-columns: 1fr; gap: 38px; padding: 72px 0 58px; }
  .purpose-grid { grid-template-columns: 1fr; gap: 25px; }
  .books-section { padding: 72px 0 82px; }
  .books-section > .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .book-grid.trilogy, .book-grid.complementary { grid-template-columns: 1fr; }
  .book-card { grid-template-columns: minmax(120px, 38%) 1fr; grid-template-rows: 1fr; }
  .book-card > img { height: 100%; min-height: 290px; aspect-ratio: auto; }
  .book-copy { padding: 20px; }
  .series-title { align-items: flex-end; }
  .platform-callout { grid-template-columns: 1fr; gap: 28px; margin-bottom: 60px; }
  .platform-callout .button { width: 100%; }
  .portal-footer { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 500px) {
  .portal-brand small { display: none; }
  .hero-actions .button { width: 100%; }
  .hero-library { min-height: 330px; }
  .cover { width: 42vw; }
  .collection-note { bottom: -5px; }
  .book-card { grid-template-columns: 1fr; }
  .book-card > img { max-height: none; aspect-ratio: 2 / 2.85; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .book-card { transition: none; }
}
