/* ==========================================================================
   An Important Introduction — Site Styles
   Shared stylesheet for all pages
   ========================================================================== */

:root {
  --ink: #1a1814;
  --ink-soft: #3a3530;
  --ink-muted: #6b645c;
  --paper: #f5f1ea;
  --paper-warm: #ebe4d6;
  --rule: #d4cbb8;
  --accent: #7a2c1f;
  --gold: #b8956a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ===== TOP BAR ===== */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.topbar a { color: var(--paper); }
.topbar a:hover { color: var(--gold); }
.topbar.dark-bar { color: var(--ink); }
.topbar.dark-bar a { color: var(--ink); }
.topbar.dark-bar a:hover { color: var(--accent); }

.topbar .brand-mark { font-weight: 500; }
.topbar .topbar-nav { display: flex; gap: 32px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink);
}
.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: kenBurns 20s ease-in-out infinite alternate;
}
.hero-image.no-zoom { animation: none; }
@keyframes kenBurns {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 30%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 48px 80px;
  color: var(--paper);
  max-width: 760px;
}
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-subhead {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: rgba(245, 241, 234, 0.92);
  max-width: 620px;
}

/* ===== ARTICLE CONTAINER ===== */
.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 96px 32px;
}
.article-wide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

.article-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 24px;
}

.article-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.1;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.article-deck {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto 56px;
}

.article-meta {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 64px;
}
.article-meta::before, .article-meta::after {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--rule);
  vertical-align: middle;
  margin: 0 16px;
}

.article-body {
  font-size: 19px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.article-body p {
  margin-bottom: 1.4em;
  text-indent: 0;
}
.article-body p + p {
  text-indent: 1.6em;
}
.article-body p.no-indent + p,
.article-body h2 + p,
.article-body h3 + p,
.article-body .pullquote + p,
.article-body blockquote + p {
  text-indent: 0;
}
.article-body p.first-paragraph::first-letter,
.article-body p.has-dropcap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 5.5em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.08em 0 -0.06em;
  color: var(--accent);
}

.article-body h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  color: var(--ink);
  margin: 56px 0 24px;
}

.article-body h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 48px 0 20px;
}

.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { font-style: italic; }

.article-body blockquote {
  margin: 48px 0;
  padding: 0 32px;
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink-soft);
}

.article-body ol, .article-body ul {
  margin: 1.4em 0;
  padding-left: 1.6em;
}
.article-body ol li, .article-body ul li {
  margin-bottom: 0.8em;
}

.pullquote {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  margin: 72px 0;
  padding: 0 24px;
  position: relative;
}
.pullquote::before, .pullquote::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 32px;
}
.pullquote::after {
  margin: 32px auto 0;
}
.pullquote cite {
  display: block;
  margin-top: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  text-align: center;
  margin: 80px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-divider::before, .section-divider::after {
  content: "";
  display: inline-block;
  width: 64px;
  height: 1px;
  background: var(--rule);
  vertical-align: middle;
  margin: 0 20px;
}

/* ===== FURTHER ESSAYS GRID ===== */
.further-essays {
  background: var(--paper-warm);
  padding: 80px 32px;
  margin: 80px 0;
}
.further-essays.no-background {
  background: transparent;
  padding: 40px 0;
  margin: 60px 0;
}
.further-essays-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.further-essays-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
}
.further-essays-label::before, .further-essays-label::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--rule);
  vertical-align: middle;
  margin: 0 16px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.card {
  display: block;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: all 0.25s ease;
  color: inherit;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(26, 24, 20, 0.08);
}
.card-category {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}
.card-excerpt {
  font-family: 'EB Garamond', serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.card-read-more {
  display: inline-block;
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== INLINE FIGURES (for Memorial Day, etc) ===== */
.figure-full {
  margin: 56px -120px;
  max-width: calc(100% + 240px);
}
.figure-full img {
  display: block;
  width: 100%;
  height: auto;
}
.figure-full figcaption {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}
.figure-inline {
  margin: 48px 0;
}
.figure-inline img {
  display: block;
  width: 100%;
  height: auto;
}
.figure-inline figcaption {
  margin-top: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
}

/* Photo gallery for Memorial Day */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0;
}
.photo-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}
.photo-gallery .span-2 {
  grid-column: span 2;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 64px 32px 48px;
  background: var(--paper);
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.site-footer .brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.site-footer .tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  color: var(--ink-muted);
  margin-bottom: 32px;
}
.site-footer .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.site-footer .meta a { color: var(--ink-muted); }
.site-footer .meta a:hover { color: var(--accent); }

/* ===== BACK TO HOME BUTTON ===== */
.back-link {
  display: inline-block;
  margin-top: 64px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  transition: all 0.2s;
}
.back-link:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===== ESSAY PAGE HEADER (smaller hero) ===== */
.essay-header {
  background: var(--paper);
  padding: 120px 32px 64px;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}
.essay-header-inner {
  max-width: 800px;
  margin: 0 auto;
}
.essay-header-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.essay-header-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .figure-full { margin: 40px 0; max-width: 100%; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  .topbar { padding: 20px 24px; }
  .topbar-nav { gap: 20px; }
  .hero-content { padding: 0 24px 56px; }
  .article-wrap { padding: 64px 24px; }
  .further-essays { padding: 56px 24px; }
  .cards-grid { grid-template-columns: 1fr; gap: 24px; }
  .photo-gallery { grid-template-columns: 1fr; }
  .essay-header { padding: 88px 24px 48px; }
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 26px; margin: 40px 0 18px; }
  .pullquote { margin: 48px 0; }
  .article-body p + p { text-indent: 1.2em; }
}

@media (max-width: 420px) {
  .topbar-nav { display: none; }
  .article-body p.has-dropcap::first-letter,
  .article-body p.first-paragraph::first-letter { font-size: 4.5em; }
}
