:root {
  color-scheme: light;
  --ink: #182025;
  --muted: #68706f;
  --paper: #f8f7f4;
  --line: #dfded8;
  --accent: #665246;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }

.site-shell { max-width: 1180px; margin: 0 auto; padding: 0 42px; }
.site-header { min-height: 100px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.header-links, .eyebrow, time, .featured-meta a, .back-link, .site-footer, .post-row p { font-family: Arial, Helvetica, sans-serif; }
.header-links { display: flex; gap: 30px; font-size: 13px; font-weight: 600; }
.wordmark { font-size: 27px; font-weight: 700; letter-spacing: -.055em; white-space: nowrap; }
.header-socials { justify-self: end; display: flex; align-items: center; gap: 8px; }
.header-socials a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.header-socials svg { width: 20px; height: 20px; }
.social-twitter:hover, .social-twitter:focus-visible { color: #1da1f2; }
.social-linkedin:hover, .social-linkedin:focus-visible { color: #0a66c2; }
.social-youtube:hover, .social-youtube:focus-visible { color: #ff0000; }
.eyebrow { margin: 0; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
time { color: var(--muted); font-size: 12px; }

.featured { max-width: 980px; margin: 50px auto 60px; }
.featured-image { display: block; overflow: hidden; background: #c5ad98; }
.featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s ease; }
.featured-image:hover img { transform: scale(1.025); }
.featured-copy { padding: 34px 5px 0; }
.featured-copy h1 { max-width: 760px; margin: 10px 0 15px; font-size: clamp(38px, 5vw, 64px); font-weight: 400; letter-spacing: -.052em; line-height: 1.06; }
.featured-description { max-width: 670px; margin: 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.48; }
.featured-meta { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 35px; border-bottom: 1px solid var(--line); }
.featured-meta a { font-size: 13px; font-weight: 600; }

.more-posts { max-width: 980px; margin: 0 auto; }
.section-heading { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-heading h2 { margin: 8px 0 0; font-size: 38px; font-weight: 400; letter-spacing: -.04em; }
.post-row { display: flex; align-items: center; gap: 28px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .2s ease; }
.post-row:hover, .post-row:focus-visible, .post-row:active { background: #f0eeea; }
.post-row:focus-visible h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-row img { display: block; flex: 0 0 176px; width: 176px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-row-copy { flex: 1; min-width: 0; }
.post-row h3 { margin: 6px 0 6px; font-size: 27px; font-weight: 400; letter-spacing: -.035em; }
.post-row p { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.about { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 70px; max-width: 980px; margin: 95px auto 72px; }
.about h1 { margin: 14px 0 0; font-size: clamp(38px, 4vw, 52px); font-weight: 400; letter-spacing: -.05em; line-height: 1.06; }
.about-copy p { margin: 0 0 20px; font-size: 18px; line-height: 1.55; }
.about-copy p:last-child { margin-bottom: 0; }
.about a { text-decoration: underline; text-underline-offset: 4px; }
.about-divider { max-width: 980px; margin: 0 auto; border: 0; border-top: 1px solid var(--line); }
.timeline { max-width: 980px; margin: 62px auto 80px; }
.timeline-heading h2 { margin: 8px 0 38px; font-size: 38px; font-weight: 400; letter-spacing: -.04em; }
.timeline-hint { display: none; }
.timeline-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.timeline-eras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.timeline-era { position: relative; padding: 24px 17px 0 0; }
.timeline-era:not(:first-child) { padding-left: 17px; border-left: 1px solid var(--line); }
.timeline-era::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline-era:not(:first-child)::before { left: 17px; }
.timeline-era-heading { min-height: 77px; }
.timeline-period { font-size: 27px; letter-spacing: -.045em; }
.timeline-era h3 { margin: 5px 0 0; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.timeline-era ul { margin: 0; padding: 0; list-style: none; }
.timeline-era li { margin: 0 0 16px; font-size: 14px; line-height: 1.43; }
.timeline-year { margin-right: 6px; color: var(--accent); font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.timeline-era a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { display: flex; align-items: center; gap: 30px; padding: 28px 0 34px; border-top: 1px solid var(--line); font-size: 12px; }
.site-footer a:first-child { font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.site-footer a:last-child { margin-left: auto; }

.article { max-width: 800px; margin: 0 auto; padding: 40px 0 110px; }
.back-link { color: var(--muted); font-size: 12px; }
.article-header { max-width: 700px; margin: 70px auto 35px; text-align: center; }
.article-header h1 { margin: 14px 0 17px; font-size: clamp(48px, 7vw, 78px); font-weight: 400; letter-spacing: -.06em; line-height: 1.04; }
.article-deck { max-width: 660px; margin: 0 auto 20px; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.42; }
.original-note { margin: 0; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
.original-note a { text-decoration: underline; text-underline-offset: 3px; }
.article-cover { width: 100%; max-height: 450px; object-fit: cover; margin-bottom: 54px; }
.prose { max-width: 680px; margin: 0 auto; font-size: 20px; line-height: 1.72; }
.prose p { margin: 0 0 1.35em; }
.prose ul, .prose ol { padding-left: 1.45em; margin: 0 0 1.35em; }
.prose li { padding-left: .25em; margin: .35em 0; }
.prose h2 { margin: 1.6em 0 .5em; font-size: 34px; font-weight: 400; letter-spacing: -.04em; line-height: 1.18; }
.prose h3 { margin: 1.5em 0 .5em; font-size: 27px; font-weight: 400; letter-spacing: -.025em; line-height: 1.2; }
.prose a { text-decoration: underline; text-underline-offset: 4px; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 2px solid var(--accent); color: var(--muted); }
.prose img { margin: 1.5em 0; }
.prose pre { overflow-x: auto; margin: 1.5em 0; padding: 20px; background: #eeece7; font-size: 14px; line-height: 1.55; }
.prose code { font-family: 'SFMono-Regular', Consolas, monospace; font-size: .82em; }
.prose pre code { font-size: inherit; }
.video-embed { aspect-ratio: 16 / 9; margin: 0 0 2em; background: #161616; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 900px) {
  .timeline-hint { display: block; margin: -24px 0 28px; color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: 12px; }
  .timeline-track { overflow-x: auto; padding-top: 6px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .timeline-eras { width: max-content; grid-template-columns: repeat(4, 285px); padding-right: 66px; }
  .timeline-era { scroll-snap-align: start; }
}

@media (max-width: 700px) {
  .site-shell { padding: 0 22px; }
  .site-header { min-height: 104px; grid-template-columns: 1fr auto; row-gap: 4px; padding: 14px 0; }
  .wordmark { grid-column: 1; grid-row: 1; font-size: 22px; }
  .header-links { grid-column: 2; grid-row: 1; gap: 18px; font-size: 12px; }
  .header-socials { grid-column: 1 / -1; grid-row: 2; }
  .featured { margin-top: 28px; margin-bottom: 50px; }
  .featured-copy { padding: 27px 0 0; }
  .featured-copy h1 { font-size: 44px; }
  .featured-meta { padding: 23px 0 30px; }
  .post-row { gap: 16px; align-items: start; }
  .post-row img { flex-basis: 92px; width: 92px; }
  .post-row h3 { font-size: 21px; }
  .post-row p { display: none; }
  .about { grid-template-columns: 1fr; gap: 30px; margin: 70px auto 62px; }
  .about-copy p { font-size: 18px; }
  .timeline { margin: 54px auto 70px; }
  .timeline-heading h2 { font-size: 34px; }
  .timeline-eras { grid-template-columns: repeat(4, 280px); }
  .article { padding-top: 28px; padding-bottom: 80px; }
  .article-header { margin: 58px auto 32px; }
  .article-header h1 { font-size: clamp(46px, 11vw, 68px); }
  .article-cover { margin-bottom: 38px; }
  .prose { font-size: 18px; line-height: 1.7; }
  .prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
}
