/*
 * School Magazine — public stylesheet.
 *
 * Direction: a student-made zine. Cool paper white, school-uniform blue ink,
 * and two "risograph" spot colours (sunflower yellow, pink) used for flat
 * blocks with a halftone texture. The one loud element is the giant issue
 * number; everything around it stays quiet.
 *
 * Mobile first: base rules are for phones; wider screens add min-width queries.
 * No inline styles anywhere (blocked by the Content Security Policy).
 */

@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f6f7fa;
  --surface: #ffffff;
  --ink: #161a33;
  --muted: #565b75;
  --line: #dcdfea;
  --uniform: #23308f;      /* primary: school-uniform blue */
  --uniform-deep: #182169;
  --sun: #ffc93c;          /* riso yellow */
  --sun-soft: #fff3cc;
  --rose: #e94f84;         /* riso pink */
  --rose-soft: #fde4ed;
  --focus: #e94f84;

  --cat-1: #23308f; --cat-1-soft: #e4e7fb;
  --cat-2: #c23763; --cat-2-soft: #fde4ed;
  --cat-3: #0f7a70; --cat-3-soft: #d9f3ef;
  --cat-4: #9a5a00; --cat-4-soft: #fff0cc;
  --cat-5: #5f37a8; --cat-5-soft: #ece4fb;
  --cat-6: #33701d; --cat-6-soft: #e2f2d9;

  --display: "Bricolage", "Segoe UI", system-ui, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Sinhala", "Iskoola Pota", "Noto Sans Tamil", "Latha", sans-serif;
  --read: Georgia, "Iowan Old Style", "Noto Serif", "Noto Serif Sinhala", "Noto Sans Sinhala", "Iskoola Pota", "Noto Serif Tamil", "Latha", serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --radius: 6px;
  --max: 1200px;
  --measure: 68ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--ui);
  overflow-wrap: break-word;
}

img, svg, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--uniform); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 var(--s4); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 7vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--s4); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--s4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.skip-link {
  position: absolute; left: var(--s2); top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--radius);
}
.skip-link:focus { top: var(--s2); }

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5);
  background: var(--uniform); color: #fff; border: 2px solid var(--uniform);
  border-radius: 999px; font: 600 0.9375rem/1 var(--ui); text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--uniform-deep); border-color: var(--uniform-deep); color: #fff; }
.button-ghost { background: transparent; color: var(--uniform); }
.button-ghost:hover { background: var(--uniform); color: #fff; }
.button-small { min-height: 36px; padding: 0 var(--s4); font-size: 0.875rem; }
.button-danger { background: #b3261e; border-color: #b3261e; }
.button-danger:hover { background: #8c1d17; border-color: #8c1d17; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--uniform); text-decoration: underline; cursor: pointer; }

/* ---------------------------------------------------------------- masthead */

.masthead { background: var(--surface); border-bottom: 3px solid var(--ink); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { font: 800 1.375rem/1 var(--display); letter-spacing: -0.03em; }
.brand-school { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.masthead-actions { display: flex; align-items: center; gap: var(--s2); }
.icon-button {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-button:hover { background: var(--paper); color: var(--uniform); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.site-nav { border-top: 1px solid var(--line); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s1); overflow-x: auto; scrollbar-width: none; }
.site-nav ul::-webkit-scrollbar { display: none; }
.site-nav a {
  display: block; padding: var(--s3) var(--s3); white-space: nowrap; text-decoration: none;
  font-weight: 600; font-size: 0.9375rem; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.site-nav a[aria-current="page"] { border-bottom-color: var(--rose); }

.search-panel { display: none; padding: var(--s3) 0 var(--s4); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: var(--s2); }
.search-form input { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- forms (shared) */

input[type="text"], input[type="search"], input[type="email"], input[type="password"], input[type="url"],
input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid #b9bed1; border-radius: var(--radius);
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--uniform); outline: 3px solid rgba(35, 48, 143, 0.18); outline-offset: 0; }
label { display: block; font-weight: 600; margin-bottom: var(--s1); }
.field { margin-bottom: var(--s5); }
.field-hint { font-size: 0.875rem; color: var(--muted); margin: var(--s1) 0 0; }
.field-error { color: #b3261e; font-size: 0.875rem; font-weight: 600; margin: var(--s1) 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: #b3261e; }
.checkbox { display: flex; align-items: center; gap: var(--s2); font-weight: 400; }
.checkbox input { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- alerts */

.alert { padding: var(--s3) var(--s4); border-radius: var(--radius); margin: 0 0 var(--s4); border-left: 4px solid; background: var(--surface); }
.alert-success { border-color: #2e7d32; background: #e8f5e9; }
.alert-error { border-color: #b3261e; background: #fdecea; }
.alert-info { border-color: var(--uniform); background: #e8eafa; }
.alerts { padding-top: var(--s4); }

/* ---------------------------------------------------------------- category labels + placeholders */

.cat-label { font-weight: 700; font-size: 0.8125rem; text-decoration: none; }
.cat-label:hover { text-decoration: underline; }
.cat-label.cat-1 { color: var(--cat-1); } .cat-label.cat-2 { color: var(--cat-2); } .cat-label.cat-3 { color: var(--cat-3); }
.cat-label.cat-4 { color: var(--cat-4); } .cat-label.cat-5 { color: var(--cat-5); } .cat-label.cat-6 { color: var(--cat-6); }

/* Placeholder "riso print" block when an article has no photo yet. */
.ph {
  aspect-ratio: 3 / 2; width: 100%;
  background-color: var(--ph-bg);
  background-image: radial-gradient(var(--ph-dot) 1.2px, transparent 1.4px);
  background-size: 9px 9px;
}
.ph.cat-1 { --ph-bg: var(--cat-1-soft); --ph-dot: rgba(35, 48, 143, 0.28); }
.ph.cat-2 { --ph-bg: var(--cat-2-soft); --ph-dot: rgba(194, 55, 99, 0.28); }
.ph.cat-3 { --ph-bg: var(--cat-3-soft); --ph-dot: rgba(15, 122, 112, 0.28); }
.ph.cat-4 { --ph-bg: var(--cat-4-soft); --ph-dot: rgba(154, 90, 0, 0.28); }
.ph.cat-5 { --ph-bg: var(--cat-5-soft); --ph-dot: rgba(95, 55, 168, 0.28); }
.ph.cat-6 { --ph-bg: var(--cat-6-soft); --ph-dot: rgba(51, 112, 29, 0.28); }

/* ---------------------------------------------------------------- the cover (home + issue pages) */

.cover { padding: var(--s5) 0 var(--s6); }
.cover-grid { display: grid; gap: var(--s5); }

.issue-plate {
  position: relative; overflow: hidden;
  background-color: var(--sun);
  background-image: radial-gradient(rgba(22, 26, 51, 0.13) 1.3px, transparent 1.5px);
  background-size: 10px 10px;
  color: var(--ink); padding: var(--s5); border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: space-between; min-height: 300px;
}
.issue-plate-top { display: flex; justify-content: space-between; gap: var(--s3); font-weight: 700; font-size: 0.9375rem; }
.issue-number {
  font: 800 clamp(7rem, 34vw, 13rem)/0.8 var(--display);
  letter-spacing: -0.06em; margin: var(--s5) 0 var(--s4) -0.04em;
  font-variant-numeric: tabular-nums;
}
.issue-number small { display: block; font-size: 0.16em; letter-spacing: 0; font-weight: 700; margin-bottom: 0.4em; }
.issue-plate-title { font: 700 1.375rem/1.15 var(--display); margin: 0 0 var(--s3); }
.issue-plate p { max-width: 40ch; }
.issue-plate .button { background: var(--ink); border-color: var(--ink); align-self: flex-start; }
.issue-plate .button:hover { background: var(--uniform); border-color: var(--uniform); }

.lead-story { display: grid; gap: var(--s4); align-content: start; }
.lead-story a { text-decoration: none; }
.lead-media { border-radius: var(--radius); overflow: hidden; }
.lead-media img, .lead-media .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.lead-title { font-size: clamp(1.75rem, 5.5vw, 2.75rem); margin: var(--s2) 0 var(--s3); }
.lead-story .excerpt { font: 1.125rem/1.55 var(--read); color: #2c3150; }

.byline { font-size: 0.875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0 var(--s3); }

/* ---------------------------------------------------------------- sections */

.section { padding: var(--s6) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); border-bottom: 3px solid var(--ink); padding-bottom: var(--s2); }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 600; white-space: nowrap; }

/* In this issue: a real table of contents, so it is numbered. */
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s6); }
.toc li { display: grid; grid-template-columns: 2.5rem 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.toc-num { font: 800 1.5rem/1 var(--display); color: var(--rose); font-variant-numeric: tabular-nums; }
.toc a { text-decoration: none; font: 700 1.125rem/1.25 var(--display); }
.toc a:hover { color: var(--uniform); text-decoration: underline; }
.toc .meta { font-size: 0.8125rem; color: var(--muted); margin-top: var(--s1); }

/* Story grid: image on top, square corners on photos, no card boxes. */
.stories { display: grid; gap: var(--s6) var(--s5); }
.story { display: flex; flex-direction: column; gap: var(--s2); }
.story-media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.story-media img, .story-media .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.story-media:hover img { transform: scale(1.03); }
.story h3 { margin: 0; font-size: 1.25rem; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; color: var(--uniform); }
.story p { margin: 0; color: #3b405c; font-size: 0.9375rem; }

/* Student voice band */
.voice-band { background: var(--rose-soft); padding: var(--s6) 0; }
.voice-band .section-head { border-color: var(--cat-2); }
.voice-list { display: grid; gap: var(--s5); }
.voice-item { border-left: 4px solid var(--rose); padding-left: var(--s4); }
.voice-item a { text-decoration: none; font: 700 1.375rem/1.2 var(--display); }
.voice-item p { font-family: var(--read); margin: var(--s2) 0 0; color: #3b2f3a; }

/* Compact list (category highlights, popular) */
.compact-list { list-style: none; margin: 0; padding: 0; }
.compact-list li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.compact-list a { text-decoration: none; font-weight: 700; }
.compact-list a:hover { text-decoration: underline; }
.highlights { display: grid; gap: var(--s6); }
@media (min-width: 600px) { .highlights { grid-template-columns: repeat(2, 1fr); } }
.highlight h3 { border-bottom: 2px solid currentColor; padding-bottom: var(--s2); }
.highlight.cat-1 h3 { color: var(--cat-1); } .highlight.cat-2 h3 { color: var(--cat-2); } .highlight.cat-3 h3 { color: var(--cat-3); }
.highlight.cat-4 h3 { color: var(--cat-4); } .highlight.cat-5 h3 { color: var(--cat-5); } .highlight.cat-6 h3 { color: var(--cat-6); }

/* Photo story strip */
.photo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s2); }
.photo-strip > * { scroll-snap-align: start; }
.photo-strip img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------------------------------------------------------------- page header (category, search, archive) */

.page-head { padding: var(--s6) 0 var(--s5); border-bottom: 3px solid var(--ink); margin-bottom: var(--s6); }
.page-head h1 { margin-bottom: var(--s2); }
.page-head p { max-width: 60ch; color: var(--muted); font-size: 1.0625rem; margin: 0; }
.page-head.cat-1 { border-color: var(--cat-1); } .page-head.cat-2 { border-color: var(--cat-2); } .page-head.cat-3 { border-color: var(--cat-3); }
.page-head.cat-4 { border-color: var(--cat-4); } .page-head.cat-5 { border-color: var(--cat-5); } .page-head.cat-6 { border-color: var(--cat-6); }

/* ---------------------------------------------------------------- article */

.article-head { max-width: 820px; margin: 0 auto; padding: var(--s6) var(--s4) var(--s5); }
.article-head h1 { font-size: clamp(2.1rem, 7vw, 3.75rem); margin: var(--s3) 0; }
.article-head .subtitle { font: 1.25rem/1.45 var(--read); color: #33395a; margin: 0 0 var(--s4); }
.article-hero { max-width: 1100px; margin: 0 auto var(--s6); padding: 0 var(--s4); }
.article-hero img { width: 100%; border-radius: var(--radius); }
.article-hero figcaption, .inline-figure figcaption { font-size: 0.875rem; color: var(--muted); margin-top: var(--s2); }

.prose { max-width: var(--measure); margin: 0 auto; padding: 0 var(--s4); font: 1.1875rem/1.75 var(--read); }
.prose p { margin: 0 0 1.2em; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 0.6em; }
.prose h3 { font-size: 1.3rem; margin: 1.4em 0 0.5em; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 var(--s5); border-left: 4px solid var(--sun); font-size: 1.3rem; line-height: 1.5; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--uniform); }
.inline-figure { margin: 2em 0; }
.inline-figure img { border-radius: var(--radius); width: 100%; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 2em 0; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

.article-foot { max-width: var(--measure); margin: var(--s6) auto 0; padding: var(--s5) var(--s4) 0; border-top: 1px solid var(--line); }
.share { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.share-label { font-weight: 700; margin-right: var(--s2); }
.issue-note { background: var(--sun-soft); border-radius: var(--radius); padding: var(--s4); margin-top: var(--s5); }

/* ---------------------------------------------------------------- archive */

.year-block { margin-bottom: var(--s7); }
.year-title { font: 800 clamp(3rem, 14vw, 6rem)/1 var(--display); color: var(--uniform); letter-spacing: -0.04em; margin: 0 0 var(--s4); }
.issue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
.issue-tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3);
  min-height: 150px; padding: var(--s4); border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 2px solid var(--ink);
}
.issue-tile:hover { background: var(--sun); color: var(--ink); }
.issue-tile-num { font: 800 3.25rem/0.85 var(--display); letter-spacing: -0.05em; }
.issue-tile-meta { font-size: 0.8125rem; }

/* ---------------------------------------------------------------- gallery */

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2); }
.gallery-grid a { display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.album-grid { display: grid; gap: var(--s5); }
.album a { text-decoration: none; }
.album img, .album .ph { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); width: 100%; margin-bottom: var(--s2); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 28, 0.94); display: none; place-items: center; padding: var(--s4); }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox figcaption { color: #e7e9f5; text-align: center; margin-top: var(--s3); }
.lightbox-close { position: absolute; top: var(--s3); right: var(--s3); color: #fff; }
.lightbox-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.lightbox-prev { left: var(--s2); } .lightbox-next { right: var(--s2); }

/* ---------------------------------------------------------------- pagination, empty states */

.pagination { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin: var(--s7) 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s3); border-radius: 999px; text-decoration: none; font-weight: 600; }
.pagination a { border: 1.5px solid var(--line); background: var(--surface); }
.pagination a:hover { border-color: var(--uniform); }
.pagination [aria-current="page"] { background: var(--ink); color: #fff; }

.empty { padding: var(--s7) var(--s4); text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------------- static pages */

.page-body { max-width: var(--measure); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.team-grid { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.team { padding: var(--s4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.team h3 { margin-bottom: var(--s2); }

/* ---------------------------------------------------------------- login */

.auth-wrap { max-width: 420px; margin: 0 auto; padding: var(--s7) 0; }
.auth-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: var(--s6) var(--s5); }
.auth-card h1 { font-size: 2rem; }

/* ---------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: #d7d9e8; padding: var(--s7) 0 var(--s6); margin-top: var(--s8); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: var(--s5); }
.footer-brand { font: 800 1.75rem/1 var(--display); color: #fff; letter-spacing: -0.03em; margin-bottom: var(--s2); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.footer-note { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: var(--s6); padding-top: var(--s4); font-size: 0.875rem; }

/* ---------------------------------------------------------------- badges (also used in dashboards) */

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; background: #eceef4; color: #3a3f5c; white-space: nowrap; }
.badge-published, .badge-sent, .badge-active { background: #dff3e3; color: #1d5b27; }
.badge-submitted, .badge-pending, .badge-scheduled { background: #fff1cc; color: #7a4f00; }
.badge-revision_requested { background: #ffe2cc; color: #8a3b00; }
.badge-approved { background: #dfe6ff; color: #1f2c85; }
.badge-rejected, .badge-failed, .badge-disabled { background: #fde2e1; color: #8c1d17; }
.badge-draft, .badge-archived, .badge-cancelled { background: #eceef4; color: #3a3f5c; }

/* ---------------------------------------------------------------- error pages */

.error-body { display: grid; min-height: 100vh; place-items: center; }
.error-page { max-width: 560px; padding: var(--s5) var(--s4); }
.error-code {
  font: 800 6rem/0.9 var(--display); letter-spacing: -0.05em; margin: 0 0 var(--s3);
  display: inline-block; background: var(--sun); padding: 0 var(--s3); border-radius: var(--radius);
}

/* ---------------------------------------------------------------- wider screens */

@media (min-width: 600px) {
  .stories { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .issue-grid { grid-template-columns: repeat(3, 1fr); }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-auto-columns: 40%; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .container { padding: 0 var(--s5); }
  .cover { padding: var(--s6) 0 var(--s7); }
  .cover-grid { grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: stretch; }
  .issue-plate { padding: var(--s6); min-height: 520px; }
  .issue-number { font-size: 13rem; }
  .stories { grid-template-columns: repeat(3, 1fr); }
  .toc { grid-template-columns: repeat(2, 1fr); }
  .voice-list { grid-template-columns: repeat(3, 1fr); }
  .highlights { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .issue-grid { grid-template-columns: repeat(5, 1fr); }
  .album-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .site-nav ul { gap: 0; justify-content: space-between; }
  .site-nav a { padding: var(--s3) var(--s2); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .site-footer, .share, .site-nav, .article-foot .related { display: none; }
  body { background: #fff; }
}

.h3 { font-size: 1.25rem; }
.year-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.year-nav a { padding: var(--s1) var(--s3); border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--surface); }
.year-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
