/* AUVEN Media website styles
   Colors, type and spacing follow the AUVEN Media brand guidelines. */

:root {
  --navy: #14213D;
  --midnight: #0D1629;
  --navy-soft: #1B2A4A;
  --gold: #B8893B;
  --gold-text: #8C6424;
  --gold-on-navy: #C9A25E;
  --ivory: #F6F1E7;
  --paper: #FBF8F2;
  --stone: #E7E1D5;
  --line: #DDD5C5;
  --line-dark: #2C3A5C;
  --ink: #14213D;
  --ink-body: #3F4A63;
  --ink-muted: #5B6478;
  --ink-on-navy-muted: #C3C7D1;

  --font-display: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-6: 48px;
  --space-8: 80px;
  --section: 112px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--space-3); top: -60px; z-index: 100;
  background: var(--navy); color: var(--ivory); padding: 12px 18px;
}
.skip-link:focus { top: var(--space-3); color: var(--ivory); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--space-6); }

/* ---------- type ---------- */

.eyebrow {
  margin: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold-text);
}
.on-navy .eyebrow { color: var(--gold-on-navy); }

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  line-height: 1.05;
}
h2 { font-size: clamp(36px, 4.5vw, 52px); }
h3 { font-size: 28px; line-height: 1.15; }

.lede { font-size: 17px; line-height: 1.7; color: var(--ink-body); margin: 0; }
.on-navy .lede { color: var(--ink-on-navy-muted); }

.italic { font-family: var(--font-display); font-style: italic; font-weight: 500; }

.muted { color: var(--ink-muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-navy { background: var(--navy); color: var(--ivory); }
.btn-navy:hover { background: var(--midnight); color: var(--ivory); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #A67A30; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }
.on-navy .btn-outline { border-color: var(--ivory); color: var(--ivory); }
.on-navy .btn-outline:hover { background: var(--ivory); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 22px; font-size: 14px; }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.link-strong { font-size: 15px; font-weight: 600; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 241, 231, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 84px; }
.logo img { height: 40px; width: auto; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 32px; }
.main-nav a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--gold-text); font-weight: 600; }

.nav-toggle {
  display: none; min-width: 44px; min-height: 44px;
  background: none; border: 1px solid var(--navy); cursor: pointer; color: var(--navy);
  align-items: center; justify-content: center;
}

/* ---------- sections ---------- */

.section { padding: var(--section) 0; }
.section-paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-stone { background: var(--stone); }
.on-navy { background: var(--navy); color: var(--ivory); }

.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: 56px; }
.section-head .stack { display: flex; flex-direction: column; gap: 12px; }

.stack { display: flex; flex-direction: column; gap: 20px; }

/* ---------- hero ---------- */

.hero { padding: 96px 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(56px, 7vw, 80px); line-height: 0.98; letter-spacing: 0.02em; }
.hero .subtitle { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; margin: 0; }
.hero .also { font-size: 14px; color: var(--ink-on-navy-muted); margin: 0; }
.hero .also em { font-family: var(--font-display); font-size: 18px; color: var(--ivory); }

.hero-books { position: relative; height: 480px; }
.hero-books .book { position: absolute; }
.hero-books .book-back { left: 4%; top: 40px; width: 52%; }
.hero-books .book-front { right: 2%; top: 0; width: 56%; box-shadow: 0 30px 60px rgba(0,0,0,.45); }

/* ---------- CSS book covers ---------- */

.book {
  aspect-ratio: 1000 / 1545;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
  font-family: var(--font-display); font-weight: 600; line-height: 1.02;
  box-shadow: 0 18px 40px rgba(13, 22, 41, 0.22);
}
.book .author { font-family: var(--font-sans); font-weight: 400; font-size: 10px; letter-spacing: 0.35em; }
.book .rule { width: 36px; height: 1px; background: var(--gold); }
.book .sub { font-style: italic; font-weight: 500; font-size: 15px; }
.book .mark { width: 22px; height: 22px; }
.book.spread { justify-content: space-between; padding: 34px 22px; }

.cover-midnight { background: var(--midnight); color: var(--ivory); }
.cover-midnight .author { color: var(--gold-on-navy); }
.cover-midnight .sub { color: var(--ink-on-navy-muted); }
.cover-gold { background: var(--gold-text); color: var(--ivory); }
.cover-navy { background: var(--navy); color: var(--ivory); }
.cover-navy-soft { background: var(--navy-soft); color: var(--ivory); }
.cover-stone { background: var(--stone); color: var(--navy); }
.cover-paper { background: var(--paper); color: var(--navy); border: 1px solid var(--line); }
.cover-paper .sub { color: var(--gold-text); }

/* ---------- book grid ---------- */

.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 40px; }
.book-card { display: flex; flex-direction: column; gap: 14px; }
.book-card .book { font-size: 38px; margin-bottom: 4px; transition: transform .25s; }
.book-card:hover .book { transform: translateY(-6px); }
.book-card .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.book-card .tag.soon { color: var(--ink-muted); }
.book-card p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* ---------- series ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.series-books { display: flex; gap: 14px; justify-content: center; align-items: flex-end; }
.series-books .book { width: 28%; font-size: 15px; line-height: 1.1; padding: 12px; }
.series-books .book:nth-child(2) { transform: translateY(-24px); }

/* ---------- newsletter ---------- */

.newsletter { text-align: center; padding: 104px 0; }
.newsletter .inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.newsletter h2 { font-size: clamp(40px, 5vw, 56px); }
.signup { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 560px; margin-top: 8px; }
.signup input {
  flex: 1 1 260px; min-height: 52px; padding: 0 18px;
  font: inherit; font-size: 16px;
  border: 1px solid var(--ivory); background: transparent; color: var(--ivory);
}
.signup input::placeholder { color: var(--ink-on-navy-muted); }
.signup .btn { min-height: 52px; }
.fine { font-size: 13px; color: var(--ink-on-navy-muted); margin: 0; }
.form-msg { font-size: 15px; color: var(--gold-on-navy); margin: 0; min-height: 1.5em; }

/* ---------- events ---------- */

.events { border-top: 1px solid var(--navy); list-style: none; margin: 0; padding: 0; }
.event { display: grid; grid-template-columns: 120px 1fr auto; gap: 32px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--line); }
.event .when { display: flex; flex-direction: column; }
.event .month { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; color: var(--gold-text); }
.event .year { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; }
.event h3 { font-size: 30px; }
.event p { margin: 6px 0 0; font-size: 15px; color: var(--ink-muted); }

/* ---------- journal ---------- */

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.post { display: flex; flex-direction: column; gap: 14px; }
.post .tag { font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold-text); margin: 0; }
.post h3 a { text-decoration: none; }
.post p { margin: 0; font-size: 15px; color: var(--ink-muted); }

.placeholder {
  background: var(--stone); color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; padding: 16px;
}
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-4-5 { aspect-ratio: 4 / 5; }

/* ---------- about ---------- */

.quote { font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.35; margin: 0; }

/* ---------- book page ---------- */

.breadcrumb { font-size: 14px; color: var(--ink-muted); margin: 0 0 40px; }
.breadcrumb a { color: var(--ink-muted); }
.product { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.product-cover { background: var(--stone); padding: 56px; display: flex; justify-content: center; }
.product-cover .book { width: 100%; max-width: 360px; font-size: 72px; line-height: 0.95; }
.product h1 { font-size: clamp(52px, 6vw, 72px); line-height: 0.98; }

.formats { border: 0; padding: 0; margin: 8px 0 0; }
.formats legend { font-size: 12px; font-weight: 600; letter-spacing: 0.25em; color: var(--ink-muted); margin-bottom: 12px; padding: 0; }
.format-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.format-options label { border: 1px solid #C9BFAC; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; position: relative; }
.format-options input { position: absolute; opacity: 0; }
.format-options label:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--paper); }
.format-options label:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.format-options .name { font-size: 15px; font-weight: 600; }
.format-options .price { font-size: 14px; color: var(--ink-muted); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; margin: 6px 0 0; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--ink-muted); }
.facts dd { margin: 6px 0 0; font-size: 15px; }

.takeaways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; }
.takeaways li { border-top: 2px solid var(--navy); padding-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.takeaways .num { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1; color: var(--gold-text); }
.takeaways h3 { font-size: 26px; }
.takeaways p { margin: 0; font-size: 15px; color: var(--ink-muted); }

.praise { margin: 64px 0 0; text-align: center; }
.praise p { margin: 0 auto; max-width: 820px; font-family: var(--font-display); font-style: italic; font-size: clamp(26px, 3vw, 34px); line-height: 1.3; }
.praise footer { margin-top: 16px; font-size: 14px; color: var(--ink-muted); }

.also-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.also-grid a { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.also-grid .book { font-size: 24px; }
.also-grid .title { font-family: var(--font-display); font-weight: 600; font-size: 22px; }

/* ---------- footer ---------- */

.site-footer { background: var(--midnight); color: var(--ivory); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 44px; width: auto; }
.footer-brand .italic { font-size: 22px; margin: 18px 0 0; }
.footer-col h2 { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.25em; color: var(--gold-on-navy); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--ivory); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--gold-on-navy); }
.footer-bottom { border-top: 1px solid var(--line-dark); margin-top: 56px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-on-navy-muted); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  :root { --section: 88px; }
  .wrap { padding: 0 24px; }
  .hero-grid, .two-col, .product { grid-template-columns: 1fr; gap: 48px; }
  .hero-books { height: 420px; max-width: 460px; margin: 0 auto; width: 100%; }
  .book-grid, .post-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .takeaways { grid-template-columns: 1fr; gap: 28px; }
  .also-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); display: none; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; }
  .main-nav li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 16px; width: 100%; }
}

@media (max-width: 600px) {
  :root { --section: 72px; }
  .wrap { padding: 0 20px; }
  .hero { padding: 64px 0; }
  .hero-books { height: 360px; }
  .book-grid, .post-grid { grid-template-columns: 1fr; }
  .book-card .book { max-width: 280px; }
  .event { grid-template-columns: 80px 1fr; gap: 16px; }
  .event .btn { grid-column: 1 / -1; }
  .format-options { grid-template-columns: 1fr; }
  .product-cover { padding: 32px; }
  .product-cover .book { font-size: 56px; }
}

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

/* ---------- real cover images (drop files into assets/img/covers/) ---------- */
.cover-slot { position: relative; display: block; }
.cover-slot .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 18px 40px rgba(13, 22, 41, 0.22); }
.hero-books .cover-slot { position: absolute; }
.hero-books .cover-slot.back { left: 4%; top: 40px; width: 52%; }
.hero-books .cover-slot.front { right: 2%; top: 0; width: 56%; }
.hero-books .cover-slot .book { position: static; width: 100%; }

/* ---------- photos from her sites ---------- */
.photo { background: var(--stone); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- She Builds Asia feature ---------- */
.sba { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--paper); border: 1px solid var(--line); margin-bottom: 48px; }
.sba .photo { min-height: 360px; }
.sba .body { padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.sba .meta { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; color: var(--ink-muted); margin: 0; padding: 0; list-style: none; }
.sba .meta strong { color: var(--ink); font-weight: 600; }

/* ---------- speaking ---------- */
.talks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.talks li { border-top: 1px solid var(--line-dark); padding: 22px 0; display: flex; flex-direction: column; gap: 6px; }
.talks h3 { font-size: 26px; }
.talks p { margin: 0; font-size: 15px; color: var(--ink-on-navy-muted); }
.talks .badge { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--navy); background: var(--gold); padding: 4px 10px; }
.formats-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.formats-list li { border: 1px solid var(--line-dark); padding: 10px 16px; font-size: 14px; }

.trusted { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; }
.trusted p { margin: 0; font-size: 15px; color: var(--ink-muted); line-height: 2; }
.trusted .eyebrow { margin-bottom: 12px; }

@media (max-width: 960px) {
  .sba { grid-template-columns: 1fr; }
  .sba .photo { min-height: 260px; }
  .talks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) { .sba .body { padding: 28px; } }

.takeaways.four { grid-template-columns: repeat(4, 1fr); }
.takeaways.four h3 { font-size: 24px; }
.closing-line { margin: 64px 0 0; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; }
@media (max-width: 960px) { .takeaways.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .takeaways.four { grid-template-columns: 1fr; } }

.book-grid.four { grid-template-columns: repeat(4, 1fr); gap: 48px 32px; }
.book-card .byline { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink); margin: -6px 0 0; }
.also-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 880px; }
@media (max-width: 960px) { .book-grid.four { grid-template-columns: 1fr 1fr; gap: 36px 20px; } .also-grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .book-grid.four { grid-template-columns: 1fr; } .also-grid.three { grid-template-columns: 1fr 1fr; } }

.post-art { aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; font-family: var(--font-display); }
.post-art .big { font-weight: 600; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.05; }
.post-art { gap: 16px; }
.post-art .src { font-family: var(--font-sans); font-size: 11px; font-weight: 600; letter-spacing: 0.25em; }
.post-art.navy { background: var(--navy); color: var(--ivory); }
.post-art.navy .src { color: var(--gold-on-navy); }
.post-art.stone { background: var(--stone); color: var(--navy); }
.post-art.stone .src { color: var(--gold-text); }
.post-art.midnight { background: var(--midnight); color: var(--ivory); }
.post-art.midnight .src { color: var(--gold-on-navy); }

/* ---------- book pages ---------- */
.pitch { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.3; }
.takeaways.five { grid-template-columns: repeat(5, 1fr); gap: 32px; }
.takeaways.five h3 { font-size: 22px; }
.author-block { display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: center; max-width: 1000px; }
.author-photo { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 6px var(--ivory), 0 0 0 7px var(--gold); }
.jacket { width: 100%; height: auto; box-shadow: 0 24px 60px rgba(13, 22, 41, 0.18); }
.buy-band { padding: 88px 0; }
.buy-inner { display: grid; grid-template-columns: 200px 1fr; gap: 56px; align-items: center; max-width: 900px; }
.buy-cover { width: 200px; height: auto; box-shadow: 0 24px 50px rgba(0,0,0,.4); }
.buy-band h2 { font-size: clamp(34px, 4vw, 48px); }
@media (max-width: 960px) {
  .takeaways.five { grid-template-columns: 1fr 1fr; }
  .author-block { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
  .buy-inner { grid-template-columns: 140px 1fr; gap: 32px; }
  .buy-cover { width: 140px; }
}
@media (max-width: 600px) {
  .takeaways.five { grid-template-columns: 1fr; }
  .author-photo { width: 180px; height: 180px; }
  .buy-inner { grid-template-columns: 1fr; }
}
