/* Base: shared colors, spacing, and readable typography. */
:root {
  --paper: #f4f2ec;
  --ink: #252a25;
  --muted: #626958;
  --accent: #a35638;
  --rule: #c6c8bc;
  --page-width: 960px;
  --text-width: 680px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p { margin: 0 0 20px; font: 18px/1.8 Georgia, serif; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
section, article, aside { scroll-margin-top: 24px; }

/* Header: a single aligned row that wraps naturally on small screens. */
header, footer {
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
header { padding-block: 24px; border-bottom: 1px solid var(--rule); }
.brand { font-size: 22px; font-weight: 700; letter-spacing: -.7px; text-decoration: none; }
.dot { color: var(--accent); }
nav { display: flex; gap: 24px; font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; }
nav a { text-decoration: none; padding-block: 6px; }
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Intro and body copy share one centered reading column. */
.intro, .lead, .closing {
  width: min(var(--text-width), calc(100% - 48px));
  margin-inline: auto;
}
.intro { padding-block: 56px 36px; }
.eyebrow { font-size: 11px; line-height: 1.6; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.issue { margin-bottom: 24px; }
.issue span { display: block; margin-top: 6px; font: italic 16px/1.5 Georgia, serif; letter-spacing: 0; text-transform: none; }
h1 { margin: 0 0 24px; font: 400 clamp(56px, 8vw, 88px)/1.04 Georgia, serif; letter-spacing: -2.5px; }
h1 em { color: #5f6d4b; font-weight: 400; }
.dek { max-width: 600px; font: 22px/1.55 Georgia, serif; }
.meta { margin-top: 24px; font-size: 11px; line-height: 1.7; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.lead { padding-top: 30px; border-top: 1px solid var(--rule); margin-bottom: 56px; }

/* Photographs stay complete; captions and analysis follow a consistent rhythm. */
.photo-section { width: min(var(--page-width), calc(100% - 48px)); margin: 0 auto 64px; }
.photo-section figure a { display: block; }
.photo-section img { display: block; width: 100%; height: auto; max-height: 680px; object-fit: contain; background: #e8e5dd; }
figcaption { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; padding-block: 14px 18px; border-bottom: 1px solid var(--rule); font-size: 12px; line-height: 1.6; color: var(--muted); }
figcaption b { font-size: 10px; font-weight: 600; letter-spacing: 1.1px; color: var(--accent); }
.analysis-copy { max-width: var(--text-width); margin: 32px auto 0; }
h2 { margin: 12px 0 22px; font: 400 clamp(30px, 4.5vw, 40px)/1.2 Georgia, serif; letter-spacing: -.8px; }
.quote { width: min(var(--text-width), calc(100% - 48px)); margin: 0 auto 64px; padding-block: 30px; border-block: 1px solid var(--rule); text-align: center; font: 400 clamp(26px, 4vw, 36px)/1.4 Georgia, serif; color: #5b684c; }
.closing { margin-bottom: 48px; }
.endmark { display: block; margin-top: 32px; text-align: center; font-size: 28px; color: var(--accent); }

/* Closing notes and footer use the same page margins. */
.notes { width: min(var(--page-width), calc(100% - 48px)); margin: 0 auto; padding: 28px; background: #e9eade; }
.notes .eyebrow { margin-bottom: 12px; }
.notes p { font: 14px/1.75 Arial, sans-serif; }
footer { padding-block: 26px; font-size: 10px; line-height: 1.6; letter-spacing: 1px; }
.progress { position: fixed; inset: 0 auto auto 0; height: 3px; width: 0; background: var(--accent); z-index: 5; }

/* Mobile: comfortable gutters, smaller headings, and stacked captions. */
@media (max-width: 600px) {
  header, footer, .intro, .lead, .photo-section, .quote, .closing, .notes { width: calc(100% - 36px); }
  header { padding-block: 18px; gap: 14px; }
  .brand { font-size: 20px; }
  nav { gap: 18px; font-size: 10px; }
  .intro { padding-block: 36px 28px; }
  h1 { letter-spacing: -1.8px; }
  .dek { font-size: 20px; }
  p { font-size: 17px; line-height: 1.75; }
  .lead { padding-top: 24px; margin-bottom: 40px; }
  .photo-section, .quote { margin-bottom: 44px; }
  figcaption { grid-template-columns: 1fr; gap: 6px; padding-block: 12px 16px; }
  .analysis-copy { margin-top: 26px; }
  .notes { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
