:root {
  --charcoal: #292929;
  --orange: #f58200;
  --orange-dark: #c96800;
  --paper: #f7f7f5;
  --white: #fff;
  --ink: #202020;
  --muted: #656565;
  --line: #d9d9d5;
  --max: 1216px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.65 Arial, Helvetica, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; padding: .6rem; background: white; }

header { position: relative; z-index: 3; background: var(--charcoal); color: white; border-bottom: 4px solid var(--orange); }
.nav { max-width: var(--max); min-height: 80px; margin: auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--orange); font-size: clamp(1.65rem, 3vw, 2.15rem); font-weight: 900; letter-spacing: -.055em; text-decoration: none; }
nav { display: flex; gap: 2.4rem; }
nav a { color: inherit; font-size: .96rem; font-weight: 700; text-decoration: none; }
header nav a:hover, header nav a:focus-visible { color: var(--orange); }
.menu { display: none; }

.eyebrow { margin: 0 0 .45rem; color: var(--orange-dark); font-size: .72rem !important; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.magazine, .listing { max-width: var(--max); margin: auto; padding: 3.25rem 1.5rem 5rem; }
.masthead { margin-bottom: 1.75rem; padding-bottom: 1.1rem; border-bottom: 4px solid var(--charcoal); display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.masthead h1, .listing h1 { margin: 0; font: 900 clamp(2.25rem, 5vw, 4.4rem)/.96 Georgia, serif; letter-spacing: -.045em; }
.masthead > a, .section-head > a { color: var(--orange-dark); font-weight: 800; }
.lead-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(330px, 1fr); gap: 1.75rem; padding-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.lead-story { background: var(--charcoal); color: white; }
.lead-story > a { display: grid; grid-template-columns: 1.25fr .95fr; min-height: 430px; text-decoration: none; }
.lead-story img { width: 100%; height: 100%; object-fit: cover; }
.lead-story div { padding: clamp(1.5rem, 3vw, 2.7rem); display: flex; flex-direction: column; justify-content: center; }
.lead-story h2 { margin: .25rem 0 1rem; font: 900 clamp(2rem, 3.7vw, 3.9rem)/.98 Georgia, serif; letter-spacing: -.045em; }
.lead-story p:not(.eyebrow) { margin: 0 0 1rem; color: #ddd; }
.lead-story span, .side-story span, .card span { color: var(--orange); font-size: .82rem; font-weight: 900; }
.side-stories { display: grid; gap: 0; border-top: 1px solid var(--line); }
.side-story { border-bottom: 1px solid var(--line); background: var(--white); }
.side-story > a { height: 100%; padding: 1rem 0; display: grid; grid-template-columns: 122px 1fr; gap: 1rem; align-items: center; text-decoration: none; }
.side-story img { width: 122px; aspect-ratio: 4/3; object-fit: cover; }
.side-story h2 { margin: .15rem 0 .4rem; font: 800 1.15rem/1.15 Georgia, serif; }
.side-story .eyebrow { font-size: .63rem !important; }

.section-head { margin: 3rem 0 1.3rem; padding-bottom: .75rem; border-bottom: 3px solid var(--charcoal); display: flex; align-items: end; justify-content: space-between; }
.section-head h2 { margin: 0; font: 900 clamp(1.8rem, 3vw, 2.6rem)/1 Georgia, serif; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.card { overflow: hidden; background: var(--white); border-top: 5px solid var(--charcoal); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.card > a { height: 100%; display: flex; flex-direction: column; text-decoration: none; }
.card img, .placeholder { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--charcoal); }
.placeholder { display: grid; place-items: center; color: var(--orange); font-size: 3rem; font-weight: 900; }
.card div { padding: 1.15rem 1.2rem 1.3rem; display: flex; flex: 1; flex-direction: column; }
.card h2 { margin: .15rem 0 .65rem; font: 800 1.36rem/1.15 Georgia, serif; }
.card p:not(.eyebrow) { margin: 0 0 .9rem; color: var(--muted); font-size: .91rem; }
.card span { margin-top: auto; }
.departments { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--charcoal); background: var(--charcoal); gap: 1px; }
.departments a { padding: 1.5rem; display: flex; flex-direction: column; gap: .35rem; background: white; text-decoration: none; }
.departments strong { font: 800 1.3rem Georgia, serif; }
.departments span { color: var(--muted); font-size: .88rem; }
.departments a:hover { border-bottom: 5px solid var(--orange); }
.author-bio { margin-top: 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; background: var(--charcoal); color: white; }
.author-bio img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.author-bio > div { padding: clamp(2rem, 5vw, 4rem); }
.author-bio h2 { margin: .25rem 0 1rem; color: white; font: 800 clamp(2.2rem, 5vw, 4rem)/1 Georgia, serif; }
.author-bio p:last-child { margin: 0; color: #e7e7e7; line-height: 1.75; }

.listing { padding-top: 4.25rem; }
.listing > .lede { max-width: 720px; margin: 1rem 0 3rem; color: var(--muted); font-size: 1.12rem; }
.category-listing h1 { padding-bottom: 1rem; border-bottom: 4px solid var(--charcoal); }

.article { max-width: 860px; margin: auto; padding: 4.5rem 1.5rem; }
.article h1 { margin: .45rem 0 1rem; font: 900 clamp(2.7rem, 6vw, 5.1rem)/1 Georgia, serif; letter-spacing: -.04em; }
.byline { padding-bottom: 1.25rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.hero-image { width: 100%; margin: 2.4rem 0; aspect-ratio: 16/9; object-fit: cover; }
.prose { font: 1.08rem/1.75 Georgia, serif; }
.prose h2, .prose h3 { margin-top: 2.2em; font-family: Arial, Helvetica, sans-serif; line-height: 1.15; }
.prose h2 { font-size: 2rem; }
.prose a { color: var(--orange-dark); font-weight: 700; }
.prose blockquote { margin: 2rem 0; padding: .7rem 1.5rem; background: #fff3e4; border-left: 5px solid var(--orange); }
.affiliate-note { padding: 1rem; background: #fff3e4; border: 1px solid #e7b97b; font: .9rem Arial, sans-serif; }
.breadcrumb { margin-bottom: 1.4rem; display: flex; gap: .65rem; color: var(--muted); font-size: .88rem; }
.breadcrumb a { color: var(--orange-dark); font-weight: 700; }
.related { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 4px solid var(--charcoal); }
.related h2 { font: 900 2rem/1 Georgia, serif; }
.related > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related a { display: flex; flex-direction: column; gap: .65rem; color: inherit; font-weight: 800; line-height: 1.25; text-decoration: none; }
.related img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.not-found { max-width: 760px; min-height: 60vh; margin: auto; padding: 7rem 1.5rem; text-align: center; }
.not-found h1 { margin: .35rem 0 1rem; font: 900 clamp(3rem, 9vw, 6rem)/.95 Georgia, serif; }
.not-found > p:not(.eyebrow) { color: var(--muted); font-size: 1.15rem; }
.not-found > div { margin-top: 2rem; display: flex; justify-content: center; gap: 1.5rem; align-items: center; }
.button { padding: .75rem 1rem; color: white; background: var(--orange-dark); font-weight: 800; text-decoration: none; }

footer { padding: 3.5rem max(1.5rem, calc((100vw - var(--max))/2)); background: var(--charcoal); color: #ddd; border-top: 4px solid var(--orange); display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; }
footer p { max-width: 460px; }
footer small { grid-column: 1/-1; padding-top: 1.25rem; border-top: 1px solid #4a4a4a; }

@media (max-width: 900px) {
  .lead-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .departments { grid-template-columns: 1fr; }
  .author-bio { grid-template-columns: 1fr; }
  .author-bio img { min-height: 240px; max-height: 380px; }
  .related > div { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .menu { display: block; padding: .5rem .75rem; color: white; background: transparent; border: 1px solid #777; }
  .nav nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1.5rem; background: var(--charcoal); flex-direction: column; gap: 1.2rem; }
  .nav nav.open { display: flex; }
  .masthead { align-items: start; flex-direction: column; }
  .lead-story > a { grid-template-columns: 1fr; }
  .lead-story img { aspect-ratio: 16/10; }
  .grid { grid-template-columns: 1fr; }
  .side-story > a { grid-template-columns: 100px 1fr; }
  .side-story img { width: 100px; }
  .magazine, .listing { padding-top: 2.25rem; }
  .article { padding-top: 3rem; }
  footer { grid-template-columns: 1fr; }
  footer nav { flex-direction: column; gap: 1rem; }
}
