:root {
  --bg: #f4f6f6;
  --paper: #fdfbf7;
  --ink: #1d3447;
  --ink-soft: #4b5f6c;
  --gold: #a8833f;
  --gold-soft: #f3ead8;
  --rule: #dccdaa;
  --sea: #2c6b78;
  --sea-wash: #e2edee;
  --night: #13263a;
  --err: #b4412f;
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --ui: "Mulish", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.075rem; line-height: 1.7; }
img { max-width: 100%; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0 0 1rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.narrow { max-width: 720px; }
.eyebrow { font-family: var(--ui); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--gold); }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 700 .92rem var(--ui); padding: .8rem 1.4rem; border-radius: 999px;
  text-decoration: none; cursor: pointer; transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .88; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.ghost-light { background: transparent; border-color: rgba(253,251,247,.7); color: var(--paper); }
.btn:disabled { opacity: .6; cursor: wait; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244,246,246,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.brand { font-family: var(--display); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 1.4rem; font-family: var(--ui); font-size: .88rem; font-weight: 600; }
.menu a { color: var(--ink-soft); text-decoration: none; }
.menu a:hover { color: var(--ink); }
.menu .btn { color: var(--paper); padding: .55rem 1.1rem; }
.menu-toggle { display: none; background: none; border: 0; font: 700 .85rem var(--ui); color: var(--ink); cursor: pointer; padding: .5rem; }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .5rem 16px 1rem; }
  .menu.open { display: flex; }
  .menu a { padding: .7rem 0; border-bottom: 1px solid var(--sea-wash); }
  .menu .btn { margin-top: .8rem; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: var(--paper); overflow: hidden; background: var(--night); }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,38,58,.15) 0%, rgba(19,38,58,.35) 45%, rgba(19,38,58,.92) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-block: 4rem 4.5rem; width: 100%; }
.hero .eyebrow { color: #e7cf9c; }
.hero h1 { font-size: clamp(3rem, 9vw, 6rem); margin: .6rem 0 .8rem; letter-spacing: .005em; }
.hero .sub { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.7rem); max-width: 36ch; line-height: 1.35; margin-bottom: .6rem; }
.hero .by { font-family: var(--ui); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.8rem; color: #e7cf9c; }
.hero .cta { display: flex; gap: .7rem; flex-wrap: wrap; }

/* Sections */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: .5rem; }
.lead { font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.6vw, 1.65rem); line-height: 1.4; }

.book { background: var(--paper); }
.book-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.stages { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .1rem; border-top: 1px solid var(--rule); }
.stages li { display: grid; grid-template-columns: 2.4rem 1fr; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.stages li span:first-child { font-family: var(--ui); font-weight: 700; font-size: .8rem; color: var(--gold); padding-top: .25rem; }
.stages b { font-family: var(--display); font-size: 1.35rem; font-weight: 600; display: block; line-height: 1.2; }
.stages small { color: var(--ink-soft); font-size: .95rem; }
.book-aside { display: grid; gap: 1.2rem; }
.book-aside .photo { border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; }
.book-aside .photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { font-family: var(--ui); font-size: .85rem; color: var(--ink-soft); display: grid; gap: .3rem; }
.facts b { color: var(--ink); }
.awards { background: var(--gold-soft); border-radius: 12px; padding: 1.1rem 1.2rem; font-size: .97rem; }
.awards .eyebrow { display: block; margin-bottom: .4rem; }
.awards ul { margin: 0; padding-left: 1.1rem; }

.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.author-photo { border-radius: 14px; overflow: hidden; background: var(--sea-wash); }
.honours { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.honour { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 1rem 1.1rem; font-size: .95rem; }
.honour b { display: block; font-family: var(--display); font-size: 1.2rem; line-height: 1.2; margin-bottom: .2rem; }

.journal { position: relative; color: var(--paper); background: var(--night); overflow: hidden; }
.journal > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.journal .wrap { position: relative; z-index: 1; }
.journal .eyebrow { color: #e7cf9c; }
.journal h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: .5rem 0 1rem; }
.journal p { max-width: 58ch; }
.journal .cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }

.buy { background: var(--paper); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 1.8rem; display: flex; flex-direction: column; gap: .9rem; }
.card.feature { border-color: var(--gold); box-shadow: 0 14px 40px rgba(168,131,63,.14); }
.tag { align-self: flex-start; font: 700 .72rem var(--ui); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: var(--gold-soft); padding: .3rem .7rem; border-radius: 999px; }
.card h3 { font-size: 1.9rem; }
.price { font-family: var(--display); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.card ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .98rem; }
.card ul li { margin: .25rem 0; }
.card .grow { flex: 1; }
.pay-note { text-align: center; font-family: var(--ui); font-size: .85rem; color: var(--ink-soft); margin-top: 1.4rem; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font: 700 .85rem var(--ui); }
.field input, .field textarea {
  font: 1rem var(--body); color: var(--ink); background: var(--paper);
  padding: .75rem .9rem; border: 1px solid var(--rule); border-radius: 8px; width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px var(--sea-wash); }
.field .hint { font: .8rem var(--ui); color: var(--ink-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.hidden-field { position: absolute; left: -9999px; }

.site-foot { background: var(--night); color: #b9c6cf; font-family: var(--ui); font-size: .85rem; }
.site-foot .wrap { padding-block: 2.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot a { color: #e7cf9c; text-decoration: none; }

@media (max-width: 820px) {
  .book-grid, .author-grid, .contact-grid { grid-template-columns: 1fr; }
  .author-photo { max-width: 300px; }
  .book-aside .photo { aspect-ratio: 16/10; }
}
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .card { padding: 1.4rem; } }

/* Checkout dialog */
dialog { border: 0; border-radius: 16px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
dialog::backdrop { background: rgba(19,38,58,.6); }
.modal { padding: 1.8rem; }
.modal h3 { font-size: 1.9rem; }
.modal .summary { color: var(--ink-soft); margin: .3rem 0 1.2rem; font-size: .98rem; }
.actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: .4rem; }
.error { color: var(--err); font: .88rem var(--ui); min-height: 1.3rem; }
.secure { font: .8rem var(--ui); color: var(--ink-soft); margin: .9rem 0 0; text-align: center; }
.notice { background: var(--gold-soft); border: 1px solid var(--rule); padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.4rem; font: .92rem var(--ui); }

/* Thank-you / simple pages */
.page-hero { background: var(--night); color: var(--paper); text-align: center; padding: 3.5rem 16px 3rem; position: relative; overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); margin-top: .4rem; }
.page-hero .eyebrow { color: #e7cf9c; }
.panel { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 2rem 1.6rem; text-align: center; max-width: 620px; margin: -2rem auto 0; position: relative; box-shadow: 0 14px 40px rgba(19,38,58,.1); }
.panel h2 { font-size: 2.1rem; margin-bottom: .8rem; }
.code { display: inline-block; margin: .8rem 0 1rem; padding: .8rem 1.3rem; border-radius: 12px; background: var(--night); color: #e7cf9c; font: 700 1.5rem ui-monospace, Menlo, monospace; letter-spacing: .1em; user-select: all; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--rule); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; margin: .8rem auto; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .code { font-size: 1.15rem; padding: .7rem .9rem; } }

/* Contact details and social links */
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .55rem; }
.contact-list li { display: grid; grid-template-columns: 4.5rem 1fr; align-items: baseline; gap: .5rem; }
.contact-list span { font: 700 .74rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.contact-list a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); word-break: break-word; }
.contact-list a:hover { border-color: var(--sea); color: var(--sea); }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 .85rem var(--ui); text-decoration: none; }
.socials a span { font-weight: 500; color: var(--ink-soft); }
.socials a:hover { border-color: var(--sea); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.price-note { margin: -.4rem 0 0; font: .88rem var(--ui); color: var(--ink-soft); }
.price-note b { color: var(--ink); }

/* ===== Author-first homepage ===== */
.me-hero { background: var(--night); color: var(--paper); position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) 0; }
.me-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 85% 30%, rgba(231,207,156,.14), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(44,107,120,.25), transparent 70%); pointer-events: none; }
.me-hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.me-hero .eyebrow { color: #e7cf9c; font-size: .8rem; }
.me-hero h1 { font-size: clamp(3.4rem, 10vw, 7.4rem); line-height: .92; letter-spacing: -.01em; margin: 1rem 0 1.4rem; }
.me-lead { font-family: var(--display); font-style: italic; font-size: clamp(1.35rem, 2.8vw, 1.9rem); line-height: 1.3; max-width: 30ch; color: #e6ecef; margin-bottom: 2rem; }
.me-hero .cta { display: flex; gap: .7rem; flex-wrap: wrap; }
.me-portrait { margin: 0; position: relative; }
.me-portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; border-radius: 18px; box-shadow: 0 30px 70px rgba(0,0,0,.45); outline: 1px solid rgba(231,207,156,.4); outline-offset: 10px; }
.me-portrait figcaption { position: absolute; left: -1rem; bottom: 1.4rem; background: var(--gold); color: #fff; font: 700 .8rem var(--ui); letter-spacing: .04em; padding: .55rem .9rem; border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.proof { list-style: none; margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 1.6rem 0 2.2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; border-top: 1px solid rgba(231,207,156,.3); position: relative; }
.proof b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #e7cf9c; line-height: 1.1; }
.proof span { font: 600 .85rem var(--ui); color: #b9c6cf; }
@media (max-width: 820px) {
  .me-hero-grid { grid-template-columns: 1fr; }
  .me-portrait { max-width: 340px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-head h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin: .5rem 0 1.6rem; }
.pull { margin: 0; padding-left: 1.2rem; border-left: 3px solid var(--gold); font-family: var(--display); font-style: italic; font-size: 1.6rem; line-height: 1.3; color: var(--ink); }
.about-body p { max-width: 62ch; }
.creds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.cred { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 1.3rem; display: grid; gap: .35rem; align-content: start; }
.cred b { font-family: var(--display); font-size: 1.35rem; line-height: 1.15; }
.cred p { margin: 0; font-size: .93rem; color: var(--ink-soft); }
.honours-band { margin-top: 1.2rem; background: var(--night); color: var(--paper); border-radius: 14px; padding: 1.3rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; }
.honours-band .eyebrow { color: #e7cf9c; }
.honours-band ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; font-family: var(--display); font-size: 1.2rem; }
.honours-band li::before { content: "★"; color: #e7cf9c; font-size: .8rem; margin-right: .5rem; vertical-align: .15em; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } .creds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .creds { grid-template-columns: 1fr; } }

.speaking .section-head h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
.section-intro { max-width: 60ch; color: var(--ink-soft); margin-top: .8rem; }
.talks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.talk { border-top: 3px solid var(--gold); background: #fff; border-radius: 0 0 12px 12px; padding: 1.2rem 1.2rem 1.4rem; }
.talk h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.talk p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.talk-cta { margin-top: 1.8rem; }

.books { background: var(--paper); }
.book-feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: 3rem; }
.book-art { position: relative; aspect-ratio: 2/3; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: -10px 20px 40px rgba(19,38,58,.3), inset 6px 0 0 rgba(0,0,0,.2); max-width: 380px; width: 100%; justify-self: center; }
.book-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,38,58,.85) 0%, rgba(19,38,58,.1) 45%, rgba(19,38,58,.75) 100%); }
.book-art-title { position: absolute; inset: 0; z-index: 1; padding: 1.6rem 1.4rem; display: flex; flex-direction: column; color: var(--paper); text-align: center; }
.book-art-title span { font: 700 .72rem var(--ui); letter-spacing: .18em; text-transform: uppercase; color: #e7cf9c; }
.book-art-title b { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1; margin-top: .6rem; }
.book-art-title i { margin-top: auto; font-family: var(--display); font-size: 1rem; }
.book-text h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin: .5rem 0 1rem; }
.award-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 .6rem; }
.award-chips span { font: 700 .78rem var(--ui); background: var(--gold-soft); color: #7a5c22; padding: .4rem .8rem; border-radius: 999px; }
.facts-line { font: .82rem var(--ui); color: var(--ink-soft); }
.books .buy { padding-top: 0; }
.more-books { text-align: center; font-family: var(--display); font-style: italic; font-size: 1.2rem; margin-top: 1.6rem; }
@media (max-width: 820px) { .book-feature { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .me-portrait figcaption { left: .8rem; } }

/* ===== Shared: ornament, banners, footer ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ornament { display: block; width: min(320px, 70%); height: auto; margin: 1rem auto 0; }
.section-head.center { text-align: center; }
.banner-link { display: block; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(19,38,58,.15); }
.banner-link img, .page-banner img { width: 100%; height: auto; display: block; }
.teaser-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; margin-top: 1.6rem; }
.teaser-row .lead { margin: 0; max-width: 60ch; }
.teaser-row .cta { display: flex; gap: .6rem; flex-wrap: wrap; }
.page-banner { padding: 0; background: #f6efe1; }
.page-banner a { display: block; max-width: 1672px; margin: 0 auto; }
.page-title { font-size: clamp(2.6rem, 6vw, 4rem); margin-top: .5rem; }

/* Speaking photo */
.speak-top { display: grid; grid-template-columns: 1fr 260px; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.speak-top .section-head { margin-bottom: 0; }
.speak-photo img { width: 100%; height: 340px; object-fit: cover; object-position: 50% 15%; border-radius: 16px; box-shadow: 0 20px 50px rgba(19,38,58,.2); }
@media (max-width: 760px) { .speak-top { grid-template-columns: 1fr; } .speak-photo img { height: 300px; max-width: 320px; } }

/* News */
.news-teaser { background: var(--bg); }
.news-teaser-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.news-teaser-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-top: .5rem; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.news-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.news-img { aspect-ratio: 16/10; overflow: hidden; background: var(--sea-wash); }
.news-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.news-body { padding: 1.1rem 1.2rem 1.3rem; display: grid; gap: .45rem; align-content: start; }
.news-meta { font: 700 .72rem var(--ui); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.news-body h3 { font-size: 1.45rem; }
.news-body p { margin: 0; font-size: .97rem; color: var(--ink-soft); }
.news-more { font: 700 .88rem var(--ui); color: var(--sea); }
.news-page { padding-top: 3rem; }
.news-note { text-align: center; margin-top: 2rem; font-family: var(--ui); font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .news-grid { grid-template-columns: 1fr; } }

/* Books page */
.books-list { background: var(--paper); }
.book-entry { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2.5rem; }
.book-entry-img img { width: 100%; height: auto; border-radius: 16px; }
.book-entry-text h2 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin-top: .5rem; }
.book-entry-text .sub { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ink-soft); margin: .3rem 0 1rem; }
@media (max-width: 820px) { .book-entry { grid-template-columns: 1fr; } }
.why { background: #fffdf8; padding-bottom: 0; }
.why-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 2.5rem; align-items: end; }
.why-text h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--ink); }
.why-text h2 span { color: var(--gold); }
.why-text .lead { margin-top: 1rem; }
.why-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2.5rem; margin: 1.5rem 0; }
.why-cols h3 { font-size: 1.35rem; color: #7a5c22; margin-bottom: .6rem; text-transform: uppercase; letter-spacing: .03em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: .1em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--gold); color: #fff; font: 800 .7rem/1.2rem var(--ui); text-align: center; }
.why-quote { margin: 1rem 0 2.5rem; padding: 1.2rem 1.5rem; border: 1px solid var(--gold); border-radius: 16px; text-align: center; font-family: var(--display); font-size: 1.45rem; line-height: 1.35; max-width: 34rem; }
.why-quote em { color: #7a5c22; }
.why-photo img { width: 100%; height: auto; max-height: 560px; object-fit: cover; object-position: 50% 0; border-radius: 16px 16px 0 0; display: block; }
.mantras { background: linear-gradient(180deg, #e9c877, #d7aa4f); color: var(--ink); }
.mantras .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-block: 1.8rem; text-align: center; font-family: var(--display); font-size: 1.3rem; line-height: 1.25; }
.mantras p { margin: 0; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } .why-photo { max-width: 320px; } .why-cols { grid-template-columns: 1fr; } .mantras .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.buy-section { padding-top: clamp(3rem, 7vw, 5rem); }

/* Big footer */
.big-foot { background: #0f2238; color: #d9e1e7; }
.big-foot .wrap { padding-block: 3rem 1.5rem; }
.newsletter { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; }
.nl-text { display: flex; gap: 1rem; align-items: center; }
.nl-icon { width: 58px; height: 58px; flex: none; border: 1.5px solid #e9b949; border-radius: 50%; display: grid; place-items: center; color: #e9b949; }
.nl-icon svg { width: 26px; height: 26px; }
.newsletter h2 { font-size: 1.9rem; color: #f1c766; text-transform: uppercase; letter-spacing: .02em; }
.newsletter p { margin: .2rem 0 0; font-size: .97rem; }
.nl-form { display: flex; flex: 1 1 340px; max-width: 520px; border: 1.5px solid #e9b949; border-radius: 999px; overflow: hidden; }
.nl-form input[type=email] { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: 1rem var(--body); padding: .8rem 1.2rem; }
.nl-form input::placeholder { color: #aab7c2; }
.nl-form input:focus { outline: none; }
.nl-form:focus-within { box-shadow: 0 0 0 3px rgba(233,185,73,.3); }
.nl-form .btn { border-radius: 999px; background: #f1c766; border-color: #f1c766; color: var(--night); text-transform: uppercase; letter-spacing: .04em; }
.big-foot .ornament { margin: 2.2rem auto; }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-cols h3 { font-size: 1.3rem; color: #f1c766; text-transform: uppercase; letter-spacing: .03em; margin-bottom: .8rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot-cols a { color: #e3e9ee; text-decoration: none; }
.foot-cols a:hover { color: #f1c766; }
.foot-brand b { display: block; font-family: var(--display); font-size: 1.7rem; color: #fff; }
.foot-brand span { font: .85rem var(--ui); color: #f1c766; }
.foot-brand p { margin-top: 1rem; font-family: var(--display); font-size: 1.15rem; }
.foot-social { display: flex; gap: .6rem; margin-top: .6rem; }
.foot-social a { width: 42px; height: 42px; border: 1.5px solid #e9b949; border-radius: 50%; display: grid; place-items: center; color: #e9b949; }
.foot-social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-social a:last-child svg { fill: none; }
.foot-base { border-top: 1px solid rgba(233,185,73,.35); margin-top: 2.2rem; padding-top: 1.2rem; text-align: center; font: .82rem var(--ui); color: #aab7c2; }
@media (max-width: 820px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-cols { grid-template-columns: 1fr; } }

/* News additions */
.news-body h3 a { color: inherit; text-decoration: none; }
.news-body h3 a:hover { color: var(--sea); }
.news-actions { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .2rem; }
button.news-more { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.news-img img { object-position: 50% 15%; }
.about-photo { margin-top: 2rem; width: 100%; max-width: 360px; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; border-radius: 16px; box-shadow: 0 20px 50px rgba(19,38,58,.18); }
.real-cover { width: 100%; max-width: 380px; height: auto; margin: 0 auto; display: block; border-radius: 4px 12px 12px 4px; box-shadow: -12px 24px 50px rgba(19,38,58,.35); }
.viewer { width: min(1100px, 100vw); max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0 auto; padding: 0; border: 0; background: rgba(10,20,32,.97); color: #fff; }
.viewer::backdrop { background: rgba(10,20,32,.85); }
.viewer[open] { display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; gap: 1rem; padding: .8rem max(16px, env(safe-area-inset-left, 0px)); font: 700 .9rem var(--ui); }
.viewer-bar #viewerTitle { flex: 1; }
.viewer-bar #viewerCount { color: #e7cf9c; }
.viewer-stage { position: relative; flex: 1; overflow: auto; display: flex; justify-content: center; align-items: flex-start; padding: 0 16px 24px; }
.viewer-stage img { max-width: 100%; height: auto; border-radius: 6px; }
.viewer-nav { position: fixed; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(10,20,32,.7); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.viewer-nav.prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.viewer-nav.next { right: max(10px, env(safe-area-inset-right, 0px)); }

/* ===== Hero v2: photo fills the right half of the banner ===== */
.me-hero { padding-block: 0; min-height: min(88vh, 760px); display: flex; flex-direction: column; justify-content: flex-end; }
.me-hero-grid { display: block; position: static; padding-block: clamp(3.5rem, 9vw, 7rem) 0; }
.me-hero-text { position: relative; z-index: 2; max-width: 34rem; }
.me-hero h1 { font-size: clamp(3.6rem, 8.5vw, 7.6rem); }
.me-lead { max-width: 26ch; }
.me-portrait { position: absolute; top: 0; right: 0; bottom: 0; width: 54%; margin: 0; z-index: 1; }
.me-portrait picture, .me-portrait img { display: block; width: 100%; height: 100%; }
.me-portrait img { aspect-ratio: auto; object-fit: cover; object-position: 50% 18%; border-radius: 0; box-shadow: none; outline: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32%); mask-image: linear-gradient(90deg, transparent 0%, #000 32%); }
.me-portrait::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(180deg, transparent, var(--night)); pointer-events: none; }
.me-portrait figcaption { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 7.5rem; z-index: 2; }
.me-hero > .wrap:last-child { position: relative; z-index: 2; }
.proof { margin-top: clamp(2.5rem, 6vw, 4rem); }
@media (max-width: 820px) {
  .me-hero { min-height: 0; }
  .me-hero-grid { display: flex; flex-direction: column; padding-top: 0; }
  .me-portrait { position: relative; order: -1; width: calc(100% + 32px); margin: 0 -16px; height: 62vh; max-height: 520px; }
  .me-portrait img { -webkit-mask-image: none; mask-image: none; object-position: 50% 12%; }
  .me-portrait figcaption { bottom: 1.2rem; left: 16px; right: auto; }
  .me-hero-text { margin-top: -3.5rem; }
}

/* ===== Layout fixes v3 ===== */
/* Images keep their shape: height attributes must never stretch them */
img { height: auto; }

/* Hero: text left, photo filling the right side */
.me-hero > .wrap { width: 100%; }
.me-hero-text { max-width: min(34rem, 48%); }
.me-hero h1 { font-size: clamp(3.2rem, 6.2vw, 6.4rem); }
.me-portrait { width: 50%; }
.me-portrait picture { height: 100%; }
.me-portrait img { height: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 18%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 18%, #000 38%); }
.me-portrait figcaption { bottom: 8.5rem; }
@media (max-width: 820px) {
  .me-hero-text { max-width: none; margin-top: -2rem; }
  .me-portrait { width: auto; max-width: none; margin: 0 -16px; height: 60vh; max-height: 520px; }
  .me-portrait img { height: 100%; }
  .me-portrait figcaption { bottom: 3rem; }
}

/* About: text and photo side by side, no tall empty column */
.about-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: start; }
.about-head { display: grid; grid-template-columns: 1fr; gap: 0; }
.about-photo { height: 420px; max-width: none; width: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 12%; margin-top: 1.6rem; }
.about-body .lead { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 1.2rem; }
.about-body p { font-size: 1.08rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-head { grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
  .about-photo { height: 320px; margin-top: 0; grid-row: span 3; grid-column: 2; }
}
@media (max-width: 560px) {
  .about-head { grid-template-columns: 1fr; }
  .about-photo { grid-column: auto; height: 360px; }
}

/* Tighter vertical rhythm overall */
section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section-head { margin-bottom: 1.6rem; }
.creds { margin-top: 2.2rem; }

/* Speaking photo keeps its size */
.speak-photo img { height: 340px; }
@media (max-width: 760px) { .speak-photo img { height: 300px; } }

/* Books page */
.book-entry { margin-top: 1.5rem; }
.why-photo img { height: 520px; max-height: none; }
@media (max-width: 820px) { .why-photo img { height: 380px; } }

/* ===== Layout fixes v4 ===== */
.about-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-figure { margin: 0; }
.about-figure .about-photo { width: 100%; height: auto; aspect-ratio: 4/5; max-height: 640px; object-fit: cover; object-position: 50% 10%; margin: 0; grid-row: auto; grid-column: auto; }
.about-main h2 { font-size: clamp(2.3rem, 4.8vw, 3.4rem); margin: .5rem 0 1.2rem; }
.about-main .pull { margin-bottom: 1.6rem; }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-figure .about-photo { aspect-ratio: 1/1; max-height: 420px; }
}

.speak-top { grid-template-columns: 220px minmax(0, 1fr); align-items: center; gap: 2rem; }
.speak-photo img { height: 260px; }
@media (max-width: 760px) { .speak-top { grid-template-columns: 1fr; } .speak-photo img { height: 300px; max-width: 100%; } }
.talks { display: flex; flex-wrap: wrap; }
.talk { flex: 1 1 170px; }

.news-grid.teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) { .news-grid.teaser { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .me-portrait { width: 100vw; margin-inline: calc(50% - 50vw); }
}
