/* ═══════════════════════════════════════════════
   Christopher H. Conn — Author Website
   Dark minimal. The prose is the design.
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --border: #1e1e1e;
  --text: #e8e4df;
  --text-dim: #7a7670;
  --accent: #c9a227;
  --accent-dim: #a68520;
  --serif: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

::selection { background: rgba(201, 162, 39, 0.25); color: var(--text); }

/* ─── LAYOUT ─── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── NAVIGATION ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.nav-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
}

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

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* ─── HERO ─── */
.hero {
  padding: 180px 0 120px;
  text-align: left;
}

.hero h1 {
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

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

.hero-subtitle {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.hero-intro {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
  max-width: 600px;
}

/* ─── SECTIONS ─── */
section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}

/* ─── TYPOGRAPHY ─── */
h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
}

h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 16px;
}

p {
  margin-bottom: 1.5em;
}

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

blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 2em 0;
  font-style: italic;
  color: var(--text-dim);
}

/* ─── FIVE THESES ─── */
.theses {
  counter-reset: thesis;
}

.thesis {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: thesis;
  position: relative;
  padding-left: 48px;
}

.thesis:last-child { border-bottom: none; }

.thesis::before {
  content: counter(thesis);
  position: absolute;
  left: 0;
  top: 28px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.6;
}

.thesis p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ─── ESSAYS GRID ─── */
.essays-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.essay-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left 0.2s;
}

.essay-item:hover { padding-left: 8px; }

.essay-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
}

.essay-meta {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-left: 24px;
}

/* ─── BOOK SECTION ─── */
.book-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.book-meta-label {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.book-meta-value {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* ─── CONTACT ─── */
.contact-line {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contact-email {
  font-size: 1.3rem;
  color: var(--accent);
  font-family: var(--serif);
}

/* ─── FOOTER ─── */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── SEPARATOR ─── */
.sep {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 48px 0;
  opacity: 0.4;
}

/* ─── PAGE HEADER (for inner pages) ─── */
.page-header {
  padding: 140px 0 60px;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1.2;
}

/* ─── PROSE (essay/excerpt display) ─── */
.prose {
  font-size: 1.05rem;
  line-height: 1.9;
}

.prose p { margin-bottom: 1.6em; }

.prose p:first-of-type::first-line {
  font-variant: small-caps;
  letter-spacing: 0.04em;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .hero { padding: 140px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .book-details { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
}

/* ─── PULL QUOTES ─── */
.pull-quote-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.pull-quote {
  text-align: center;
  padding: 24px 0 16px;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 0;
}

.pull-quote-sub {
  text-align: center;
  padding: 0 0 8px;
}

.pull-quote-sub p {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 0;
}

.pull-quote-link {
  display: block;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 20px;
}

/* ─── BIO PHOTO ─── */
.bio-layout {
  display: flex;
  flex-direction: column;
}

.bio-photo-wrap {
  margin-bottom: 48px;
}

.bio-photo {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  filter: grayscale(0%);
  border-radius: 2px;
}

.bio-photo-caption {
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-top: 12px;
}

/* ─── REVIEW / PRESS ─── */
.review-body blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  margin: 2.5em 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.7;
}

.passages {
  margin-top: 48px;
}

.passage {
  display: flex;
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.passage:last-child { border-bottom: none; }

.passage-number {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.5;
  min-width: 40px;
  line-height: 1;
  padding-top: 4px;
}

.passage-content {
  flex: 1;
}

.passage-content h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 4px;
}

.passage-chapter {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.passage-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

.passage-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
}

/* ─── RESPONSIVE (press/review additions) ─── */
@media (max-width: 768px) {
  .pull-quote p { font-size: 1.25rem; }
  .passage { flex-direction: column; gap: 8px; padding: 32px 0; }
  .passage-number { font-size: 1.8rem; }
}

/* ─── FADE IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
