:root {
  --ink: #091522;
  --ink-soft: #243447;
  --paper: #f5efe4;
  --paper-2: #fffaf0;
  --night: #07111e;
  --blue: #102a3f;
  --copper: #b65b38;
  --copper-dark: #81351e;
  --gold: #e8c78c;
  --line: rgba(9, 21, 34, 0.16);
  --line-light: rgba(255, 250, 240, 0.18);
  --shadow: 0 24px 60px rgba(7, 17, 30, 0.16);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(182,91,56,0.12), transparent 34rem),
    linear-gradient(180deg, var(--paper-2), var(--paper));
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 800;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 4px; border-radius: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,250,240,0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(7,17,30,0.18);
}
.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}
.brand em {
  display: block;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.nav a {
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.nav a:hover { background: rgba(182,91,56,0.11); color: var(--ink); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.hero { padding-top: clamp(44px, 7vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1, h2, h3 { line-height: 1.04; margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.035em; }
h1 { font-size: clamp(3.25rem, 9vw, 7.4rem); max-width: 880px; }
h2 { font-size: clamp(2.1rem, 5vw, 4rem); }
h3 { font-family: var(--serif); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 500; }
p { margin: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 720px; color: var(--ink-soft); font-size: 1.05rem; }
.hero-copy .lead {
  margin-top: 24px;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.5;
}
.hero-copy .lead + p { margin-top: 18px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--night); color: var(--paper-2); box-shadow: 0 12px 30px rgba(7,17,30,0.22); }
.button.primary:hover { background: var(--blue); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.secondary:hover { background: rgba(9,21,34,0.06); }
.button.large { min-width: min(100%, 300px); }
.hero-card {
  background: linear-gradient(180deg, #0b1725, #08111e);
  color: var(--paper-2);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--shadow);
}
.hero-card img {
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.hero-card p {
  margin-top: 20px;
  color: rgba(255,250,240,0.82);
  font-size: 1rem;
}

.substack-panel { padding-top: 0; }
.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(232,199,140,0.34), rgba(255,250,240,0.78)),
    var(--paper-2);
  box-shadow: 0 16px 42px rgba(7,17,30,0.08);
}
.split-panel p:not(.eyebrow) { margin-top: 16px; max-width: 720px; color: var(--ink-soft); }

.section-heading { margin-bottom: clamp(28px, 5vw, 44px); max-width: 760px; }
.section-heading p:not(.eyebrow) { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }
.section-heading.narrow { max-width: 840px; margin-inline: auto; text-align: center; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255,250,240,0.82);
  box-shadow: 0 16px 44px rgba(7,17,30,0.08);
}
.media {
  display: grid;
  place-items: center;
  padding: 26px;
  background: linear-gradient(180deg, #101d2c, #091522);
}
.circle-media img {
  width: min(100%, 280px);
  border-radius: 50%;
}
.square-media { background: #efe8dc; }
.square-media img {
  width: min(100%, 280px);
  border-radius: 18px;
  border: 1px solid rgba(9,21,34,0.08);
}
.cover-media {
  background: radial-gradient(circle at 50% 20%, rgba(255,250,240,0.2), transparent 18rem), #0c1826;
  padding: 24px;
}
.cover-media img {
  width: min(100%, 270px);
  aspect-ratio: auto;
  border-radius: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.card-copy { padding: 26px; }
.card-copy p { color: var(--ink-soft); margin-top: 14px; }
.card-copy .tag {
  margin-top: 0;
  color: var(--copper-dark);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 900;
}
.book-meta {
  font-weight: 800;
  color: var(--ink) !important;
}
.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--copper-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--ink); }
.principles {
  background: var(--night);
  color: var(--paper-2);
}
.principles .eyebrow { color: var(--gold); }
.principles .section-heading p { color: rgba(255,250,240,0.75); }
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--line-light);
}
.principle-grid > div { padding: clamp(24px, 4vw, 36px); background: #0b1725; }
.principle-grid span {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 0.16em;
}
.principle-grid h3 { color: var(--paper-2); }
.principle-grid p { margin-top: 14px; color: rgba(255,250,240,0.74); }
.site-footer {
  background: #050b13;
  color: rgba(255,250,240,0.78);
  padding: 40px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}
.footer-grid strong {
  display: block;
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-bottom: 8px;
}
.footer-grid p { max-width: 520px; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: flex-end; }
.footer-grid a { color: rgba(255,250,240,0.86); text-decoration-color: rgba(232,199,140,0.56); text-underline-offset: 4px; }
.footer-grid a:hover { color: var(--gold); }
.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,250,240,0.12);
  font-size: 0.9rem;
  color: rgba(255,250,240,0.56);
}

@media (max-width: 920px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .nav { justify-content: flex-start; }
  .hero-grid, .split-panel, .cards, .principle-grid, .footer-grid { grid-template-columns: 1fr; }
  .button.large { width: 100%; }
  .footer-grid nav { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .wrap { width: min(calc(100% - 24px), var(--max)); }
  .nav a { padding: 8px 9px; font-size: 0.82rem; }
  .brand em { display: none; }
  h1 { font-size: clamp(2.85rem, 16vw, 4.35rem); }
  .cta-row .button { width: 100%; }
  .card-copy, .media { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
