:root {
  --ink: #172027;
  --muted: #647078;
  --paper: #f4f3ef;
  --panel: #e5e8e5;
  --line: rgba(23, 32, 39, .16);
  --accent: #9b6d4f;
  --accent-dark: #744b36;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Georgia, "Times New Roman", serif; }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); font-family: Arial, sans-serif; }
.wordmark { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .86rem; }
nav { display: flex; gap: 20px; font-size: .86rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--ink); }
.field-hero { padding: 78px 0 70px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent-dark); font: 700 .74rem/1.2 Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; }
h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 6.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); }
.field-hero p { max-width: 690px; margin: 26px 0 0; color: #3d4950; font-size: 1.25rem; }
.field-hero .back-link { display: inline-block; margin-top: 28px; color: var(--accent-dark); font: 700 .82rem/1.2 Arial, sans-serif; text-decoration: none; }
.field-hero .back-link:hover { text-decoration: underline; }
.notes-section { padding: 72px 0 92px; }
.notes-intro { display: grid; grid-template-columns: .7fr 1.3fr; gap: 58px; align-items: start; }
.notes-intro p { max-width: 670px; margin: 0; color: #3d4950; font-size: 1.12rem; }
.note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 18px; margin-top: 44px; }
.note-card { display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border: 1px solid var(--line); background: rgba(255, 255, 255, .34); text-decoration: none; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.note-card:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(255, 255, 255, .62); }
.note-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.86); }
.note-card img.note-card-image-original { filter: none; }
.note-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.note-card .eyebrow { font-size: .66rem; }
.note-card h3 { margin-top: 11px; }
.note-card p { margin: 14px 0 0; color: #3d4950; font-size: 1rem; line-height: 1.55; }
.note-card .read-more { margin-top: auto; padding-top: 24px; color: var(--accent-dark); font: 700 .78rem/1.2 Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.notes-archive-link { display: inline-block; margin-top: 32px; padding: 12px 18px; border: 1px solid var(--ink); font: .88rem/1.2 Arial, sans-serif; text-decoration: none; }
.notes-archive-link:hover { background: var(--ink); color: var(--paper); }
.article-shell { width: min(calc(100% - 40px), 820px); margin: 0 auto; }
.article-header { padding: 78px 0 46px; }
.article-header h1 { max-width: 820px; margin-top: 14px; font-size: clamp(2.8rem, 6vw, 5.6rem); }
.article-dek { max-width: 700px; margin: 24px 0 0; color: #3d4950; font-size: 1.25rem; }
.article-meta { margin: 26px 0 0; color: var(--muted); font: .78rem/1.4 Arial, sans-serif; }
.article-hero { margin: 0 0 46px; }
.article-hero img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.article-hero figcaption, .process-figure figcaption { margin-top: 10px; color: var(--muted); font: .78rem/1.45 Arial, sans-serif; }
.article-body { padding-bottom: 88px; }
.article-body p { margin: 0 0 1.35em; color: #334047; font-size: 1.16rem; }
.article-body h2 { margin: 48px 0 18px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.article-body em { color: #27343b; }
.process-figure { margin: 36px 0 42px; }
.process-figure img { display: block; width: 100%; max-height: 650px; object-fit: cover; border: 1px solid var(--line); }
.process-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 36px 0 42px; }
.process-grid .process-figure { margin: 0; }
.article-callout { margin: 42px 0; padding: 25px 28px; border-left: 3px solid var(--accent); background: rgba(229, 232, 229, .72); font-size: 1.42rem; line-height: 1.3; }
.mishap-grid { display: grid; gap: 34px; margin-top: 46px; }
.mishap-card { display: grid; grid-template-columns: minmax(230px, .78fr) 1.22fr; gap: 32px; padding-top: 34px; border-top: 1px solid var(--line); }
.mishap-card:first-child { padding-top: 0; border-top: 0; }
.mishap-card:nth-child(even) .mishap-image { order: 2; }
.mishap-image { margin: 0; }
.mishap-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.mishap-image figcaption { max-width: 360px; }
.mishap-copy h2 { margin-top: 12px; font-size: clamp(1.85rem, 3.5vw, 3rem); }
.mishap-copy p { margin: 18px 0 0; color: #334047; font-size: 1.12rem; }
.mishap-copy .story-note { margin-top: 20px; color: var(--accent-dark); font: 700 .76rem/1.4 Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.article-footer { display: flex; justify-content: space-between; gap: 18px; padding: 26px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font: .82rem/1.4 Arial, sans-serif; }
.article-footer a { text-decoration: none; }
.article-footer a:hover { color: var(--ink); }
@media (max-width: 820px) {
  .notes-intro { grid-template-columns: 1fr; gap: 24px; }
  .note-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .mishap-card { grid-template-columns: 1fr; gap: 22px; }
  .mishap-card:nth-child(even) .mishap-image { order: initial; }
  .article-header { padding-top: 54px; }
}
@media (max-width: 620px) {
  .topbar, .article-footer { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; gap: 12px 18px; }
  .field-hero { padding: 56px 0 54px; }
  .notes-section { padding: 56px 0 68px; }
  .article-body p { font-size: 1.08rem; }
}
