:root {
  --ink: #183b34;
  --ink-deep: #102d28;
  --ink-soft: #285248;
  --gold: #c99a4a;
  --gold-light: #e5c27f;
  --paper: #f5f0e6;
  --paper-deep: #ebe2d2;
  --white: #fffdf8;
  --muted: #66756e;
  --line: rgba(24, 59, 52, .14);
  --shadow: 0 20px 60px rgba(15, 43, 37, .12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Vazirmatn, Tahoma, sans-serif; font-size: 15px; line-height: 1.8; }
body, button, input, textarea, select { font-family: inherit; }
button, input, textarea, select { font-size: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { color: var(--white); background: var(--ink); }

.page-noise { position: fixed; z-index: -1; inset: 0; pointer-events: none; opacity: .35; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E"); }
.shell { width: min(1180px, calc(100% - 48px)); margin: auto; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 2px; font-weight: 700; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button:hover { transform: translateY(-3px); }
.button span { font-size: 18px; line-height: 1; }
.button--ink { color: var(--white); background: var(--ink); box-shadow: 0 9px 24px rgba(16, 45, 40, .18); }
.button--ink:hover { background: var(--ink-deep); }
.button--plain { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.25); }
.button--plain:hover { border-color: var(--ink); }
.button--gold { color: var(--ink-deep); background: var(--gold-light); box-shadow: 0 9px 24px rgba(0,0,0,.12); }
.button--gold:hover { background: #f2d497; }
.button--full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 800; }
.text-link span { font-size: 18px; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(-5px); }

/* Header */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid transparent; transition: background .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { position: sticky; top: 0; background: rgba(245, 240, 230, .93); box-shadow: 0 8px 26px rgba(24,59,52,.06); border-color: var(--line); backdrop-filter: blur(16px); }
.header-inner { height: 88px; display: flex; align-items: center; gap: 38px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-seal { display: grid; place-items: center; width: 42px; aspect-ratio: 1; color: var(--gold-light); background: var(--ink); border-radius: 50% 50% 46% 46%; border: 1px solid rgba(229,194,127,.52); box-shadow: inset 0 0 0 4px rgba(229,194,127,.08); }
.brand-seal span { transform: translateY(-1px); font-family: Marhey, serif; font-size: 23px; line-height: 1; }
.brand-copy { display: grid; line-height: 1.22; }
.brand-copy b { color: var(--ink); font-size: 15px; font-weight: 800; }
.brand-copy small { direction: ltr; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-right: auto; }
.main-nav a { position: relative; color: #345149; font-size: 13px; font-weight: 600; }
.main-nav a::after { position: absolute; right: 0; bottom: -7px; width: 0; height: 1px; content: ''; background: var(--gold); transition: width .25s ease; }
.main-nav a:hover::after { width: 100%; }
.header-cta { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); font-size: 12px; font-weight: 800; }
.header-cta i { display: grid; place-items: center; width: 30px; height: 30px; color: var(--white); font-style: normal; font-size: 17px; background: var(--ink); border-radius: 50%; transition: transform .25s ease; }
.header-cta:hover i { transform: translateX(-4px); }
.menu-toggle { display: none; width: 42px; padding: 9px 8px; border: 0; background: transparent; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero-section { position: relative; overflow: hidden; min-height: 680px; padding: 78px 0 32px; background: linear-gradient(116deg, #eee5d5 0%, #f6f1e8 55%, #e6ded0 100%); }
.hero-section::before { position: absolute; z-index: 0; top: -420px; left: -260px; width: 810px; height: 810px; content: ''; opacity: .38; background: repeating-conic-gradient(from 16deg, rgba(27,70,61,.09) 0 10deg, transparent 10deg 30deg), radial-gradient(circle, transparent 36%, rgba(201,154,74,.3) 36.4% 36.9%, transparent 37.3%); border-radius: 50%; mask-image: radial-gradient(circle, #000 35%, transparent 68%); }
.hero-geometry { position: absolute; border: 1px solid rgba(24,59,52,.12); transform: rotate(45deg); }
.hero-geometry--one { top: 110px; right: -155px; width: 380px; height: 380px; }
.hero-geometry--two { bottom: -280px; right: 17%; width: 440px; height: 440px; border-color: rgba(201,154,74,.22); }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: 70px; }
.hero-copy { padding: 30px 0; }
.hero-copy h1 { max-width: 650px; margin-top: 15px; font-family: Marhey, Vazirmatn, sans-serif; font-size: clamp(36px, 4.2vw, 63px); font-weight: 600; line-height: 1.5; letter-spacing: -.04em; }
.hero-lead { max-width: 560px; margin-top: 18px; color: #52655e; font-size: 16px; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 29px; }
.hero-numbers { display: flex; gap: 0; max-width: 600px; margin-top: 50px; border-top: 1px solid var(--line); }
.hero-numbers > div { flex: 1; display: grid; gap: 1px; padding-top: 16px; padding-left: 15px; }
.hero-numbers > div + div { padding-right: 18px; border-right: 1px solid var(--line); }
.hero-numbers strong { font-family: Marhey, sans-serif; color: var(--ink); font-size: 22px; line-height: 1.3; }
.hero-numbers span { color: var(--muted); font-size: 11px; }
.hero-art { position: relative; min-height: 460px; }
.hero-art__frame { position: absolute; top: 0; right: 14%; width: min(385px, 77%); height: 470px; overflow: hidden; box-shadow: 26px 28px 0 rgba(201,154,74,.22), var(--shadow); }
.hero-art__frame::before { position: absolute; z-index: 2; inset: 14px; content: ''; border: 1px solid rgba(255,255,255,.46); }
.hero-art__frame img { height: 100%; object-fit: cover; filter: saturate(.62) sepia(.12); }
.hero-art__fallback { height: 100%; background: linear-gradient(145deg, #baa981, #294d45); }
.hero-art__tint { position: absolute; inset: 0; background: linear-gradient(145deg, rgba(16,45,40,.07), rgba(16,45,40,.44)); }
.hero-quote { position: absolute; z-index: 3; bottom: -8px; left: 0; width: 255px; padding: 21px 22px 19px; color: var(--white); background: var(--ink); box-shadow: 0 14px 30px rgba(16,45,40,.2); }
.quote-mark { display: block; height: 21px; color: var(--gold-light); font-family: Georgia, serif; font-size: 48px; line-height: .72; }
.hero-quote p { margin-top: 11px; font-size: 12px; font-weight: 500; line-height: 2; }
.quote-line { display: block; width: 34px; height: 1px; margin-top: 13px; background: var(--gold); }
.hero-orbit { position: absolute; z-index: 1; border: 1px solid rgba(24,59,52,.25); border-radius: 50%; }
.hero-orbit--a { top: -30px; left: 3%; width: 112px; height: 112px; }
.hero-orbit--b { top: 12px; left: 14%; width: 76px; height: 76px; border-color: var(--gold); }
.hero-calligraphy { position: absolute; right: 0; bottom: 42px; color: rgba(24,59,52,.12); font-family: Marhey, serif; font-size: 165px; line-height: 1; }
.hero-scroll { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.hero-scroll a { display: inline-flex; align-items: center; gap: 11px; color: var(--muted); font-size: 11px; }
.hero-scroll a span { display: inline-block; width: 28px; height: 42px; border: 1px solid var(--line); border-radius: 14px; }
.hero-scroll p { color: var(--muted); font-size: 11px; }

/* Shared sections */
.section { padding: 108px 0; }
.section-heading, .archive-top { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 36px; }
.section-heading h2, .archive-top h2 { margin-top: 8px; font-family: Marhey, Vazirmatn, sans-serif; font-size: clamp(26px, 3vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1.45; }
.section-heading > p { max-width: 410px; color: var(--muted); font-size: 13px; line-height: 2; }
.section--featured { background: var(--white); }
.spotlight-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 22px; }
.spotlight-card { overflow: hidden; background: var(--paper); }
.spotlight-card__image { position: relative; display: block; overflow: hidden; }
.spotlight-card__image img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.spotlight-card:hover img { transform: scale(1.04); }
.spotlight-card--main .spotlight-card__image { height: 345px; }
.spotlight-card--main .spotlight-card__image span { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(10,35,30,.7)); }
.spotlight-card--main .spotlight-card__content { position: relative; min-height: 155px; padding: 24px 130px 23px 27px; color: var(--white); background: var(--ink); }
.spotlight-card__content p { display: flex; align-items: center; gap: 8px; color: var(--gold-light); font-size: 11px; font-weight: 700; }
.spotlight-card__content p i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.spotlight-card__content h3 { margin-top: 8px; font-family: Marhey, sans-serif; font-size: 22px; font-weight: 500; line-height: 1.6; }
.round-link { position: absolute; top: 44px; right: 29px; display: grid; place-items: center; width: 68px; height: 68px; color: var(--ink); background: var(--gold-light); border-radius: 50%; font-size: 28px; transition: transform .25s ease; }
.round-link:hover { transform: rotate(-12deg); }
.spotlight-aside { display: grid; grid-template-rows: 1fr .7fr; gap: 22px; }
.spotlight-card--side { display: grid; grid-template-columns: .9fr 1.1fr; }
.spotlight-card--side .spotlight-card__image { min-height: 210px; }
.spotlight-card--side .spotlight-card__content { align-self: center; padding: 24px; }
.spotlight-card--side .spotlight-card__content p { color: var(--gold); }
.spotlight-card--side .spotlight-card__content h3 { font-size: 18px; }
.spotlight-card--side .text-link { margin-top: 14px; }
.archive-note { display: flex; align-items: center; gap: 17px; padding: 25px; background: #efe6d8; }
.archive-note__symbol { color: var(--gold); font-size: 42px; line-height: 1; }
.archive-note p { max-width: 370px; color: #52655e; font-size: 12px; line-height: 2; }

/* Archive */
.archive-section { background: var(--paper); }
.archive-search { display: flex; align-items: center; gap: 7px; width: 250px; padding: 7px 0; border-bottom: 1px solid var(--ink); color: var(--gold); }
.archive-search span { font-size: 22px; line-height: 1; }
.archive-search input { width: 100%; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 12px; }
.archive-search input::placeholder { color: #8d9992; }
.type-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 31px; }
.type-pills button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; color: #52655e; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.36); font-size: 11px; font-weight: 700; transition: color .2s, background .2s, border .2s; }
.type-pills button em { font-style: normal; opacity: .67; }
.type-pills button:hover, .type-pills button.is-active { color: var(--white); border-color: var(--ink); background: var(--ink); }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.archive-card { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; overflow: hidden; background: var(--white); box-shadow: 0 3px 0 rgba(24,59,52,.03); transition: transform .3s ease, box-shadow .3s ease; }
.archive-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.archive-card[hidden] { display: none; }
.archive-card__media { position: relative; display: block; height: 202px; overflow: hidden; background: #d6c6a8; }
.archive-card__media img { height: 100%; object-fit: cover; filter: saturate(.72); transition: transform .6s ease, filter .4s ease; }
.archive-card:hover .archive-card__media img { transform: scale(1.06); filter: saturate(.98); }
.archive-card__wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,35,30,.02), rgba(10,35,30,.5)); }
.content-type { position: absolute; top: 13px; right: 13px; padding: 4px 9px; color: var(--ink); background: rgba(255,253,248,.9); font-size: 10px; font-weight: 800; }
.media-placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, #b49561, #315950); }
.media-placeholder i { display: grid; place-items: center; width: 70px; height: 70px; color: var(--gold-light); border: 1px solid var(--gold-light); border-radius: 50%; font-family: Marhey; font-size: 32px; font-style: normal; }
.archive-card__body { padding: 18px 18px 14px; }
.archive-card__meta { display: flex; gap: 10px; color: #87928d; font-size: 10px; }
.archive-card__meta span + span::before { margin-left: 10px; content: '•'; color: var(--gold); }
.archive-card h3 { margin-top: 8px; font-size: 17px; font-weight: 800; line-height: 1.65; }
.archive-card h3 a:hover { color: var(--gold); }
.archive-card__body p { display: -webkit-box; overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 2; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.archive-card__footer { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-top: 1px solid #eeeae1; }
.soft-label { padding: 3px 8px; color: #6a7c74; background: #f3efe5; font-size: 10px; }
.archive-card__footer .text-link { font-size: 11px; }
.empty-search { grid-column: 1/-1; padding: 35px; text-align: center; color: var(--muted); background: var(--white); }

/* Learning & book */
.learning-section { position: relative; overflow: hidden; color: var(--white); background: var(--ink-deep); }
.learning-section::before { position: absolute; top: -260px; left: -100px; width: 570px; height: 570px; content: ''; opacity: .16; background: repeating-conic-gradient(rgba(229,194,127,.62) 0 8deg, transparent 8deg 22deg); border-radius: 50%; mask-image: radial-gradient(circle, #000 36%, transparent 68%); }
.learning-layout { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.learning-intro h2 { max-width: 500px; margin-top: 12px; font-family: Marhey, sans-serif; font-size: clamp(27px, 3.6vw, 45px); font-weight: 500; line-height: 1.55; }
.learning-intro > p:not(.eyebrow) { max-width: 440px; margin-top: 15px; color: #c4d0cb; font-size: 13px; line-height: 2.1; }
.learning-intro .button { margin-top: 25px; }
.learning-steps { position: relative; }
.learning-steps::before { position: absolute; top: 28px; right: 25px; bottom: 28px; width: 1px; content: ''; background: rgba(229,194,127,.38); }
.learning-steps article { position: relative; padding: 0 70px 27px 0; }
.learning-steps article:last-child { padding-bottom: 0; }
.learning-steps span { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 51px; height: 51px; color: var(--ink); background: var(--gold-light); border: 8px solid var(--ink-deep); border-radius: 50%; font-size: 10px; font-weight: 800; }
.learning-steps h3 { color: var(--gold-light); font-size: 16px; }
.learning-steps p { max-width: 390px; margin-top: 3px; color: #c4d0cb; font-size: 12px; }
.book-section { padding-top: 0; background: var(--ink-deep); }
.book-band { position: relative; display: flex; align-items: center; min-height: 300px; overflow: hidden; padding: 49px 8%; color: var(--ink); background: #e9ddc9; }
.book-band__pattern { position: absolute; top: -180px; left: -80px; width: 470px; height: 470px; opacity: .42; background: repeating-conic-gradient(from 12deg, rgba(24,59,52,.15) 0 13deg, transparent 13deg 30deg); border-radius: 50%; mask-image: radial-gradient(circle, #000 31%, transparent 67%); }
.book-band__copy { position: relative; z-index: 1; }
.book-band h2 { margin-top: 8px; font-family: Marhey, sans-serif; font-size: 31px; font-weight: 500; }
.book-band__copy > p:not(.eyebrow) { max-width: 455px; margin-top: 8px; color: #576b63; font-size: 13px; }
.book-band .text-link { margin-top: 16px; }
.book-stack { position: absolute; left: 13%; bottom: 0; width: 200px; height: 250px; }
.book-stack div { position: absolute; bottom: 0; left: 0; width: 130px; height: 194px; transform: rotate(-10deg); background: #284d45; box-shadow: 8px 6px 0 #d3b374; }
.book-stack div:nth-child(2) { right: 5px; left: auto; height: 216px; transform: rotate(8deg); background: #b28646; box-shadow: -8px 6px 0 #1a3e36; }
.book-stack div:nth-child(3) { right: 28px; left: auto; height: 235px; transform: rotate(-2deg); background: #f4ebda; box-shadow: 0 0 0 1px rgba(24,59,52,.18); }
.book-stack span { position: absolute; z-index: 1; top: 48px; right: 53px; writing-mode: vertical-rl; color: var(--ink); font-family: Marhey; font-size: 21px; letter-spacing: .2em; }

/* About and footer */
.about-section { background: var(--white); }
.about-layout { display: grid; grid-template-columns: 1fr .9fr; gap: 10%; align-items: start; }
.about-statement { position: relative; padding: 25px 37px 0 0; }
.statement-mark { position: absolute; top: -35px; right: -5px; color: #eee2cf; font-family: Georgia, serif; font-size: 130px; line-height: 1; }
.about-statement h2 { position: relative; max-width: 560px; font-family: Marhey, sans-serif; font-size: clamp(25px, 3vw, 38px); font-weight: 500; line-height: 1.75; }
.about-statement p { max-width: 510px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.about-details { padding: 25px 0 0; }
.about-details > p:not(.eyebrow) { margin-top: 12px; color: #50635b; font-size: 13px; line-height: 2.15; }
.about-details dl { margin: 23px 0 0; border-top: 1px solid var(--line); }
.about-details dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.about-details dt { color: var(--muted); font-size: 11px; }
.about-details dd { margin: 0; font-size: 11px; font-weight: 700; text-align: left; }
.contact-section { position: relative; overflow: hidden; padding: 69px 0; color: var(--white); background: #1a443c; }
.contact-section::after { position: absolute; bottom: -180px; left: -40px; width: 400px; height: 400px; content: ''; border: 1px solid rgba(229,194,127,.25); border-radius: 50%; box-shadow: 0 0 0 35px rgba(229,194,127,.04), 0 0 0 70px rgba(229,194,127,.035); }
.contact-layout { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.contact-layout h2 { margin-top: 9px; font-family: Marhey, sans-serif; font-size: clamp(26px, 3vw, 37px); font-weight: 500; }
.contact-layout > div > p:not(.eyebrow) { margin-top: 7px; color: #c8d5cf; font-size: 13px; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; }
.contact-inline { color: var(--gold-light); font-size: 12px; font-weight: 700; }
.contact-inline span { margin-right: 4px; }
.site-footer { padding: 28px 0; background: #11352f; color: var(--white); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand-copy b { color: var(--white); }
.site-footer .brand-copy small { color: #afc2bc; }
.site-footer p { max-width: 510px; color: #a6b9b3; font-size: 10px; text-align: center; }
.footer-admin { color: var(--gold-light); font-size: 11px; }

/* Details */
.site-header--detail { border-bottom-color: var(--line); background: var(--paper); }
.detail-hero { padding: 42px 0 65px; background: #eee5d5; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 42px; color: #73837b; font-size: 11px; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--gold); }
.detail-hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 80px; align-items: center; }
.detail-hero__copy h1, .course-hero h1 { max-width: 640px; margin-top: 9px; font-family: Marhey, sans-serif; font-size: clamp(30px, 4vw, 53px); font-weight: 500; line-height: 1.5; }
.detail-hero__copy > p:not(.eyebrow), .course-hero > p { max-width: 620px; margin-top: 13px; color: #52665e; font-size: 15px; line-height: 2.1; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 24px; }
.detail-tags span { padding: 5px 10px; color: #47655b; border: 1px solid rgba(24,59,52,.15); background: rgba(255,255,255,.28); font-size: 11px; }
.detail-cover { position: relative; height: 370px; margin: 0; overflow: hidden; box-shadow: 22px 22px 0 rgba(201,154,74,.22); }
.detail-cover img { height: 100%; object-fit: cover; filter: saturate(.7); }
.detail-cover > span { position: absolute; inset: 0; background: linear-gradient(155deg, transparent 35%, rgba(16,45,40,.52)); }
.detail-cover figcaption { position: absolute; right: 20px; bottom: 16px; left: 20px; color: var(--white); font-size: 11px; }
.detail-content { padding: 80px 0 102px; background: var(--white); }
.detail-content__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 94px; align-items: start; }
.reading-label { color: var(--gold); font-size: 11px; font-weight: 800; }
.reading-column h2 { margin-top: 7px; font-family: Marhey, sans-serif; font-size: 30px; font-weight: 500; }
.reading-column > p:not(.reading-label) { margin-top: 15px; color: #40564e; font-size: 15px; line-height: 2.25; }
.module-list { margin-top: 31px; padding: 24px; background: #f5f0e6; }
.module-list h3 { font-size: 14px; }
.module-list ol { margin: 13px 0 0; padding: 0 20px 0 0; color: #53665f; font-size: 13px; }
.module-list li + li { margin-top: 8px; }
.detail-sidebar { display: grid; gap: 15px; }
.meta-panel, .resource-panel { padding: 22px; border: 1px solid var(--line); }
.meta-panel h3, .resource-panel h3 { padding-bottom: 13px; font-size: 15px; }
.meta-panel > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #ebe7dc; }
.meta-panel span { color: var(--muted); font-size: 11px; }
.meta-panel b { max-width: 160px; font-size: 11px; text-align: left; }
.resource-panel { background: var(--ink); border-color: var(--ink); color: var(--white); }
.resource-panel h3 { color: var(--gold-light); }
.resource-panel a { display: grid; grid-template-columns: 36px 1fr 20px; gap: 8px; align-items: center; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.13); }
.resource-panel a span { color: var(--gold-light); font-size: 9px; font-weight: 800; }
.resource-panel a b { font-size: 11px; }
.resource-panel a i { font-style: normal; }
.related-section { padding: 75px 0 100px; background: var(--paper); }
.not-found { display: grid; min-height: 65vh; place-items: center; text-align: center; }
.not-found .shell { max-width: 590px; }
.not-found h1 { margin-top: 9px; font-family: Marhey; font-size: 35px; font-weight: 500; }
.not-found p:not(.eyebrow) { margin: 12px 0 23px; color: var(--muted); }

/* Course detail */
.course-hero { padding: 45px 0 72px; color: var(--white); background: var(--ink-deep); }
.course-hero .breadcrumbs { color: #b9c9c3; }
.course-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 85px; align-items: center; }
.course-hero h1 { color: var(--white); }
.course-hero__grid > div > p:not(.eyebrow) { max-width: 625px; margin-top: 13px; color: #c7d3ce; font-size: 15px; line-height: 2.1; }
.course-hero .detail-tags span { color: #d0ddd7; border-color: rgba(229,194,127,.3); background: rgba(255,255,255,.03); }
.course-hero__cover { position: relative; height: 360px; margin: 0; overflow: hidden; box-shadow: 22px 22px 0 rgba(229,194,127,.22); }
.course-hero__cover img { height: 100%; object-fit: cover; filter: saturate(.67); }
.course-hero__cover > span { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(16,45,40,.85)); }
.course-hero__cover > div { position: absolute; right: 20px; bottom: 19px; left: 20px; display: flex; justify-content: space-between; align-items: end; }
.course-hero__cover b { color: var(--gold-light); font-size: 13px; }
.course-hero__cover small { font-size: 10px; }
.course-main { padding: 80px 0 100px; background: var(--white); }
.course-main__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 92px; align-items: start; }
.course-overview h2 { margin-top: 7px; font-family: Marhey; font-size: 30px; font-weight: 500; }
.course-overview > p:not(.reading-label) { max-width: 720px; margin-top: 14px; color: #40564e; font-size: 15px; line-height: 2.25; }
.syllabus { margin-top: 36px; border-top: 2px solid var(--ink); }
.syllabus__head { display: flex; align-items: end; justify-content: space-between; padding: 16px 0; }
.syllabus__head span { font-size: 15px; font-weight: 800; }
.syllabus__head p { color: var(--muted); font-size: 11px; }
.syllabus ol { margin: 0; padding: 0; list-style: none; }
.syllabus li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.syllabus li b { color: var(--gold); font-size: 12px; }
.syllabus li span { color: #40564e; font-size: 13px; }
.enroll-card { position: sticky; top: 108px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(24,59,52,.06); }
.enroll-card__top { padding: 24px; color: var(--white); background: var(--ink); }
.enroll-card__top span { color: var(--gold-light); font-size: 11px; }
.enroll-card__top h3 { margin-top: 3px; font-family: Marhey; font-size: 19px; font-weight: 500; }
.enroll-line { display: flex; justify-content: space-between; gap: 10px; padding: 12px 21px; border-bottom: 1px solid #ece8de; }
.enroll-line span { color: var(--muted); font-size: 10px; }
.enroll-line b { max-width: 160px; font-size: 10px; text-align: left; }
.enroll-card .button { width: calc(100% - 42px); margin: 20px 21px 8px; }
.enroll-card > small { display: block; padding: 0 21px 20px; color: var(--muted); font-size: 10px; line-height: 1.8; }

/* Admin and login */
.admin-body { min-height: 100vh; background: #edf0eb; color: var(--ink); }
.admin-shell { display: grid; grid-template-columns: 255px minmax(0, 1fr); min-height: 100vh; direction: rtl; }
.admin-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 27px 20px; color: #c6d4cf; background: #143a33; }
.admin-sidebar .brand-lockup { padding: 0 8px; }
.admin-sidebar .brand-copy b { color: var(--white); }
.admin-sidebar .brand-copy small { color: #aec4bd; }
.admin-nav { display: grid; gap: 4px; margin-top: 54px; }
.admin-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; color: #c2d1cb; border-radius: 5px; font-size: 12px; font-weight: 600; }
.admin-nav a span { width: 18px; color: var(--gold-light); text-align: center; }
.admin-nav a:hover, .admin-nav a.is-active { color: var(--white); background: rgba(255,255,255,.1); }
.admin-sidebar__foot { display: grid; gap: 11px; margin-top: auto; padding: 18px 8px 0; border-top: 1px solid rgba(255,255,255,.14); }
.admin-sidebar__foot a, .admin-sidebar__foot button { color: #bed0c9; border: 0; background: transparent; font-size: 11px; text-align: right; }
.admin-sidebar__foot a span { color: var(--gold-light); }
.admin-main { min-width: 0; padding: 38px clamp(24px, 5vw, 70px) 64px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.admin-top h1 { margin-top: 3px; font-family: Marhey; font-size: 29px; font-weight: 500; }
.admin-user { display: flex; align-items: center; gap: 9px; }
.admin-avatar { display: grid; place-items: center; width: 34px; height: 34px; color: var(--gold-light); background: var(--ink); border-radius: 50%; font-family: Marhey; }
.admin-user div { display: grid; line-height: 1.35; }
.admin-user b { font-size: 11px; }.admin-user small { color: var(--muted); font-size: 9px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 30px; }
.admin-stats article { display: grid; gap: 1px; padding: 17px; background: #fffefa; border: 1px solid rgba(24,59,52,.08); box-shadow: 0 4px 18px rgba(24,59,52,.04); }
.admin-stats span { color: var(--muted); font-size: 10px; }.admin-stats strong { font-family: Marhey; font-size: 25px; font-weight: 500; }.admin-stats i { color: #899690; font-size: 9px; font-style: normal; }
.admin-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(350px, .85fr); gap: 18px; margin-top: 22px; align-items: start; }
.admin-editor, .admin-library, .site-settings { background: #fffefa; border: 1px solid rgba(24,59,52,.08); box-shadow: 0 4px 18px rgba(24,59,52,.04); }
.admin-editor, .admin-library { padding: 24px; }
.admin-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-section-head h2 { margin-top: 3px; font-size: 19px; }.admin-section-head > p { max-width: 350px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.quiet-button { padding: 5px 0; color: var(--muted); border: 0; border-bottom: 1px solid #c8d0cc; background: transparent; font-size: 10px; }
.content-form, .settings-form { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-field { display: grid; gap: 5px; color: #4b6158; font-size: 10px; font-weight: 700; }
.admin-field > span b { color: #b45840; }.admin-field input, .admin-field textarea, .admin-field select { width: 100%; padding: 9px 10px; color: var(--ink); outline: 0; border: 1px solid #d9ded9; border-radius: 3px; background: #fff; font-weight: 500; transition: border .2s, box-shadow .2s; }
.admin-field textarea { min-height: 0; resize: vertical; line-height: 1.9; }.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,74,.12); }
.admin-field--check { position: relative; grid-template-columns: 1fr 38px; align-items: center; padding: 9px 10px; border: 1px solid #d9ded9; border-radius: 3px; background: #fff; }.admin-field--check input { position: absolute; opacity: 0; }.admin-field--check i { position: relative; width: 31px; height: 17px; border-radius: 9px; background: #c9cfca; transition: background .2s; }.admin-field--check i::after { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; content: ''; background: #fff; border-radius: 50%; transition: transform .2s; }.admin-field--check input:checked + i { background: var(--ink); }.admin-field--check input:checked + i::after { transform: translateX(-14px); }
.image-control { display: grid; grid-template-columns: minmax(0, 1fr) auto 57px; gap: 10px; align-items: end; }.upload-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; color: var(--ink); border: 1px solid var(--ink); background: transparent; font-size: 10px; font-weight: 700; white-space: nowrap; }.upload-button input { display: none; }.image-preview { display: grid; place-items: center; width: 57px; height: 37px; overflow: hidden; color: #84918b; background: #f0eee8; font-size: 8px; }.image-preview img { height: 100%; object-fit: cover; }
.advanced-fields { border: 1px dashed #ccd5d0; }.advanced-fields summary { display: flex; justify-content: space-between; padding: 10px; color: #52675e; cursor: pointer; font-size: 11px; font-weight: 700; }.advanced-fields summary::-webkit-details-marker { display: none; }.advanced-fields__body { display: grid; gap: 11px; padding: 0 11px 12px; }.advanced-fields small { color: var(--muted); font-size: 9px; font-weight: 400; }.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.form-actions .button { min-height: 40px; padding: 0 16px; font-size: 11px; }.form-message { min-height: 19px; margin: 0; color: var(--muted); font-size: 10px; }.form-message--success { color: #258360; }.form-message--error { color: #bd4e3c; }.button:disabled { cursor: wait; opacity: .7; }
.library-filter { display: flex; align-items: center; width: 135px; gap: 4px; padding-bottom: 5px; color: var(--gold); border-bottom: 1px solid var(--line); }.library-filter span { font-size: 16px; }.library-filter input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 10px; }.library-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin: -4px 0 14px; }.library-tabs button { padding: 4px 7px; color: #63766d; border: 0; background: transparent; font-size: 10px; }.library-tabs button.is-active { color: var(--white); background: var(--ink); }
.content-list { display: grid; max-height: 750px; overflow: auto; border-top: 1px solid #e6e9e4; }.content-row { display: grid; grid-template-columns: 45px minmax(0,1fr) auto auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e6e9e4; }.content-row__thumb { display: grid; place-items: center; width: 45px; height: 38px; overflow: hidden; color: var(--gold-light); background: var(--ink); font-family: Marhey; }.content-row__thumb img { height: 100%; object-fit: cover; }.content-row__title { display: grid; min-width: 0; line-height: 1.55; }.content-row__title b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.content-row__title small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.status-badge { padding: 3px 5px; font-size: 8px; white-space: nowrap; }.status-badge--published { color: #287258; background: #e4f0e9; }.status-badge--draft { color: #947038; background: #f6eedb; }.content-row__actions { display: flex; gap: 5px; }.content-row__actions button { padding: 3px 5px; color: #4e675c; border: 1px solid #d9dfda; background: #fff; font-size: 9px; }.content-row__actions button[data-delete] { color: #b24d3d; }.list-empty { padding: 30px 0; color: var(--muted); font-size: 11px; text-align: center; }
.site-settings { margin-top: 20px; padding: 25px; }.settings-form { max-width: 920px; }
.login-body { min-height: 100vh; background: linear-gradient(135deg, #ede4d4, #d9e0d8); }.login-body::before { position: fixed; top: -200px; left: -200px; width: 520px; height: 520px; content: ''; opacity: .38; background: repeating-conic-gradient(rgba(24,59,52,.16) 0 10deg, transparent 10deg 30deg); border-radius: 50%; mask-image: radial-gradient(circle, #000 36%, transparent 67%); }.login-shell { display: grid; place-items: center; min-height: 100vh; padding: 28px; }.login-brand { position: fixed; top: 26px; right: 28px; }.login-card { width: min(100%, 430px); padding: 35px; background: var(--white); box-shadow: var(--shadow); }.login-card h1 { margin-top: 6px; font-family: Marhey; font-size: 28px; font-weight: 500; }.login-card > p:not(.eyebrow) { margin-top: 5px; color: var(--muted); font-size: 12px; }.login-card form { display: grid; gap: 15px; margin-top: 25px; }.form-alert { padding: 9px 11px; margin-top: 15px; font-size: 11px; }.form-alert--error { color: #a33e30; background: #f9e5e0; }.login-note { margin-top: 15px !important; padding-top: 13px; border-top: 1px solid var(--line); color: #7c6a50 !important; font-size: 10px !important; }.login-note code { direction: ltr; font-size: 9px; }

/* Motion & responsive */
.reveal { opacity: 0; transform: translateY(17px); transition: opacity .65s ease, transform .65s ease; }.reveal.is-visible { opacity: 1; transform: none; }.reveal-delay { transition-delay: .12s; }.reveal-delay-2 { transition-delay: .22s; }
@media (max-width: 1000px) {
  .main-nav { gap: 16px; }.hero-layout, .detail-hero__grid, .course-hero__grid { gap: 40px; }.hero-art__frame { right: 8%; }.spotlight-grid { grid-template-columns: 1fr; }.spotlight-aside { grid-template-columns: 1fr 1fr; grid-template-rows: none; }.archive-note { min-height: 100%; }.learning-layout { gap: 45px; }.book-stack { left: 7%; }.admin-shell { grid-template-columns: 218px minmax(0, 1fr); }.admin-main { padding: 30px; }.admin-workspace { grid-template-columns: 1fr; }.content-list { max-height: 500px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 620px); }.header-inner { height: 70px; gap: 15px; }.menu-toggle { display: block; margin-right: auto; }.main-nav { position: absolute; top: 70px; right: 0; left: 0; display: grid; gap: 0; padding: 10px 16px 16px; visibility: hidden; opacity: 0; background: var(--paper); border-bottom: 1px solid var(--line); transform: translateY(-10px); transition: visibility .2s, opacity .2s, transform .2s; }.main-nav.is-open { visibility: visible; opacity: 1; transform: none; }.main-nav a { padding: 10px 0; }.header-cta { display: none; }.hero-section { min-height: 0; padding: 43px 0 30px; }.hero-layout { grid-template-columns: 1fr; gap: 19px; }.hero-copy { padding: 0; }.hero-copy h1 { font-size: clamp(32px, 10vw, 43px); }.hero-lead { font-size: 14px; }.hero-art { min-height: 342px; margin-top: 10px; }.hero-art__frame { right: 13%; width: 73%; height: 325px; }.hero-quote { bottom: -9px; width: 210px; padding: 16px; }.hero-quote p { font-size: 10px; }.hero-orbit--a { left: 5%; }.hero-orbit--b { left: 17%; }.hero-scroll { margin-top: 30px; }.hero-scroll p { display: none; }.section { padding: 69px 0; }.section-heading, .archive-top { display: grid; align-items: start; gap: 16px; margin-bottom: 26px; }.section-heading > p { font-size: 12px; }.spotlight-card--main .spotlight-card__image { height: 272px; }.spotlight-card--main .spotlight-card__content { min-height: 136px; padding: 18px 92px 18px 18px; }.round-link { top: 37px; right: 17px; width: 55px; height: 55px; }.spotlight-aside { grid-template-columns: 1fr; }.spotlight-card--side .spotlight-card__image { min-height: 170px; }.archive-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }.archive-card__media { height: 150px; }.archive-card__body { padding: 13px; }.archive-card h3 { font-size: 14px; }.archive-card__body p { font-size: 10px; }.archive-card__footer { padding: 11px 13px; }.archive-search { width: 100%; }.learning-layout, .about-layout { grid-template-columns: 1fr; gap: 34px; }.learning-section { padding-bottom: 50px; }.book-stack { display: none; }.book-band { min-height: 245px; padding: 37px 9%; }.about-statement { padding-right: 17px; }.contact-layout { display: grid; }.contact-actions { gap: 12px; }.footer-inner { display: grid; justify-content: start; }.site-footer p { text-align: right; }.detail-hero { padding: 25px 0 50px; }.breadcrumbs { margin-bottom: 25px; }.detail-hero__grid, .course-hero__grid, .detail-content__grid, .course-main__grid { grid-template-columns: 1fr; gap: 30px; }.detail-cover, .course-hero__cover { height: 270px; }.detail-content, .course-main { padding: 52px 0 65px; }.enroll-card { position: static; }.detail-sidebar { grid-template-columns: 1fr; }.course-hero { padding: 27px 0 53px; }.related-section { padding: 54px 0 65px; }.admin-shell { display: block; }.admin-sidebar { position: relative; display: flex; height: auto; padding: 17px; }.admin-nav { display: flex; overflow: auto; gap: 5px; margin: 18px -2px 0; }.admin-nav a { white-space: nowrap; }.admin-sidebar__foot { display: none; }.admin-main { padding: 24px 16px 45px; }.admin-top { align-items: start; }.admin-top h1 { font-size: 23px; }.admin-user { display: none; }.admin-stats { grid-template-columns: repeat(2, 1fr); }.admin-editor, .admin-library, .site-settings { padding: 16px; }.form-grid, .form-grid--three { grid-template-columns: 1fr; }.image-control { grid-template-columns: 1fr 1fr; }.image-preview { display: none; }.content-row { grid-template-columns: 39px minmax(0,1fr) auto; }.content-row__actions { grid-column: 2 / -1; }.content-row__thumb { width: 39px; height: 34px; }.library-filter { width: 105px; }.login-brand { position: static; margin-bottom: 22px; }.login-shell { align-content: center; }.login-card { padding: 26px 20px; }
}
@media (max-width: 430px) { .archive-grid { grid-template-columns: 1fr; }.archive-card__media { height: 190px; }.hero-numbers { margin-top: 36px; }.hero-numbers strong { font-size: 18px; }.hero-numbers span { font-size: 9px; }.section-heading h2, .archive-top h2 { font-size: 27px; }.spotlight-card--side { grid-template-columns: 1fr; }.book-band h2 { font-size: 26px; }.contact-layout h2 { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
