@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400;1,600&family=Inter:wght@300;400;500&display=swap');

/* ── Tokens ── */
:root {
  --bg:         #0e0d0b;
  --bg-2:       #161410;
  --bg-3:       #1e1c18;
  --text:       #e4ddd0;
  --text-2:     #9a9080;
  --text-3:     #5a5448;
  --gold:       #c9a96e;
  --gold-dim:   #8a6e3e;
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.13);
  --serif:      'Crimson Text', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
  --max:        1100px;
  --pad:        clamp(20px, 5vw, 60px);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,13,11,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-2);
  margin: 5px 0;
  transition: all 0.2s;
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-name {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 600;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-name em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-2);
}
.hero-bio {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 500px;
  margin-bottom: 36px;
}
.hero-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  padding: 12px 24px;
  transition: color 0.2s, border-color 0.2s;
}
.hero-contact:hover { color: var(--text); border-color: var(--border-2); }
.hero-photo-wrap {
  position: relative;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  object-position: 45% 25%;
  filter: grayscale(15%) contrast(1.1) brightness(1.05);
}
.hero-photo-frame {
  position: relative;
}
.hero-photo-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, transparent 40%);
  z-index: 1;
  pointer-events: none;
}
.hero-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Rotating Quote ── */
.quote-band {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.quote-text {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  font-style: italic;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s;
}
.quote-attr {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: opacity 0.5s;
}
.quote-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 28px;
}
.quote-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.quote-dot.active { background: var(--gold-dim); }

/* ── Section shared ── */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
}
.section-title {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
}
.section-more {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  transition: color 0.2s;
}
.section-more:hover { color: var(--gold); }

/* ── Books grid ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 40px 32px;
}
.book-card { }
.book-cover-wrap {
  position: relative;
  margin-bottom: 18px;
  overflow: hidden;
}
.book-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.92);
}
.book-card:hover .book-cover {
  transform: scale(1.02);
  filter: brightness(1.0);
}
.book-cover-placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.book-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 6px;
}
.book-meta {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 10px;
  line-height: 1.4;
}
.book-links { display: flex; gap: 14px; flex-wrap: wrap; }
.book-link {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.book-link:hover { color: var(--gold); border-color: var(--gold-dim); }
.book-oop {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 2px;
}

/* ── Articles list ── */
.articles-list { }
.article-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}
.article-item:first-child { border-top: 1px solid var(--border); }
.article-item:hover { padding-left: 8px; }
.article-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  transition: color 0.2s;
}
.article-item:hover .article-title { color: var(--gold); }
.article-source {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Links page ── */
.links-list { list-style: none; }
.links-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.links-list li:first-child { border-top: 1px solid var(--border); }
.links-list a {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-2);
  transition: color 0.2s;
}
.links-list a:hover { color: var(--gold); }

/* ── Page hero (inner pages) ── */
.page-hero {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 16px;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.05;
}

/* ── Gallery strip ── */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 48px 0;
}
.gallery-strip img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(30%) brightness(0.8);
  transition: filter 0.3s;
}
.gallery-strip img:hover { filter: grayscale(0%) brightness(1.0); }

/* ── Footer ── */
.site-footer {
  padding: 48px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-3);
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-2); }
.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ── Divider rule ── */
.rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-photo-wrap {
    order: -1;
    max-width: 260px;
    margin: 0 auto;
  }
  .hero-name { font-size: clamp(44px, 12vw, 72px); }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 24px var(--pad);
    gap: 20px;
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .site-footer .container { flex-direction: column; align-items: flex-start; gap: 16px; }
}
