@font-face { font-family: "Oswald"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/oswald-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/oswald-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: italic; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --paper: #fbfaf7;
  --ink: #18181a;
  --muted: #6b6a66;
  --line: #e3e0d8;
  --gold: #e8a300;
  --label: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--serif); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Masthead and menu */
.masthead { text-align: center; padding: 36px 0 8px; }
.masthead img { width: 240px; max-width: 70%; height: auto; }
.tag { font: 500 13px/1.3 var(--label); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 10px 0 0; }
.menu { border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 22px; }
.menu ul { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 26px; }
.menu a { text-decoration: none; font: 500 14px/1.6 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.menu a[aria-current] { box-shadow: 0 2px 0 var(--gold); }
.menu a:hover { box-shadow: 0 2px 0 var(--line); }

/* Home: every issue */
h2.every { font: 600 26px/1.2 var(--label); letter-spacing: .04em; text-transform: uppercase; margin: 40px 0 6px; }
.years { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 15px var(--label); color: var(--muted); margin: 0 0 8px; }
.years a { text-decoration: none; }
.years a:hover { color: var(--ink); }
.year h3 { font: 600 18px var(--label); letter-spacing: .06em; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); scroll-margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 20px; }
.issue { text-decoration: none; display: block; }
.issue img, .nocover { width: 100%; aspect-ratio: 380 / 500; object-fit: cover; display: block; box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 6px 18px rgba(0, 0, 0, .10); transition: transform .15s; }
.issue:hover img, .issue:hover .nocover { transform: translateY(-3px); }
.issue .m { display: block; margin-top: 8px; font: 600 13px var(--label); letter-spacing: .1em; text-transform: uppercase; }
.issue .h { display: block; font-size: 14px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.nocover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: var(--paper); text-align: center; padding: 12px; }
.nocover span:first-child { font: 600 24px/1 var(--label); letter-spacing: .04em; text-transform: uppercase; }
.nocover span:last-child { font: 500 13px var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

/* Issue page */
.issue-page { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 32px; align-items: start; margin: 40px 0 0; }
.issue-page .cover img, .issue-page .nocover { width: 100%; aspect-ratio: auto; box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 12px 32px rgba(0, 0, 0, .12); }
.issue-page .nocover { aspect-ratio: 380 / 500; }
.issue-page .cover { margin: 0; }
.issue-page h1 { font: 600 34px/1.15 var(--label); letter-spacing: .03em; text-transform: uppercase; margin: 0 0 8px; }
.issue-page .headline { font-size: 20px; color: var(--muted); margin: 0 0 28px; overflow-wrap: anywhere; }
.issue-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; font: 500 15px var(--label); letter-spacing: .06em; text-transform: uppercase; }
.issue-nav a { text-decoration: none; border-bottom: 2px solid var(--line); padding-bottom: 2px; }
.issue-nav a:hover { border-color: var(--gold); }

/* Articles and section lists */
.prose { max-width: 700px; margin: 40px auto 0; overflow-wrap: anywhere; }
.prose h1 { font: 600 32px/1.2 var(--label); letter-spacing: .02em; margin: 0 0 6px; overflow-wrap: break-word; }
.prose h2, .prose h3, .prose h4 { font-family: var(--label); font-weight: 600; letter-spacing: .02em; line-height: 1.25; margin: 1.6em 0 .4em; }
.prose h2 { font-size: 23px; }
.prose h3 { font-size: 19px; }
.prose .date { font: 500 13px var(--label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 24px; }
.prose img { display: block; margin: 16px 0; }
.prose li { margin: 4px 0; }
.prose .back, .prose .more { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font: 500 15px var(--label); letter-spacing: .06em; }
.prose .back a, .prose .more a { text-decoration: none; }
.prose .back a:hover, .prose .more a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.table-wrap table { border-collapse: collapse; }
.table-wrap td, .table-wrap th { border: 1px solid var(--line); padding: 4px 8px; vertical-align: top; }
.list { list-style: none; padding: 0; margin: 8px 0 0; }
.list li { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--line); }
.list a { text-decoration: none; }
.list a:hover { text-decoration: underline; }
.section h2 { font-size: 19px; text-transform: uppercase; letter-spacing: .06em; margin-top: 2em; }

/* Photo gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; margin: 0; }

footer { margin-top: 56px; padding: 22px 0 40px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .issue-page { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .issue-page .cover { max-width: 480px; }
  .issue-page h1 { font-size: 28px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .masthead { padding-top: 24px; }
  .menu ul { gap: 4px 18px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .prose { margin-top: 28px; }
  .prose h1 { font-size: 26px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
}
