/* ============================================
   NIKOLAS HAAG — SOMATIC VARIANT
   Warm, earthy, embodied, slow.
   ============================================ */

:root {
  --cream: #f5efe6;
  --cream-deep: #ede4d3;
  --sand: #e4d9c6;
  --clay: #c56a4a;
  --clay-deep: #b55d3a;
  --forest: #4a5c3a;
  --forest-deep: #3a4a2d;
  --ink: #2a2520;
  --ink-soft: #524a42;
  --ink-whisper: #8a7f72;
  --paper: #fbf7f0;
  --shadow-sm: 0 2px 8px rgba(42, 37, 32, 0.06);
  --shadow-md: 0 8px 24px rgba(42, 37, 32, 0.08);
  --shadow-lg: 0 20px 48px rgba(42, 37, 32, 0.10);
  --radius: 10px;
  --radius-lg: 18px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(at 12% 8%, rgba(197, 106, 74, 0.08) 0%, transparent 40%),
    radial-gradient(at 92% 72%, rgba(74, 92, 58, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper noise */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.14 0 0 0 0 0.12 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

main, header, footer, section { position: relative; z-index: 1; }

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

a { color: var(--clay-deep); text-decoration: none; transition: color 0.25s var(--ease); }
a:hover { color: var(--forest); }

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-variation-settings: 'opsz' 144, 'SOFT' 50; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-variation-settings: 'opsz' 60, 'SOFT' 40; }
h3 { font-size: 1.35rem; font-weight: 500; }
h4 { font-size: 1.1rem; font-weight: 500; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
  display: inline-block;
  margin-bottom: 1.4rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  margin-right: 0.75rem;
  vertical-align: middle;
  transform: translateY(-1px);
}

.underline-hand {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'><path d='M2 5 Q 30 1, 60 4 T 118 3' stroke='%23c56a4a' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.35em;
  padding-bottom: 0.15em;
}

/* Layout */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.wrap-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }
@media (min-width: 768px) { section { padding: 7rem 0; } }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(42, 37, 32, 0.08);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--clay) 0%, var(--clay-deep) 70%);
  box-shadow: inset 0 -2px 4px rgba(42, 37, 32, 0.12);
}

.nav-links {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.93rem;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }

.nav-links a.active {
  color: var(--ink);
  font-weight: 500;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--clay);
  border-radius: 2px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.7rem;
  background: var(--paper);
  border: 1px solid rgba(42, 37, 32, 0.1);
  border-radius: 999px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--ink-whisper);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  transition: all 0.25s var(--ease);
}

.lang-btn.active {
  background: var(--clay);
  color: var(--paper);
}

.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 2rem;
  gap: 0.5rem;
  background: var(--cream);
  border-bottom: 1px solid rgba(42, 37, 32, 0.08);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.8rem 0;
  color: var(--ink-soft);
  font-size: 1.1rem;
  border-bottom: 1px solid rgba(42, 37, 32, 0.06);
}

.nav-mobile a.active { color: var(--clay); }

@media (min-width: 900px) {
  .nav-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--clay);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(197, 106, 74, 0.28);
}

.btn-primary:hover {
  background: var(--clay-deep);
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(197, 106, 74, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-2px);
}

.btn-quiet {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(42, 37, 32, 0.1);
}

.btn-quiet:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-arrow::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.btn:hover.btn-arrow::after {
  transform: translateX(4px);
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero { padding: 6rem 0 7rem; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
  }
}

.hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-whisper);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--clay);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Hero illustration (sun + horizon) */
.hero-illo {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}

.hero-illo-sun {
  position: absolute;
  inset: 10% 15% auto auto;
  width: 58%;
  height: 58%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e8a378 0%, var(--clay) 55%, var(--clay-deep) 100%);
  box-shadow:
    0 20px 60px rgba(197, 106, 74, 0.28),
    inset -8px -16px 30px rgba(42, 37, 32, 0.12);
}

.hero-illo-moon {
  position: absolute;
  inset: auto auto 14% 10%;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: inset 10px 6px 20px rgba(42, 37, 32, 0.08);
  opacity: 0.9;
}

.hero-illo-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  height: 1px;
  background: var(--ink);
  opacity: 0.3;
}

.hero-illo-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  bottom: 0;
}

/* Doors (four sections on home) */
.doors {
  background: var(--paper);
  border-top: 1px solid rgba(42, 37, 32, 0.06);
  border-bottom: 1px solid rgba(42, 37, 32, 0.06);
}

.doors-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.doors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .doors-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .doors-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

.door {
  background: var(--cream);
  border: 1px solid rgba(42, 37, 32, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.door:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 106, 74, 0.3);
}

.door-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--forest);
}

.door:nth-child(2) .door-icon { background: rgba(197, 106, 74, 0.18); color: var(--clay-deep); }
.door:nth-child(3) .door-icon { background: rgba(74, 92, 58, 0.14); color: var(--forest); }
.door:nth-child(4) .door-icon { background: var(--sand); color: var(--clay-deep); }

.door-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-whisper);
  letter-spacing: 0.08em;
}

.door h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.door p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin-bottom: 1.6rem;
  flex: 1;
}

.door-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--clay-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.door-link::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.door:hover .door-link::after {
  transform: translateX(4px);
}

/* Principles */
.principles {
  background: var(--cream);
}

.principles-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
}

.principle {
  text-align: left;
  position: relative;
  padding-left: 1.2rem;
}

.principle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--clay);
}

.principle h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-style: italic;
  font-family: var(--serif);
  font-weight: 400;
}

.principle p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Bio (about) on home */
.bio {
  background: var(--paper);
  border-top: 1px solid rgba(42, 37, 32, 0.06);
}

.bio-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .bio-inner { grid-template-columns: 0.7fr 1fr; gap: 4rem; }
}

.bio-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 38%, #d89977 0%, var(--clay) 45%, var(--clay-deep) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 360px;
  width: 100%;
}

.bio-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 75%, rgba(74, 92, 58, 0.25) 0%, transparent 55%);
}

.bio-portrait-initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 7rem);
  color: rgba(251, 247, 240, 0.92);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.bio-portrait-img {
  position: absolute;
  object-position: top;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bio p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  line-height: 1.72;
}

/* Newsletter */
.newsletter {
  background: var(--forest);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(197, 106, 74, 0.45) 0%, rgba(197, 106, 74, 0) 70%);
  right: -120px;
  top: -120px;
}

.newsletter-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter h2 { color: var(--cream); margin-bottom: 1rem; }
.newsletter p { color: rgba(245, 239, 230, 0.85); margin-bottom: 2.2rem; font-size: 1.08rem; }

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 1rem 1.3rem;
  border-radius: 999px;
  border: none;
  font: inherit;
  font-size: 0.98rem;
  background: rgba(251, 247, 240, 0.95);
  color: var(--ink);
}

.newsletter-form input:focus {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(245, 239, 230, 0.75);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 0.8rem;
  font-weight: 400;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 0.6rem; }
.footer a { color: rgba(245, 239, 230, 0.75); transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--clay); }

.footer-bottom {
  border-top: 1px solid rgba(245, 239, 230, 0.12);
  padding-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: rgba(245, 239, 230, 0.5);
  font-size: 0.85rem;
}

/* Podcast page */
.pod-hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.pod-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .pod-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}

.pod-disc {
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, var(--forest) 0%, var(--forest-deep) 70%);
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pod-disc::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(245, 239, 230, 0.3);
}

.pod-disc::after {
  content: "";
  width: 30%;
  height: 30%;
  background: var(--clay);
  border-radius: 50%;
  box-shadow: inset 0 -4px 12px rgba(42, 37, 32, 0.2);
}

.listen-on {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(42, 37, 32, 0.1);
}

.listen-on-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-whisper);
  align-self: center;
  margin-right: 0.6rem;
}

.listen-chip {
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(42, 37, 32, 0.1);
  font-size: 0.88rem;
  color: var(--ink);
  transition: all 0.25s var(--ease);
  font-weight: 500;
}

.listen-chip:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
  transform: translateY(-2px);
}

.episodes {
  background: var(--paper);
}

.episodes-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.episodes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

@media (min-width: 680px) {
  .episodes-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .episodes-grid { grid-template-columns: repeat(3, 1fr); }
}

.ep-card {
  background: var(--cream);
  border: 1px solid rgba(42, 37, 32, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s var(--ease);
  position: relative;
}

.ep-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 106, 74, 0.3);
}

.ep-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--clay-deep);
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}

.ep-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  line-height: 1.25;
}

.ep-card p {
  color: var(--ink-soft);
  font-size: 0.93rem;
  flex: 1;
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.ep-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-whisper);
  padding-top: 1rem;
  border-top: 1px solid rgba(42, 37, 32, 0.08);
}

.ep-listen {
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ep-listen::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--clay);
  border-radius: 50%;
  display: inline-block;
}

/* Book page */
.book-hero {
  padding: 5rem 0;
}

.book-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.book-feature + .book-feature {
  border-top: 1px solid rgba(42, 37, 32, 0.1);
  margin-top: 2rem;
  padding-top: 5rem;
}

@media (min-width: 900px) {
  .book-feature { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; }
  .book-feature.reverse { grid-template-columns: 1.1fr 0.9fr; }
  .book-feature.reverse .book-text { order: -1; }
}

.book-cover {
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
  transition: transform 0.4s var(--ease);
}

.book-cover:hover { transform: rotate(0deg) scale(1.02); }

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-cover-placeholder {
  max-width: 340px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  padding: 2.6rem 2rem;
  background: linear-gradient(155deg, var(--forest) 0%, var(--forest-deep) 100%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.book-cover-placeholder::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--clay) 0%, var(--clay-deep) 70%);
  right: -40px;
  top: -40px;
  opacity: 0.85;
}

.book-cover-placeholder:hover { transform: rotate(0deg) scale(1.02); }

.book-cover-placeholder .bc-eyebrow {
  position: relative;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 239, 230, 0.7);
}

.book-cover-placeholder .bc-title {
  position: relative;
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.15;
  margin-top: 0.6rem;
  font-weight: 500;
}

.book-cover-placeholder .bc-sub {
  position: relative;
  font-size: 0.82rem;
  color: rgba(245, 239, 230, 0.65);
  font-style: italic;
}

.book-cover-placeholder .bc-name {
  position: relative;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}

.book-text h2 { margin-bottom: 1.2rem; }

.book-text .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.book-text p { color: var(--ink-soft); margin-bottom: 1rem; }

.book-features {
  list-style: none;
  margin: 1.8rem 0;
}

.book-features li {
  padding: 0.6rem 0 0.6rem 1.6rem;
  position: relative;
  color: var(--ink-soft);
  font-size: 0.96rem;
  border-bottom: 1px solid rgba(42, 37, 32, 0.06);
}

.book-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.book-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1.8rem;
  font-size: 0.85rem;
  color: var(--ink-whisper);
}

.book-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* Writing page */
.essays {
  padding-top: 3rem;
}

.essays-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 720px) {
  .essays-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .essays-grid { grid-template-columns: repeat(3, 1fr); }
}

.essay-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  border: 1px solid rgba(42, 37, 32, 0.07);
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}

.essay-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(197, 106, 74, 0.3);
}

.essay-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--forest));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.essay-card:hover::before { opacity: 1; }

.essay-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--ink-whisper);
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  font-weight: 500;
}

.essay-meta .cat {
  color: var(--clay-deep);
}

.essay-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.25;
}

.essay-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.4rem;
  line-height: 1.65;
}

.essay-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.essay-link::after { content: "→"; transition: transform 0.3s var(--ease); }
.essay-card:hover .essay-link::after { transform: translateX(4px); }
.essay-card:hover .essay-link { color: var(--clay-deep); }

/* Work page */
.work-hero {
  padding: 5rem 0 4rem;
}

.work-hero-inner {
  max-width: 780px;
}

.work-hero p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.68;
}

.offerings {
  background: var(--paper);
}

.offering {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  align-items: start;
}

.offering + .offering {
  border-top: 1px solid rgba(42, 37, 32, 0.1);
}

@media (min-width: 900px) {
  .offering { grid-template-columns: 280px 1fr; gap: 4rem; }
}

.offering-label {
  position: relative;
}

.offering-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--clay);
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
}

.offering-label h2 {
  font-size: 1.9rem;
  line-height: 1.15;
}

.offering-shape {
  width: 80px;
  height: 80px;
  margin-top: 1.5rem;
  border-radius: 50%;
  background: var(--sand);
  position: relative;
  overflow: hidden;
}

.offering:nth-child(1) .offering-shape { background: radial-gradient(circle at 35% 35%, var(--clay) 0%, var(--clay-deep) 80%); }
.offering:nth-child(2) .offering-shape { background: radial-gradient(circle at 35% 35%, var(--forest) 0%, var(--forest-deep) 80%); }
.offering:nth-child(3) .offering-shape { background: radial-gradient(circle at 35% 35%, #d4a574 0%, #b08055 80%); }

.offering-body p {
  color: var(--ink-soft);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.02rem;
}

.offering-sub {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 1.5rem 0 0.8rem;
}

.offering-body ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.offering-body li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--ink-soft);
  position: relative;
  font-size: 0.95rem;
}

.offering-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
}

.offering-logistics {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-top: 1px solid rgba(42, 37, 32, 0.08);
  border-bottom: 1px solid rgba(42, 37, 32, 0.08);
  margin: 1.4rem 0 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-whisper);
}

.offering-logistics strong {
  color: var(--ink);
  font-weight: 500;
}

.disclaimer {
  background: var(--sand);
  border-left: 3px solid var(--clay);
  padding: 1.4rem 1.6rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink);
  margin-top: 2rem;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* Contact form */
.contact {
  background: var(--cream);
}

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
}

.contact-head { text-align: center; margin-bottom: 3rem; }

.contact-form {
  display: grid;
  gap: 1.2rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: var(--paper);
  border: 1px solid rgba(42, 37, 32, 0.12);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 4px rgba(197, 106, 74, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* FAQ */
.faq { background: var(--paper); }

.faq-inner { max-width: 780px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid rgba(42, 37, 32, 0.12);
  padding: 1.6rem 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--clay);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

/* Anchor variant of the lang-btn pill */
a.lang-btn {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}
a.lang-btn:hover:not(.active) {
  color: var(--ink);
  background: rgba(42, 37, 32, 0.06);
}
body.theme-dark a.lang-btn:hover:not(.active) {
  color: var(--ink);
  background: rgba(235, 225, 208, 0.08);
}

/* Page header for inner pages */
.page-hero {
  padding: 5rem 0 4rem;
  position: relative;
}

.page-hero-inner {
  max-width: 780px;
}

.page-hero h1 {
  margin-bottom: 1.5rem;
}

.page-hero .lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Utilities */
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }
.mt-md { margin-top: 1.5rem; }

/* About host block */
.host-block {
  background: var(--cream);
  padding: 5rem 0;
  border-top: 1px solid rgba(42, 37, 32, 0.06);
}

.host-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 820px) {
  .host-inner { grid-template-columns: 240px 1fr; gap: 3.5rem; }
}

.host-avatar {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #d89977 0%, var(--clay) 50%, var(--clay-deep) 100%);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 300;
}

.host-avatars {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.host-avatar-figure {
  margin: 0;
  flex: 1 1 0;
  text-align: center;
}

.host-avatar-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-md);
  display: block;
}

.host-avatar-figure figcaption {
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.host-text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ============================================
   ESSAY PAGE (long-form articles)
   ============================================ */
.essay-page .essay-body hr {
  border: 0;
  height: 1px;
  background: rgba(42, 37, 32, 0.12);
  margin: 3.5rem auto 4.5rem;
  width: 80px;
}

.essay-page .essay-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 1.6rem;
}

.essay-page .essay-body h2 + p {
  margin-top: 0;
}

.essay-page .essay-body p {
  margin: 0 0 1.4rem;
}

body.theme-dark .essay-page .essay-body hr {
  background: rgba(235, 225, 208, 0.14);
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid rgba(42, 37, 32, 0.1);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  padding: 0;
  margin-left: 0.4rem;
}
.theme-toggle:hover {
  color: var(--clay);
  border-color: rgba(197, 106, 74, 0.35);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease), opacity 0.2s var(--ease);
}
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
body.theme-dark .theme-toggle .icon-moon { display: block; }
body.theme-dark .theme-toggle .icon-sun { display: none; }

/* Smooth theme crossfade */
body, .nav, .nav-mobile, .door, .episode-card, .book-card,
.essay-card, .offering-card, .faq-card, .contact-form,
section, .footer, .hero, .newsletter, .principle {
  transition:
    background-color 0.45s var(--ease),
    border-color 0.45s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.45s var(--ease);
}

/* ============================================
   DARK MODE
   Warm near-black grounded in ink undertones.
   ============================================ */
body.theme-dark {
  --cream: #15110d;
  --cream-deep: #1d1814;
  --sand: #27201a;
  --clay: #dd8260;
  --clay-deep: #c56a4a;
  --forest: #8aa571;
  --forest-deep: #6b8557;
  --ink: #ebe1d0;
  --ink-soft: #c4b8a5;
  --ink-whisper: #8a7f72;
  --paper: #1f1814;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.5);
}

body.theme-dark {
  background: var(--cream);
  background-image:
    radial-gradient(at 12% 8%, rgba(221, 130, 96, 0.10) 0%, transparent 40%),
    radial-gradient(at 92% 72%, rgba(138, 165, 113, 0.06) 0%, transparent 55%);
}

/* Re-tint the noise overlay so it doesn't wash out on dark */
body.theme-dark::before {
  opacity: 0.28;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.92 0 0 0 0 0.88 0 0 0 0 0.81 0 0 0 0.25 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Hand-drawn underline — shift to warmer clay to read on dark */
body.theme-dark .underline-hand {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 8' preserveAspectRatio='none'><path d='M2 5 Q 30 1, 60 4 T 118 3' stroke='%23dd8260' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
}

/* Nav */
body.theme-dark .nav {
  background: rgba(21, 17, 13, 0.85);
  border-bottom-color: rgba(235, 225, 208, 0.08);
}
body.theme-dark .nav-mobile {
  background: var(--cream);
  border-bottom-color: rgba(235, 225, 208, 0.08);
}
body.theme-dark .nav-mobile a { border-bottom-color: rgba(235, 225, 208, 0.06); }

/* Lang + theme toggle chrome */
body.theme-dark .lang-toggle { border-color: rgba(235, 225, 208, 0.12); }
body.theme-dark .theme-toggle { border-color: rgba(235, 225, 208, 0.12); }
body.theme-dark .lang-btn.active { color: #15110d; }

/* Brand mark */
body.theme-dark .brand-mark {
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.45);
}

/* Buttons */
body.theme-dark .btn-primary { color: #15110d; }
body.theme-dark .btn-primary:hover { color: #15110d; }
body.theme-dark .btn-outline { color: var(--ink); border-color: var(--ink); }
body.theme-dark .btn-outline:hover { background: var(--ink); color: var(--cream); }
body.theme-dark .btn-ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(235, 225, 208, 0.14);
}
body.theme-dark .btn-ghost:hover { border-color: var(--clay); color: var(--clay); }

/* Cards, doors, sections that relied on hard-coded borders/dividers */
body.theme-dark .door,
body.theme-dark .episode-card,
body.theme-dark .book-card,
body.theme-dark .essay-card,
body.theme-dark .offering-card,
body.theme-dark .faq-card,
body.theme-dark .principle,
body.theme-dark .host-block,
body.theme-dark .contact-form,
body.theme-dark .logistics-box,
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: var(--paper);
  border-color: rgba(235, 225, 208, 0.09);
}

body.theme-dark .door:hover,
body.theme-dark .essay-card:hover,
body.theme-dark .book-card:hover,
body.theme-dark .offering-card:hover {
  border-color: rgba(221, 130, 96, 0.45);
}

/* Any section-level borders/dividers tied to the old ink rgba */
body.theme-dark .about-strip,
body.theme-dark .principles,
body.theme-dark .how-i-work,
body.theme-dark .host-block,
body.theme-dark .essay-grid,
body.theme-dark .faq {
  border-color: rgba(235, 225, 208, 0.08);
}

/* Form inputs */
body.theme-dark input::placeholder,
body.theme-dark textarea::placeholder {
  color: rgba(235, 225, 208, 0.4);
}
body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  color: var(--ink);
}
body.theme-dark input:focus,
body.theme-dark select:focus,
body.theme-dark textarea:focus {
  border-color: var(--clay);
  outline: none;
}

/* Newsletter + footer — these were dark in light mode; keep them
   deep but shift the tone so they don't clash with the new bg */
body.theme-dark .newsletter,
body.theme-dark .footer {
  background: #0c0805;
  border-top-color: rgba(235, 225, 208, 0.08);
}
body.theme-dark .newsletter h2 { color: var(--cream-deep); }
body.theme-dark .newsletter p { color: rgba(235, 225, 208, 0.8); }
body.theme-dark .footer a { color: rgba(235, 225, 208, 0.72); }
body.theme-dark .footer a:hover { color: var(--clay); }
body.theme-dark .footer-bottom { border-top-color: rgba(235, 225, 208, 0.1); }

/* Cover placeholder for Men's Inner Work (CSS-only cover block) */
body.theme-dark .cover-placeholder {
  background: linear-gradient(140deg, #1a1410 0%, #2a1f18 100%);
  border: 1px solid rgba(235, 225, 208, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

/* Table-like lists (podcast episode rows etc.) */
body.theme-dark .episode-row,
body.theme-dark .faq-item,
body.theme-dark details {
  border-color: rgba(235, 225, 208, 0.08);
}

/* Pill / category chips */
body.theme-dark .chip,
body.theme-dark .category,
body.theme-dark .tag {
  background: rgba(221, 130, 96, 0.16);
  color: var(--clay);
  border-color: transparent;
}

/* Hairlines anywhere that used rgba(42,37,32,...) */
body.theme-dark hr {
  border-color: rgba(235, 225, 208, 0.1);
  background: rgba(235, 225, 208, 0.1);
}

/* Hero sun — boost a touch for dark */
body.theme-dark .hero-sun,
body.theme-dark .hero .sun-disc {
  filter: brightness(1.08) saturate(1.1);
}

/* Subtle lift on cards when dark */
body.theme-dark .door:hover,
body.theme-dark .episode-card:hover,
body.theme-dark .book-card:hover,
body.theme-dark .offering-card:hover,
body.theme-dark .essay-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Respect system preference as the first run default when unset */
@media (prefers-color-scheme: dark) {
  body.theme-auto {
    /* handled via JS — :root vars already flipped through .theme-dark. */
  }
}
