:root {
  --ink: #14110d;
  --ink-soft: #57534e;
  --ink-faint: #79716b;
  --ivory: #faf8f4;
  --ivory-deep: #f3efe7;
  --night: #121009;
  --night-soft: #1c1917;
  --gold: #a16207;
  --gold-bright: #c9971c;
  --gold-soft: rgba(161, 98, 7, 0.35);
  --rule: #e5dfd3;
  --rule-dark: rgba(250, 248, 244, 0.14);
  --serif: "Playfair Display", "New York", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; cursor: pointer; }

::selection { background: var(--gold); color: var(--ivory); }

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px min(6vw, 84px);
}
.nav-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.nav nav { display: flex; gap: 36px; }
.nav nav a {
  color: rgba(250, 248, 244, 0.72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}
.nav nav a:hover { color: var(--gold-bright); }

/* Light nav variant for article pages */
.nav--light { position: static; background: var(--night); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  min-height: 92dvh;
  background: var(--night);
  color: var(--ivory);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px min(4vw, 56px) 96px min(6vw, 84px);
  position: relative;
  z-index: 2;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 8.5vw, 108px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold-bright);
}
.hero-sub {
  font-size: 19px;
  font-weight: 300;
  color: rgba(250, 248, 244, 0.85);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
.hero-line {
  font-size: 15px;
  font-weight: 300;
  color: rgba(250, 248, 244, 0.55);
  max-width: 46ch;
  line-height: 1.8;
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.btn-gold {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-gold:hover { background: var(--gold); color: var(--night); }
.hero-photo {
  position: relative;
  min-height: 480px;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  filter: saturate(0.82) contrast(1.04);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--night) 0%, rgba(18, 16, 9, 0.25) 34%, rgba(18, 16, 9, 0) 60%);
}
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: min(6vw, 84px);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.4);
}

/* ---------- Shared section chrome ---------- */
main { display: block; }
.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 104px min(6vw, 48px);
}
.section + .section { border-top: 1px solid var(--rule); }
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.section-label .num { font-family: var(--serif); font-size: 14px; font-style: italic; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 40px;
  max-width: 18ch;
}

/* ---------- About ---------- */
.about-cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.about-body p {
  margin-bottom: 22px;
  font-size: 17px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.85;
}
.about-body p:first-of-type::first-letter {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 0.8;
  float: left;
  padding: 10px 12px 0 0;
  color: var(--gold);
  font-weight: 600;
}
.about-body a { color: var(--gold); border-bottom: 1px solid var(--gold-soft); transition: border-color 0.25s; }
.about-body a:hover { border-bottom-color: var(--gold); }
.about-photo { position: sticky; top: 48px; }
.about-photo img {
  filter: saturate(0.92);
}
.about-photo figcaption {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.about-photo .frame {
  position: relative;
  padding: 0;
  border: 1px solid var(--rule);
}
.about-photo .frame::after {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Book ---------- */
.book {
  background: var(--night);
  color: var(--ivory);
  border-top: none !important;
}
.book-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 112px min(6vw, 48px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.book .section-label { color: var(--gold-bright); }
.book h2 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.06;
  margin-bottom: 28px;
}
.book h2 em { font-style: italic; color: var(--gold-bright); font-weight: 500; }
.book p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(250, 248, 244, 0.75);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 56ch;
}
.book-quote {
  border-left: 1px solid var(--gold);
  padding: 8px 0 8px 32px;
}
.book-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ivory);
}
.book-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.5);
}

/* ---------- Perspectives ---------- */
.post-card {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 32px;
  align-items: baseline;
  transition: background 0.3s ease;
}
.post-card:first-of-type { border-top: 1px solid var(--rule); }
.post-index {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
}
.post-card h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
}
.post-card h3 a { transition: color 0.25s ease; }
.post-card h3 a:hover { color: var(--gold); }
.post-card p { color: var(--ink-soft); font-weight: 300; font-size: 15.5px; max-width: 58ch; }
.post-meta {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}
.all-link {
  display: inline-block;
  margin-top: 36px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold-soft);
  padding-bottom: 4px;
  transition: border-color 0.25s;
}
.all-link:hover { border-bottom-color: var(--gold); }

/* ---------- Connect ---------- */
.connect { text-align: center; }
.connect .section-label { justify-content: center; }
.connect h2 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.connect > p {
  font-weight: 300;
  color: var(--ink-soft);
  margin-bottom: 44px;
  font-size: 16px;
}
.connect-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.connect-links li { display: flex; align-items: center; }
.connect-links li + li::before {
  content: "·";
  color: var(--gold);
  margin: 0 28px;
  font-size: 20px;
}
.connect-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 5px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.connect-links a:hover { color: var(--gold); border-bottom-color: var(--gold-soft); }

/* ---------- Article pages ---------- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 88px min(6vw, 40px) 64px;
}
.article .back {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}
.article h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 18px;
}
.article .post-meta { margin-bottom: 48px; display: block; }
.article p {
  margin-bottom: 24px;
  font-size: 17.5px;
  font-weight: 300;
  line-height: 1.9;
}
.article figure { margin: 40px 0; }

/* ---------- Footer ---------- */
footer {
  background: var(--night);
  color: rgba(250, 248, 244, 0.5);
  text-align: center;
  padding: 72px min(6vw, 48px) 56px;
  margin-top: 104px;
}
footer .monogram {
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  color: var(--gold-bright);
  display: block;
  margin-bottom: 22px;
}
footer p { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }

/* ---------- Reveal animation (opt-in via html.js-reveal so content is never hidden without JS) ---------- */
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-text { padding: 132px 6vw 64px; }
  .hero-photo { min-height: 56vh; order: -1; display: none; }
  .hero { background-image: linear-gradient(rgba(18,16,9,0.78), rgba(18,16,9,0.92)); }
  .hero-mobile-photo { display: block; }
  .about-cols { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { position: static; }
  .book-inner { grid-template-columns: 1fr; gap: 48px; padding: 88px 6vw; }
  .post-card { grid-template-columns: 1fr; gap: 10px; }
  .post-index { display: none; }
  .nav { padding: 24px 5vw; }
  .nav nav { gap: 20px; }
  .nav nav a { font-size: 11px; letter-spacing: 0.12em; }
  .section { padding: 72px 6vw; }
  .connect-links li + li::before { margin: 0 14px; }
}

@media (max-width: 900px) {
  .hero-photo { display: block; position: relative; min-height: 52vh; order: -1; }
  .hero-photo::after {
    background: linear-gradient(180deg, rgba(18,16,9,0.35) 0%, rgba(18,16,9,0.1) 40%, var(--night) 96%);
  }
}
