/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f0e0c;
  --ink-mid: #3a3832;
  --ink-light: #7a7870;
  --cream: #f7f4ee;
  --cream-dark: #ede9e0;
  --accent: #b5460f;
  --accent-light: #f0ece4;
  --rule: #d4cfc4;
  --white: #ffffff;
  --nav-h: 72px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--ink) !important;
  color: var(--cream) !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.2s, opacity 0.2s;
}

/* ── HOME HERO ── */
.home-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  padding-top: var(--nav-h);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem 5rem 3rem;
  border-right: 1px solid var(--rule);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-subhead {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 500px;
  margin-bottom: 3rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

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

.hero-right {
  display: flex;
  flex-direction: column;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.hero-photo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.hero-photo img {
  max-width: 500px;
  max-height: 500px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
}

/* Replace background-image inline in index.html */
.hero-photo-placeholder {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #1a1812;
}

.hero-photo-placeholder span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.hero-bio-strip {
  padding: 2rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-bio-label {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.hero-bio-text {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
}

.hero-bio-text strong {
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

/* ── SECTION PRIMITIVES ── */
.section { padding: 6rem 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section--white { background: var(--white); border-top: 1px solid var(--rule); }
.section--dark { background: var(--ink); border-top: 1px solid var(--ink); }
.section--tinted { background: var(--cream-dark); border-top: 1px solid var(--rule); }

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-label--dim { color: rgba(255,255,255,0.35); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.section-title--light { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 620px;
  margin-bottom: 0;
}

.section-intro--dim { color: rgba(255,255,255,0.55); }

/* ── WHAT I DO (3-up cards) ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 4rem;
  border: 1px solid var(--rule);
}

.pillar {
  padding: 2.5rem;
  border-right: 1px solid var(--rule);
}
.pillar:last-child { border-right: none; }

.pillar-icon {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.85rem;
  line-height: 1.2;
}

.pillar-desc {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink-mid);
}

.pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.pillar-link:hover { text-decoration: underline; }

/* ── WRITING LIST ── */
.writing-grid {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--rule);
}

.writing-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.writing-item:hover { background: var(--cream-dark); margin: 0 -1.5rem; padding: 1.5rem; }

.writing-pub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.writing-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.writing-date {
  font-size: 0.78rem;
  color: var(--ink-light);
  white-space: nowrap;
}

/* Full writing archive page */
.writing-page-header {
  padding: 5rem 3rem 3rem;
  border-bottom: 1px solid var(--rule);
  padding-top: calc(var(--nav-h) + 3rem);
}

.writing-page-list { padding: 0 3rem 6rem; }

.writing-page-list .section-inner { max-width: 860px; }

.writing-year-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 3.5rem;
  margin-bottom: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.writing-year-heading + .writing-grid { margin-top: 0; }

/* ── POST PAGE ── */
.post-page { padding-top: var(--nav-h); }

.post-header {
  background: var(--ink);
  padding: 5rem 3rem 4rem;
}

.post-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.post-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  display: block;
  margin-bottom: 1rem;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.post-dek {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

.post-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
}

.post-byline {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}

.post-external-link:hover { opacity: 0.85; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.post-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.12);
}

.post-body {
  padding: 4rem 3rem;
  background: var(--white);
}

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

.post-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

.post-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 3rem 0 1rem;
}

.post-read-full {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.post-read-full p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  margin-bottom: 0.5rem;
}

.post-read-full a {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: underline;
  word-break: break-all;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-mid);
}

/* ── ABOUT PAGE ── */
.about-page { padding-top: var(--nav-h); }

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  min-height: 70vh;
}

.about-photo-col {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.about-photo-col img {
  max-width: 500px;
  max-height: 500px;
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.75;
}

.about-photo-placeholder-block {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1812;
}

.about-photo-placeholder-block span {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

.about-intro-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 4rem;
  border-left: 1px solid var(--rule);
}

.about-intro-col .section-label { margin-bottom: 1rem; }

.about-intro-col .section-title { margin-bottom: 2rem; }

.about-body p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-mid);
  margin-bottom: 1.5rem;
}

.about-body p strong { font-weight: 500; color: var(--ink); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 3rem;
  border: 1px solid var(--rule);
}

.about-stat {
  padding: 1.5rem;
  border-right: 1px solid var(--rule);
  text-align: center;
}
.about-stat:last-child { border-right: none; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ink);
  display: block;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── CREDENTIALS LOGO GRID ── */
.logos-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  margin-bottom: 1rem;
}

.logo-grid-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 1.5rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  margin-top: 1.5rem;
}

.logo-cell {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.logo-cell span {
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-light);
  letter-spacing: 0.04em;
  text-align: center;
}

.logo-cell img {
  display: block;
  max-width: 120px;
  max-height: 45px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.82;
}

.logo-cell img.logo-tall {
  max-height: 50px;
  max-width: 120px;
}

.logo-cell img.logo-mid {
  max-height: 32px;
}

.logo-group-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  text-align: center;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.75rem 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.2);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.75); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .site-nav { padding: 0 1.5rem; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--rule); padding: 1.5rem; gap: 1.25rem; }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; }

  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 3rem 1.5rem; border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-right { min-height: auto; }
  .hero-photo { padding: 2rem; }
  .hero-photo img { max-width: 200px; max-height: 200px; }
  .hero-bio-strip { padding: 1.5rem; }

  .about-photo-col { padding: 2rem; min-height: auto; }
  .about-photo-col img { max-width: 200px; max-height: 200px; }

  .section { padding: 4rem 1.5rem; }

  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--rule); }
  .pillar:last-child { border-bottom: none; }

  .writing-item { grid-template-columns: 1fr; gap: 0.35rem; padding: 1.25rem 0; }
  .writing-date { display: none; }

  .about-hero { grid-template-columns: 1fr; }
  .about-photo-col { min-height: 280px; }
  .about-intro-col { padding: 3rem 1.5rem; border-left: none; border-top: 1px solid var(--rule); }

  .logo-grid-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 540px) {
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem; }
}
