:root {
  --ink: #10192c;
  --navy: #0b1530;
  --navy-2: #111f42;
  --paper: #f5f2e9;
  --paper-2: #ece7d9;
  --white: #fffdf8;
  --blue: #5b7cfa;
  --blue-2: #8ba2ff;
  --coral: #ef745d;
  --mint: #b7d7c2;
  --line: rgba(16,25,44,.13);
  --muted: #657087;
  --shadow: 0 28px 80px rgba(18, 29, 56, .16);
  --radius: 28px;
  --shell: min(1180px, calc(100vw - 40px));
}

* { 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.62; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: 12px; transform: translateY(-160%); padding: 9px 13px; background: white; border-radius: 10px; z-index: 100; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(18px); background: rgba(245,242,233,.82); border-bottom: 1px solid rgba(16,25,44,.08); }
.nav-wrap { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: var(--paper); }
.brand-mark svg { width: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: .96rem; letter-spacing: -.01em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .68rem; letter-spacing: .05em; }
.main-nav { display: flex; gap: 28px; font-size: .9rem; }
.main-nav a { position: relative; color: #28324a; }
.main-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-9px; height:2px; background:var(--ink); transition:.25s ease; }
.main-nav a:hover::after { right:0; }
.login-open { justify-self: end; }

.button { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--navy); box-shadow: 0 12px 28px rgba(11,21,48,.18); }
.button-soft { background: rgba(11,21,48,.08); }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button-light { background: var(--white); color: var(--navy); }
.button-full { width: 100%; }

.hero { display: grid; grid-template-columns: 1.13fr .87fr; gap: 60px; align-items: center; min-height: 720px; padding-block: 82px 70px; }
.eyebrow { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .72rem; color: #5d6680; }
.eyebrow.light { color: #aeb9d0; }
.hero h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.6rem, 7vw, 6.5rem); line-height: .91; letter-spacing: -.065em; font-weight: 500; }
.hero h1 em { color: var(--blue); font-weight: 500; }
.hero-lead { max-width: 680px; font-size: 1.08rem; color: #505a70; margin: 30px 0 0; }
.hero-actions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { margin-top: 54px; display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div { display: grid; gap: 1px; }
.hero-stats strong { font-size: 1.25rem; }
.hero-stats span { color: var(--muted); font-size: .78rem; }

.hero-card { overflow: hidden; border-radius: 34px; background: var(--white); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.8); transform: rotate(1.4deg); }
.hero-visual { position: relative; height: 370px; background: #d8ddff; overflow: hidden; }
.orb { position:absolute; border-radius:50%; filter: blur(2px); }
.orb-a { width: 290px; height: 290px; background:#ffb8a8; right:-40px; top:-70px; }
.orb-b { width: 240px; height: 240px; background:#a9d5c0; left:-90px; bottom:-70px; }
.stack { position:absolute; inset: 0; display:grid; place-items:center; transform: rotate(-4deg); }
.book { position:absolute; width: 185px; height: 255px; border-radius: 7px 14px 14px 7px; box-shadow: 0 24px 40px rgba(41,49,79,.22); border-left: 6px solid rgba(0,0,0,.09); display:flex; align-items:flex-end; padding:18px; font-family:Georgia,serif; font-size:1.15rem; }
.book span { writing-mode: vertical-rl; transform: rotate(180deg); }
.b1 { background:#f5df8c; transform: translate(-78px,10px) rotate(-9deg); }
.b2 { background:#111b38; color:white; transform: translate(4px,-5px) rotate(3deg); }
.b3 { background:#f47864; transform: translate(82px,21px) rotate(12deg); }
.hero-card-body { padding: 28px 30px 31px; }
.hero-card-body h2 { font-family: Georgia,serif; font-size: 2rem; line-height: 1.1; margin: 14px 0 12px; }
.hero-card-body p { color: var(--muted); margin: 0 0 15px; }
.hero-card-body a { font-weight: 800; }
.pill { display:inline-flex; align-items:center; min-height:26px; padding:0 10px; border-radius:999px; background:#e9ecff; color:#334788; font-size:.7rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.pill.pale { background:#f4f1e7; color:#5b6272; }

.ticker { overflow:hidden; border-block:1px solid var(--line); background:rgba(255,255,255,.3); }
.ticker-inner { width:var(--shell); margin:auto; min-height:58px; display:flex; align-items:center; justify-content:space-between; gap:20px; white-space:nowrap; font-size:.8rem; font-weight:700; color:#4f5970; }
.ticker i { width:4px; height:4px; background:var(--blue); border-radius:50%; }

.section { padding-block: 110px; }
.section-tint { background: var(--paper-2); }
.section-dark { background: var(--navy); color: white; }
.section-head { display:grid; grid-template-columns: 1fr .85fr; gap: 80px; align-items:end; margin-bottom: 46px; }
.section-head.compact { margin-bottom: 38px; }
.section h2 { margin:0; font-family:Georgia,serif; font-size:clamp(2.3rem,4vw,4.4rem); line-height:1; letter-spacing:-.04em; font-weight:500; }
.section-intro { margin:0; color:var(--muted); }

.filter-row { display:flex; gap:8px; margin-bottom:24px; flex-wrap:wrap; }
.chip { border:1px solid var(--line); background:transparent; padding:9px 14px; border-radius:999px; cursor:pointer; font-size:.82rem; font-weight:750; }
.chip.is-active { background:var(--navy); color:white; border-color:var(--navy); }
.book-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.book-card { background:rgba(255,255,255,.42); border:1px solid var(--line); border-radius:22px; padding:14px; transition:.25s ease; }
.book-card:hover { transform:translateY(-6px); background:var(--white); box-shadow:0 18px 40px rgba(11,21,48,.09); }
.book-card[hidden] { display:none; }
.cover { min-height:310px; border-radius:14px; padding:22px; display:flex; flex-direction:column; justify-content:space-between; font-family:Georgia,serif; font-size:1.7rem; line-height:1.06; box-shadow:inset 0 0 0 1px rgba(255,255,255,.3); }
.cover small { font-family:inherit; font-size:.75rem; text-transform:uppercase; letter-spacing:.1em; opacity:.72; }
.cover-one { background:#d8d8b4; }
.cover-two { background:#244855; color:#f8f4e8; }
.cover-three { background:#de765e; color:#24110c; }
.cover-four { background:#b7cde0; }
.book-meta { margin-top:14px; display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; }
.book-card h3 { margin:9px 0 5px; font-size:1.06rem; }
.book-card p { margin:0; color:var(--muted); font-size:.88rem; }

.event-list { display:grid; gap:10px; }
.event-card { display:grid; grid-template-columns:92px 1fr auto; gap:28px; align-items:center; padding:22px 24px; border-radius:20px; background:rgba(255,255,255,.56); border:1px solid rgba(16,25,44,.08); }
.event-card time { display:grid; place-items:center; width:74px; height:74px; border-radius:18px; background:var(--navy); color:white; line-height:1; }
.event-card time b { font-family:Georgia,serif; font-size:1.8rem; font-weight:500; }
.event-card time span { font-size:.75rem; color:#c8d0e1; }
.event-card h3 { margin:8px 0 3px; font-size:1.07rem; }
.event-card p { margin:0; color:var(--muted); font-size:.9rem; }
.event-time { align-self:start; color:#60697d; font-weight:800; font-size:.82rem; }

.resource-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.resource-card { border-top:1px solid var(--ink); padding:24px 4px 0; }
.resource-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:var(--navy); color:white; font-size:.72rem; font-weight:800; }
.resource-card h3 { font-family:Georgia,serif; font-size:1.7rem; margin:24px 0 8px; font-weight:500; }
.resource-card p { color:var(--muted); }
.resource-card a { font-weight:800; font-size:.87rem; }

.editorial { display:grid; grid-template-columns:.8fr 1.2fr; gap:90px; border-top:1px solid var(--line); }
.editorial-aside { position:sticky; top:120px; align-self:start; }
.big-quote { font-family:Georgia,serif; font-size:2rem; line-height:1.22; letter-spacing:-.025em; }
.editorial-copy h2 { margin-bottom:30px; }
.editorial-copy p { color:#505a70; font-size:1.02rem; }

.split-info { display:grid; grid-template-columns:1.1fr .9fr; gap:100px; align-items:start; }
.section-dark h2 { color:white; max-width:760px; }
.section-dark p { color:#b9c3d6; }
.hours-card { background:#162548; padding:34px; border-radius:28px; border:1px solid rgba(255,255,255,.1); }
.hours-card h3 { margin-top:0; font-family:Georgia,serif; font-size:2rem; font-weight:500; }
.hours-card dl { margin:0; }
.hours-card dl div { display:flex; justify-content:space-between; gap:24px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.1); }
.hours-card dt { color:#c1cbde; }
.hours-card dd { margin:0; font-weight:800; }
.hours-card hr { border:0; border-top:1px solid rgba(255,255,255,.1); margin:24px 0; }

.longform { display:grid; grid-template-columns:.55fr 1.45fr; gap:80px; }
.longform-title { position:sticky; top:120px; align-self:start; }
.columns { columns:2; column-gap:44px; }
.columns > div { break-inside:avoid; margin-bottom:42px; }
.columns h3 { margin:0 0 10px; font-family:Georgia,serif; font-size:1.55rem; font-weight:500; }
.columns p { color:#566077; font-size:.95rem; }

.faq-layout { display:grid; grid-template-columns:.7fr 1.3fr; gap:90px; }
.faq details { border-top:1px solid rgba(16,25,44,.14); padding:18px 0; }
.faq details:last-child { border-bottom:1px solid rgba(16,25,44,.14); }
.faq summary { cursor:pointer; font-weight:800; list-style:none; padding-right:36px; position:relative; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; position:absolute; right:3px; top:-2px; font-size:1.3rem; color:#6f7890; }
.faq details[open] summary::after { content:"–"; }
.faq p { color:var(--muted); margin-bottom:0; }

.contact { display:block; }
.contact-card { min-height:0; max-width:920px; margin:0 auto; border-radius:28px; overflow:hidden; background:var(--white); padding:42px; border:1px solid var(--line); }
.contact-card h2 { font-size:3rem; }
.contact-card > p { color:var(--muted); }
.contact-points { display:grid; grid-template-columns:1fr 1fr; gap:8px 20px; margin-top:30px; padding-top:24px; border-top:1px solid var(--line); font-size:.85rem; }
.contact-points span { color:var(--muted); }
.site-footer { background:#081126; color:#c8d0df; padding:70px 0 24px; }
.footer-grid { display:grid; grid-template-columns:1.4fr .6fr .6fr; gap:70px; }
.brand-footer { color:white; }
.brand-footer .brand-mark { background:#21345e; }
.brand-footer small { color:#aeb8cc; }
.footer-grid > div:first-child p { max-width:430px; color:#96a3ba; }
.footer-grid h3 { color:white; margin:0 0 14px; font-size:.85rem; }
.footer-grid > div:not(:first-child) { display:flex; flex-direction:column; gap:8px; font-size:.84rem; }
.footer-button { border:0; background:none; color:inherit; padding:0; text-align:left; cursor:pointer; }
.footer-bottom { margin-top:50px; padding-top:20px; border-top:1px solid rgba(255,255,255,.1); display:flex; justify-content:space-between; gap:20px; font-size:.72rem; color:#7f8ca3; }

.login-dialog { width:min(920px,calc(100vw - 28px)); padding:0; border:0; border-radius:28px; box-shadow:0 40px 130px rgba(4,8,20,.45); background:var(--paper); color:var(--ink); }
.login-dialog::backdrop { background:rgba(4,9,20,.65); backdrop-filter:blur(8px); }
.login-shell { display:grid; grid-template-columns:.9fr 1.1fr; min-height:590px; }
.login-art { position:relative; overflow:hidden; padding:38px; background:var(--navy); color:white; display:flex; flex-direction:column; justify-content:flex-end; }
.login-art::before, .login-art::after { content:""; position:absolute; border-radius:50%; filter:blur(2px); }
.login-art::before { width:340px; height:340px; background:#5877f7; right:-150px; top:-80px; opacity:.78; }
.login-art::after { width:280px; height:280px; background:#ee765f; left:-140px; bottom:-80px; opacity:.72; }
.login-art span { position:relative; z-index:1; display:grid; place-items:center; width:86px; height:86px; border:1px solid rgba(255,255,255,.2); border-radius:24px; font-family:Georgia,serif; font-size:2.1rem; background:rgba(255,255,255,.08); backdrop-filter:blur(10px); }
.login-art p { position:relative; z-index:1; font-family:Georgia,serif; font-size:2.1rem; line-height:1.12; max-width:300px; margin:22px 0 0; }
.login-form-wrap { padding:58px 52px; }
.login-form-wrap h2 { font-family:Georgia,serif; font-size:2.6rem; line-height:1; margin:0 0 12px; font-weight:500; letter-spacing:-.035em; }
.login-form-wrap > p { color:var(--muted); }
.login-form-wrap form { margin-top:30px; }
.login-form-wrap label:not(.remember) { display:grid; gap:7px; margin-bottom:16px; font-size:.82rem; font-weight:800; }
.login-form-wrap input[type="text"], .login-form-wrap input[type="password"], .login-form-wrap input:not([type]) { width:100%; height:48px; border-radius:13px; border:1px solid rgba(16,25,44,.16); background:#fff; padding:0 14px; outline:none; }
.login-form-wrap input:focus { border-color:var(--blue); box-shadow:0 0 0 4px rgba(91,124,250,.12); }
.login-row { display:flex; justify-content:space-between; gap:20px; align-items:center; margin:4px 0 22px; font-size:.76rem; }
.remember { display:flex; align-items:center; gap:6px; color:#5a647a; }
.login-row a { color:#4058a7; font-weight:750; }
.login-status { min-height:25px; margin:14px 0 0; font-size:.82rem; font-weight:750; color:#b9483a !important; }
.privacy-note { font-size:.72rem; color:#8b93a4 !important; margin-top:18px; }
.dialog-close { position:absolute; right:18px; top:18px; z-index:3; width:36px; height:36px; border-radius:50%; border:1px solid rgba(16,25,44,.1); background:rgba(255,255,255,.85); cursor:pointer; font-size:1.35rem; line-height:1; }
.toast { position:fixed; right:20px; bottom:20px; z-index:90; padding:12px 16px; border-radius:12px; background:var(--navy); color:white; box-shadow:var(--shadow); opacity:0; transform:translateY(15px); pointer-events:none; transition:.25s ease; font-size:.82rem; }
.toast.show { opacity:1; transform:none; }

@media (max-width: 960px) {
  .nav-wrap { grid-template-columns:1fr auto; }
  .main-nav { display:none; }
  .hero { grid-template-columns:1fr; gap:44px; min-height:auto; }
  .hero-card { max-width:620px; transform:none; }
  .section-head, .editorial, .split-info, .longform, .faq-layout { grid-template-columns:1fr; gap:42px; }
  .editorial-aside, .longform-title { position:static; }
  .book-grid { grid-template-columns:repeat(2,1fr); }
  .resource-grid { grid-template-columns:1fr; }
  .columns { columns:1; }
  .contact { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > div:first-child { grid-column:1/-1; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 26px, 1180px); }
  .site-header { position:static; }
  .nav-wrap { min-height:70px; gap:10px; }
  .brand small { display:none; }
  .login-open { font-size:0; width:44px; padding:0; }
  .login-open span { font-size:1rem; }
  .hero { padding-block:54px; }
  .hero h1 { font-size:clamp(3.1rem,15vw,5rem); }
  .hero-stats { gap:22px; }
  .hero-visual { height:300px; }
  .book { width:145px; height:210px; }
  .ticker-inner { overflow:auto; justify-content:flex-start; padding-right:20px; }
  .section { padding-block:78px; }
  .book-grid { grid-template-columns:1fr; }
  .cover { min-height:360px; }
  .event-card { grid-template-columns:70px 1fr; gap:16px; }
  .event-time { grid-column:2; }
  .contact-card { padding:28px; }
  .contact-card h2 { font-size:2.45rem; }
  .footer-grid { grid-template-columns:1fr; gap:34px; }
  .footer-grid > div:first-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
  .login-shell { grid-template-columns:1fr; }
  .login-art { min-height:210px; padding:28px; }
  .login-art p { font-size:1.65rem; }
  .login-form-wrap { padding:34px 24px 30px; }
  .login-row { align-items:flex-start; flex-direction:column; gap:8px; }
}

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