/* ═══════════════════════════════════════════
   100 Years of Moving Dirt — style.css
   ═══════════════════════════════════════════ */

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

:root {
  --ink:        #1a1510;
  --body-text:  #2c2c2c;
  --mid-gray:   #666;
  --light-gray: #999;
  --border:     #ddd;
  --bg:         #faf9f7;
  --paper:      #f5f0e8;
  --aged:       #ede4d0;
  --rust:       #8b3a1a;
  --gold:       #c9963a;
  --max-w:      740px;
  --serif:      'Playfair Display', Georgia, serif;
  --body-font:  'Source Serif 4', Georgia, serif;
}

/* ── BASE ── */
html {
  font-size: 17px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--body-font);
  font-weight: 300;
  color: var(--body-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── SKIP LINK (accessibility) ── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 16px;
  background: var(--rust);
  color: #fff;
  font-family: var(--body-font);
  font-size: 0.9rem;
  display: block;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 72px;
  overflow: hidden;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,8,5,0.25) 0%,
    rgba(10,8,5,0.55) 55%,
    rgba(10,8,5,0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  color: #fff;
}

.hero-eyebrow {
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

.hero-byline {
  font-family: var(--body-font);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.hero-byline strong {
  font-weight: 600;
  color: #fff;
}

.hero-cta {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-family: var(--body-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #a04520;
  transform: translateY(-2px);
  outline: none;
}

.hero-cta:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ══════════════════════════════════════
   ARTICLE
══════════════════════════════════════ */
.article {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px 32px 96px;
}

/* ── LEAD ── */
.lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--rust);
  margin-bottom: 3em;
  border-left: 3px solid var(--gold);
  padding-left: 24px;
}

/* ── SECTIONS ── */
.article section {
  margin-top: 3.5em;
}

/* ── HEADINGS ── */
h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--rust);
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid var(--border);
}

/* ── BODY ── */
p {
  margin-bottom: 1.4em;
}

ul, ol {
  margin: 1em 0 1.4em 1.5em;
}

li {
  margin-bottom: 0.75em;
  line-height: 1.7;
}

li strong {
  font-weight: 600;
  color: var(--ink);
}

em { font-style: italic; }
strong { font-weight: 600; }

/* ── BLOCKQUOTE ── */
blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  background: var(--paper);
  border-left: 4px solid var(--rust);
}

blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 0.5em;
}

blockquote cite {
  display: block;
  font-family: var(--body-font);
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-top: 8px;
}

/* ── CALLOUT BOX ── */
.callout {
  background: var(--aged);
  border: 1px solid rgba(139,58,26,0.2);
  border-radius: 4px;
  padding: 28px 32px;
  margin: 2em 0;
}

.callout h3 {
  font-family: var(--body-font);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 18px;
}

.callout dl {
  display: grid;
  gap: 16px;
}

.callout dt {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 2px;
}

.callout dd {
  font-size: 0.9rem;
  color: var(--mid-gray);
  line-height: 1.6;
  margin-left: 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
}

/* ── FIGURES ── */
figure {
  margin: 2.5em -32px;
}

@media (max-width: 600px) {
  figure { margin: 2em 0; }
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  /* Subtle sepia for vintage feel */
  filter: sepia(15%) contrast(1.03);
  transition: filter 0.4s ease;
}

figure:hover img,
figure:focus-within img {
  filter: sepia(0%) contrast(1.05);
}

figcaption {
  font-family: var(--body-font);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--light-gray);
  text-align: center;
  margin-top: 10px;
  padding: 0 32px;
  line-height: 1.5;
}

/* ── CLOSING ── */
.closing-italic {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  padding: 28px 24px;
  background: var(--paper);
  border-top: 2px solid var(--rust);
  border-bottom: 1px solid var(--border);
  margin: 2em 0;
}

.author-sig {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--rust);
  margin: 1.5em 0 2em;
  text-align: right;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 48px 32px 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.footer-sub {
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.footer-contact {
  font-size: 0.85rem;
  margin-bottom: 20px;
  min-height: 1.5em; /* reserve space while JS loads */
}

/* Contact links rendered by JS */
.footer-contact a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--gold);
  text-decoration: underline;
  outline: none;
}

.footer-sep {
  color: rgba(255,255,255,0.25);
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
}

/* ══════════════════════════════════════
   FOCUS STYLES (accessibility)
══════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .hero { min-height: 70vh; }
  .hero-content { padding: 0 20px; }
  .article { padding: 48px 20px 72px; }

  .lead { font-size: 1.15rem; }

  blockquote { padding: 18px 20px; }
  blockquote p { font-size: 1rem; }

  figcaption { padding: 0; }
  .callout { padding: 20px; }
}

/* ══════════════════════════════════════
   PRINT
══════════════════════════════════════ */
@media print {
  .hero-cta,
  .site-footer { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
  h2 { color: #000; border-bottom: 1pt solid #000; }
  .lead, blockquote p, .closing-italic { color: #000; }
  figure { margin: 1em 0; }
  figure img { max-width: 100%; }
}
