/*
Theme Name: Nges Elmer — Knowledge & Wisdom
Theme URI: https://ngeselmer.com
Author: Nges Elmer
Description: A refined editorial theme for Nges Elmer and the Knowledge and Wisdom book series.
Version: 1.0.0
Text Domain: nges-elmer
*/

:root {
  --ink: #18231f;
  --forest: #173e34;
  --forest-deep: #0c2d26;
  --gold: #d6a545;
  --gold-light: #f0d89d;
  --sand: #f3eddf;
  --paper: #fbf9f3;
  --white: #fff;
  --muted: #66736d;
  --line: rgba(24, 35, 31, .14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --shadow: 0 24px 60px rgba(26, 42, 35, .13);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 17px; line-height: 1.7; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.eyebrow { margin: 0 0 16px; color: var(--gold); font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.section-title { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(2.25rem, 4.5vw, 4.6rem); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.section-intro { max-width: 620px; margin: 24px 0 0; color: var(--muted); font-size: 1.05rem; }

.site-header { position: absolute; z-index: 20; top: 0; left: 0; width: 100%; color: var(--white); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 100px; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--white); text-decoration: none; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(240,216,157,.62); border-radius: 50%; color: var(--gold-light); font-family: var(--serif); font-size: 1.15rem; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.brand-copy small { margin-top: 6px; color: rgba(255,255,255,.66); font-size: .59rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { color: rgba(255,255,255,.83); font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: color .2s; }
.nav-links a:hover { color: var(--gold-light); }
.nav-links .nav-cta { padding: 12px 19px; border: 1px solid rgba(240,216,157,.65); border-radius: 999px; color: var(--gold-light); }

.hero { position: relative; min-height: 850px; overflow: hidden; color: var(--white); background: var(--forest-deep); }
.hero::before { position: absolute; inset: 0; content: ''; background: radial-gradient(circle at 76% 35%, rgba(214,165,69,.18), transparent 30%), linear-gradient(120deg, #0b2d26 15%, #174a3d 70%, #0f312a); }
.hero::after { position: absolute; right: -13vw; bottom: -45vw; width: 90vw; height: 90vw; border: 1px solid rgba(240,216,157,.12); border-radius: 50%; content: ''; box-shadow: 0 0 0 9vw rgba(240,216,157,.025), 0 0 0 18vw rgba(240,216,157,.02); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; min-height: 850px; padding-top: 100px; }
.hero-copy { padding: 76px 0 80px; }
.hero-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; color: var(--gold-light); font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero-kicker::before { width: 42px; height: 1px; background: var(--gold); content: ''; }
.hero h1 { max-width: 720px; margin: 0; font-family: var(--serif); font-size: clamp(4rem, 7.4vw, 7.4rem); font-weight: 400; line-height: .89; letter-spacing: -.055em; }
.hero h1 em { display: block; color: var(--gold-light); font-weight: 400; }
.hero-text { max-width: 580px; margin: 30px 0 0; color: rgba(255,255,255,.72); font-size: 1.08rem; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border: 1px solid transparent; border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: #1e2a25; background: var(--gold-light); }
.button-outline { border-color: rgba(255,255,255,.38); color: var(--white); }
.hero-visual { position: relative; display: grid; align-items: end; justify-items: center; height: 100%; padding: 150px 0 80px; }
.hero-visual::before { position: absolute; top: 18%; width: 420px; height: 420px; border: 1px solid rgba(240,216,157,.18); border-radius: 50%; content: ''; }
.book-main { position: relative; z-index: 2; width: min(445px, 95%); filter: drop-shadow(0 40px 35px rgba(0,0,0,.38)); transform: rotate(-2deg); }
.hero-note { position: absolute; z-index: 3; right: -5px; bottom: 112px; max-width: 210px; padding: 18px 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: rgba(255,255,255,.76); background: rgba(10,36,30,.72); backdrop-filter: blur(12px); font-family: var(--serif); font-size: .92rem; line-height: 1.45; }
.hero-note strong { display: block; margin-top: 7px; color: var(--gold-light); font-family: var(--sans); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; }

.manifesto { padding: 38px 0; background: var(--gold); }
.manifesto-row { display: flex; align-items: center; justify-content: center; gap: 28px; color: #1d2b25; font-family: var(--serif); font-size: clamp(1rem, 1.7vw, 1.3rem); font-style: italic; text-align: center; }
.manifesto-row::before, .manifesto-row::after { width: 60px; height: 1px; flex: 0 0 auto; background: rgba(29,43,37,.38); content: ''; }

.books { padding: 140px 0; }
.books-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 68px; }
.books-heading .section-intro { margin: 0; }
.book-grid { display: grid; grid-template-columns: 1.25fr .875fr .875fr; gap: 22px; }
.book-card { position: relative; display: flex; min-height: 520px; flex-direction: column; overflow: hidden; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f2e8; transition: transform .25s, box-shadow .25s; }
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-card.featured { color: var(--white); background: var(--forest); }
.book-number { color: var(--gold); font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.book-card h3 { margin: 42px 0 18px; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.3rem); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.book-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.book-card.featured p { max-width: 380px; color: rgba(255,255,255,.68); }
.book-card .card-link { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 35px; color: var(--forest); font-size: .73rem; font-weight: 800; letter-spacing: .11em; text-decoration: none; text-transform: uppercase; }
.book-card.featured .card-link { color: var(--gold-light); }
.card-link span { font-size: 1.2rem; transition: transform .2s; }
.card-link:hover span { transform: translateX(5px); }
.book-card.featured .mini-cover { position: absolute; right: -48px; bottom: -30px; width: 225px; opacity: .17; transform: rotate(9deg); }

.quote-section { position: relative; padding: 150px 0; overflow: hidden; color: var(--white); background: #b9753d; }
.quote-section::before { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(12,36,29,.94) 0%, rgba(12,36,29,.86) 48%, rgba(12,36,29,.52) 100%), url('assets/images/meaningful-life-cover.jpg') center 55% / cover; filter: saturate(.7); }
.quote-inner { position: relative; z-index: 2; max-width: 930px; }
.quote-mark { color: var(--gold); font-family: var(--serif); font-size: 6rem; line-height: .6; }
.quote-inner blockquote { margin: 20px 0 30px; font-family: var(--serif); font-size: clamp(2.5rem, 5.5vw, 5.7rem); font-weight: 400; line-height: 1.02; letter-spacing: -.035em; }
.quote-inner cite { display: flex; align-items: center; gap: 14px; color: var(--gold-light); font-style: normal; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.quote-inner cite::before { width: 42px; height: 1px; background: var(--gold); content: ''; }

.author { padding: 150px 0; background: var(--sand); }
.author-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: clamp(60px, 9vw, 130px); }
.portrait-wrap { position: relative; }
.portrait-wrap::before { position: absolute; top: -24px; left: -24px; width: 45%; height: 45%; border-top: 1px solid var(--gold); border-left: 1px solid var(--gold); content: ''; }
.portrait-wrap img { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 180px 180px 16px 16px; object-fit: cover; object-position: center 18%; box-shadow: var(--shadow); }
.author-copy .section-title { margin-bottom: 30px; }
.author-copy p { color: #53625b; }
.author-copy .lead { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; line-height: 1.55; }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 38px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.credential { padding: 22px 15px; background: rgba(255,255,255,.42); text-align: center; }
.credential strong { display: block; color: var(--forest); font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.credential small { display: block; margin-top: 3px; color: var(--muted); font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.reviews { padding: 140px 0; }
.reviews-top { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 62px; }
.rating { color: var(--gold); font-size: 1.15rem; letter-spacing: .18em; white-space: nowrap; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { margin: 0; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.review p { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.62; }
.review footer { margin-top: 28px; color: var(--muted); font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.journal { padding: 140px 0; color: var(--white); background: var(--forest-deep); }
.journal-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 65px; }
.journal-heading .section-intro { margin: 0; color: rgba(255,255,255,.58); }
.journal-all-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; color: var(--gold-light); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.journal-all-link span { font-size: 1rem; transition: transform .2s; }
.journal-all-link:hover span { transform: translateX(5px); }
.journal-grid, .journal-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.journal-card { overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(255,255,255,.045); }
.journal-image { display: grid; min-height: 230px; overflow: hidden; place-items: center; color: var(--gold-light); background: radial-gradient(circle at 50% 45%, rgba(214,165,69,.18), transparent 33%), #12372f; text-decoration: none; }
.journal-image img { width: 100%; height: 230px; object-fit: cover; transition: transform .4s ease; }
.journal-card:hover .journal-image img { transform: scale(1.035); }
.journal-monogram { display: grid; width: 92px; height: 92px; place-items: center; border: 1px solid rgba(240,216,157,.35); border-radius: 50%; font-family: var(--serif); font-size: 1.8rem; }
.journal-card-body { padding: 28px; }
.journal-meta { display: flex; justify-content: space-between; gap: 15px; color: var(--gold); font-size: .61rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.journal-card h3, .journal-preview h3 { margin: 18px 0 14px; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.12; }
.journal-card h3 a { text-decoration: none; }
.journal-card p, .journal-preview p { margin: 0; color: rgba(255,255,255,.58); font-size: .9rem; }
.journal-card .card-link { color: var(--gold-light); }
.journal-preview article { min-height: 330px; padding: 35px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.journal-preview article > span { color: var(--gold); font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.journal-preview h3 { margin-top: 80px; font-size: 2rem; }
.journal-coming { margin: 28px 0 0; color: rgba(255,255,255,.42); font-size: .78rem; text-align: center; }

.journal-page { min-height: 100vh; background: var(--paper); }
.journal-page .site-header { position: relative; color: var(--white); background: var(--forest-deep); }
.journal-page-hero { padding: 100px 0 90px; color: var(--white); background: var(--forest-deep); text-align: center; }
.journal-page-hero .section-title { max-width: 850px; margin-inline: auto; }
.journal-page-hero p:last-child { max-width: 620px; margin: 24px auto 0; color: rgba(255,255,255,.6); }
.journal-archive { padding: 100px 0 130px; }
.journal-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.journal-archive .journal-card { color: var(--ink); border-color: var(--line); background: var(--white); }
.journal-archive .journal-card p { color: var(--muted); }
.journal-archive .journal-card .card-link { color: var(--forest); }
.journal-empty { max-width: 700px; margin: 0 auto; padding: 70px 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); text-align: center; }
.journal-empty h2 { margin: 0; font-family: var(--serif); font-size: 2.2rem; font-weight: 400; }
.journal-empty p { color: var(--muted); }

.closing { padding: 0 0 80px; }
.closing-card { position: relative; overflow: hidden; padding: clamp(55px, 8vw, 100px); border-radius: 28px; color: var(--white); background: var(--forest-deep); text-align: center; }
.closing-card::before { position: absolute; top: -220px; left: 50%; width: 540px; height: 540px; border: 1px solid rgba(214,165,69,.18); border-radius: 50%; content: ''; transform: translateX(-50%); box-shadow: 0 0 0 80px rgba(214,165,69,.025); }
.closing-card > * { position: relative; z-index: 1; }
.closing-card h2 { max-width: 770px; margin: 0 auto; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 400; line-height: 1.03; letter-spacing: -.035em; }
.closing-card p { max-width: 590px; margin: 25px auto 0; color: rgba(255,255,255,.68); }
.closing-card .actions { justify-content: center; }

.site-footer { padding: 70px 0 30px; color: rgba(255,255,255,.7); background: #071f1a; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 60px; padding-bottom: 60px; }
.footer-brand p { max-width: 390px; margin: 22px 0 0; color: rgba(255,255,255,.5); font-size: .9rem; }
.footer-title { margin: 0 0 20px; color: var(--gold-light); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-light); }
.copyright { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.38); font-size: .72rem; }

@media (max-width: 960px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-copy { padding-bottom: 10px; }
  .hero h1 { max-width: 780px; }
  .hero-visual { min-height: 500px; padding: 40px 0 70px; }
  .book-main { width: min(410px, 80%); }
  .hero-note { right: 8%; bottom: 90px; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .book-card.featured { grid-column: span 2; }
  .author-grid { grid-template-columns: 1fr 1.25fr; gap: 55px; }
  .review-grid { grid-template-columns: 1fr; }
  .journal-grid, .journal-preview { grid-template-columns: 1fr; }
  .journal-archive-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  body.admin-bar .site-header { top: 46px; }
  .wrap { width: min(100% - 30px, 1180px); }
  .nav { min-height: 82px; }
  .brand-copy small { display: none; }
  .nav-links { gap: 0; }
  .nav-links .nav-cta { padding: 9px 13px; font-size: .65rem; }
  .hero-grid { padding-top: 90px; }
  .hero-copy { padding-top: 72px; }
  .hero h1 { font-size: clamp(3.5rem, 18vw, 5.8rem); }
  .hero-text { font-size: 1rem; }
  .actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-visual { min-height: 410px; padding-bottom: 35px; }
  .hero-visual::before { width: 310px; height: 310px; }
  .book-main { width: min(360px, 92%); }
  .hero-note { display: none; }
  .manifesto-row::before, .manifesto-row::after { width: 22px; }
  .books, .author, .reviews, .quote-section, .journal { padding: 95px 0; }
  .books-heading, .reviews-top, .journal-heading { display: block; }
  .books-heading .section-intro { margin-top: 24px; }
  .journal-heading .section-intro { margin-top: 24px; }
  .journal-archive-grid { grid-template-columns: 1fr; }
  .book-grid { grid-template-columns: 1fr; }
  .book-card, .book-card.featured { grid-column: auto; min-height: 440px; padding: 30px; }
  .author-grid { grid-template-columns: 1fr; }
  .portrait-wrap { width: 85%; margin-inline: auto; }
  .credentials { grid-template-columns: 1fr; }
  .review-grid { gap: 14px; }
  .rating { margin-top: 22px; }
  .closing { padding-bottom: 50px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .copyright { display: block; }
}

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