:root {
  --bg: #f7f3ea;
  --surface: #ffffff;
  --surface-2: #edf2f5;
  --ink: #10243c;
  --muted: #5f6f7e;
  --line: #d7e0e6;
  --navy: #0d2742;
  --navy-2: #163b61;
  --gold: #b98537;
  --gold-soft: #ead9bc;
  --shadow: 0 18px 60px rgba(13, 39, 66, .10);
  --radius: 22px;
  --max: 1180px;
  --header-h: 82px;
}

[data-theme="dark"] {
  --bg: #0a1724;
  --surface: #102236;
  --surface-2: #142c44;
  --ink: #eef4f8;
  --muted: #b5c1cb;
  --line: #274158;
  --navy: #07121d;
  --navy-2: #163b61;
  --gold: #d2a85f;
  --gold-soft: #4b3d28;
  --shadow: 0 18px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { background: var(--gold-soft); color: var(--ink); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 9999;
  background: var(--surface);
  color: var(--ink);
  padding: .75rem 1rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 820px); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.kicker { color: var(--gold); font-weight: 700; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-width: 225px; }
.brand img { width: 248px; max-height: 58px; object-fit: contain; object-position: left center; }
.nav-wrap { display: flex; align-items: center; gap: 1.1rem; }
.site-nav { display: flex; align-items: center; gap: 1.15rem; }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 700;
  padding: .45rem 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .1rem;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.icon-button, .menu-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.menu-button { display: none; border-radius: 12px; }
.icon-button:hover, .menu-button:hover { border-color: var(--gold); }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5.5rem, 9vw, 9rem) 0 clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 24rem),
    radial-gradient(circle at 20% 95%, color-mix(in srgb, var(--navy-2) 15%, transparent), transparent 25rem),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, transparent 48%, color-mix(in srgb, var(--line) 60%, transparent) 49%, transparent 50%),
    linear-gradient(150deg, transparent 48%, color-mix(in srgb, var(--line) 60%, transparent) 49%, transparent 50%);
  background-size: 82px 82px;
  mask-image: linear-gradient(to right, transparent 5%, black 65%, transparent 100%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(2.5rem, 6vw, 6rem); }
.hero h1 {
  margin: 1rem 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.4rem);
  line-height: .96;
  letter-spacing: -.045em;
  font-weight: 500;
}
.hero h1 span { color: var(--gold); }
.hero-lead { max-width: 760px; color: var(--muted); font-size: clamp(1.08rem, 1.8vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .88rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 28px rgba(13,39,66,.22); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.button-secondary:hover { border-color: var(--gold); }
.hero-card {
  position: relative;
  min-height: 430px;
  border-radius: 36px;
  background: linear-gradient(155deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.hero-card::before, .hero-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
}
.hero-card::before { width: 320px; height: 320px; right: -90px; top: -70px; }
.hero-card::after { width: 220px; height: 220px; left: -80px; bottom: -60px; }
.hero-card img { position: relative; z-index: 1; width: min(94%, 460px); filter: brightness(0) invert(1) opacity(.94); }
.hero-quote {
  position: absolute;
  z-index: 2;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.4rem;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  text-align: center;
}

.stats { margin-top: -2.2rem; position: relative; z-index: 5; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 1.4rem 1.5rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; color: var(--navy-2); }
[data-theme="dark"] .stat strong { color: var(--gold); }
.stat span { color: var(--muted); font-size: .92rem; }

.section { padding: clamp(4.5rem, 8vw, 8rem) 0; }
.section-alt { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: .7fr 1.3fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.section-heading h2, .page-hero h1, .article-header h1 {
  margin: .75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.025em;
}
.section-heading h2 { font-size: clamp(2.3rem, 4.8vw, 4.5rem); }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }

.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.prose { font-size: 1.05rem; }
.prose p:first-child { font-size: 1.22rem; color: var(--ink); }
.quote-panel {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}
.quote-panel blockquote { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.45; }
.quote-panel cite { display: block; margin-top: 1.2rem; color: rgba(255,255,255,.68); font-style: normal; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.55rem;
  min-height: 245px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--gold) 65%, var(--line)); box-shadow: var(--shadow); }
.card-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--gold-soft);
  color: var(--navy);
  font-weight: 900;
  margin-bottom: 1.2rem;
}
.card h3 { margin: 0 0 .65rem; font-family: Georgia, serif; font-size: 1.32rem; font-weight: 500; }
.card p { margin: 0; color: var(--muted); }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 165px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 3rem; padding: 1.5rem 0; position: relative; }
.timeline-item::before { content: ""; position: absolute; left: 159px; top: 2rem; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); }
.section-alt .timeline-item::before { border-color: var(--surface); }
.timeline-time { color: var(--gold); font-weight: 800; }
.timeline-content { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.timeline-content h3 { margin: 0 0 .35rem; font-family: Georgia, serif; font-weight: 500; font-size: 1.35rem; }
.timeline-content p { margin: 0; color: var(--muted); }

.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.book-card {
  border-radius: var(--radius);
  padding: 1.7rem;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--navy) 95%, #000), color-mix(in srgb, var(--navy-2) 88%, #000));
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.book-card:nth-child(2) { background: linear-gradient(145deg, #4c2b1c, #875229); }
.book-card:nth-child(3) { background: linear-gradient(145deg, #263445, #536174); }
.book-card:hover { transform: translateY(-5px); }
.book-label { color: rgba(255,255,255,.65); font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.book-card h3 { font-family: Georgia, serif; font-size: 2rem; line-height: 1.1; font-weight: 500; margin: 1rem 0; }
.book-card p { color: rgba(255,255,255,.72); margin: 0; }
.book-link { margin-top: 1.4rem; font-weight: 800; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-visual {
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--gold) 65%, transparent), transparent 8rem),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  color: white;
  font-family: Georgia, serif;
  font-size: 2.1rem;
}
.post-card:nth-child(2) .post-visual { background: radial-gradient(circle at 30% 40%, #c59a55, transparent 8rem), linear-gradient(145deg, #4c2b1c, #8a5a32); }
.post-card:nth-child(3) .post-visual { background: radial-gradient(circle at 70% 30%, #6f849c, transparent 9rem), linear-gradient(145deg, #182f48, #51677e); }
.post-body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: .6rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.post-card h3 { margin: .75rem 0 .65rem; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.25; font-weight: 500; }
.post-card p { margin: 0; color: var(--muted); }
.post-read { margin-top: auto; padding-top: 1rem; color: var(--gold); font-weight: 800; }

.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  border-radius: 32px;
  background: var(--navy);
  color: #fff;
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--shadow);
}
.contact-panel h2 { font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.5rem); font-weight: 500; line-height: 1.05; margin: 0 0 1rem; }
.contact-panel p { color: rgba(255,255,255,.72); }
.contact-links { display: grid; gap: .7rem; align-content: center; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); text-decoration: none; color: #fff; }
.contact-link:hover { border-color: var(--gold); background: rgba(255,255,255,.04); }

.site-footer { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; color: var(--muted); font-size: .9rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

.page-hero { padding: clamp(4.5rem, 8vw, 7rem) 0 3.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.18rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2rem; }
.filter-button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .65rem .9rem; border-radius: 999px; cursor: pointer; font-weight: 750; }
.filter-button.active, .filter-button:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-card[hidden] { display: none; }

.article-shell { padding: 4rem 0 7rem; }
.article-header { width: min(calc(100% - 2rem), 930px); margin-inline: auto; text-align: center; }
.article-header h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); }
.article-deck { color: var(--muted); font-size: 1.2rem; max-width: 800px; margin: 1.3rem auto; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem 1.2rem; color: var(--muted); font-size: .9rem; }
.article-hero-visual { margin: 2.5rem auto 0; width: min(calc(100% - 2rem), 1080px); min-height: 360px; border-radius: 30px; display: grid; place-items: center; background: radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--gold) 70%, transparent), transparent 10rem), linear-gradient(145deg, var(--navy), var(--navy-2)); color: #fff; font-family: Georgia, serif; font-size: clamp(3rem, 9vw, 7rem); box-shadow: var(--shadow); }
.article-content { width: min(calc(100% - 2rem), 760px); margin: 3.5rem auto 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; line-height: 1.82; }
.article-content h2 { font-size: 2rem; line-height: 1.2; margin: 2.5rem 0 1rem; font-weight: 500; }
.article-content h3 { font-size: 1.45rem; margin-top: 2rem; font-weight: 500; }
.article-content p { margin: 0 0 1.35rem; }
.article-content blockquote { margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--gold); background: var(--surface); border-radius: 0 16px 16px 0; font-size: 1.32rem; }
.article-content ul { padding-left: 1.3rem; }
.article-content .note { font-family: Inter, sans-serif; font-size: .95rem; color: var(--muted); padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.article-footer { width: min(calc(100% - 2rem), 760px); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.tag { display: inline-flex; padding: .35rem .65rem; border-radius: 999px; background: var(--gold-soft); color: var(--ink); font-size: .8rem; font-weight: 800; }

.privacy-content { width: min(calc(100% - 2rem), 820px); margin: 0 auto; }
.privacy-content h2 { font-family: Georgia, serif; font-weight: 500; font-size: 1.8rem; margin-top: 2.5rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-panel { grid-template-columns: 1fr; }
  .hero-card { min-height: 330px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; }
  .card-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .book-grid { grid-template-columns: 1fr; }
  .book-card { min-height: 280px; }
  .site-nav {
    position: fixed;
    top: calc(var(--header-h) - 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .25rem; }
  .menu-button { display: inline-grid; }
}

@media (max-width: 680px) {
  :root { --header-h: 70px; }
  .container, .narrow { width: min(calc(100% - 1.2rem), var(--max)); }
  .brand { min-width: 0; }
  .brand img { width: 190px; max-height: 48px; }
  .nav-wrap { gap: .5rem; }
  .hero { padding-top: 4rem; }
  .hero h1 { font-size: clamp(3rem, 17vw, 5rem); }
  .hero-actions .button { width: 100%; }
  .stats { margin-top: -1.2rem; }
  .stats-grid, .card-grid, .blog-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: .35rem; padding-left: 2rem; }
  .timeline-item::before { left: 1px; top: 2rem; }
  .footer-inner, .article-footer { flex-direction: column; align-items: flex-start; }
  .article-hero-visual { min-height: 250px; }
}

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

@media print {
  .site-header, .site-footer, .hero-actions, .filter-bar { display: none !important; }
  body { background: #fff; color: #000; }
  .article-content { width: 100%; font-size: 11pt; }
}
