:root {
  --paper: #f4efe5;
  --paper-deep: #e8dfd1;
  --ink: #1b1d1c;
  --muted: #6a6b64;
  --line: #bdb6a8;
  --red: #b33a2e;
  --blue: #143b57;
  --yellow: #e5b94e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #d8d2c7; font-family: var(--serif); }
a { color: inherit; }
img { display: block; width: 100%; }

.paper-shell { width: min(1240px, calc(100% - 32px)); margin: 18px auto; padding: 0 clamp(18px, 4vw, 52px); background: var(--paper); box-shadow: 0 16px 45px rgba(47, 39, 26, 0.18); }
.masthead { border-bottom: 3px double var(--ink); }
.masthead-top, .masthead-bottom, .section-heading, .front-line, .site-footer { font-family: var(--sans); }
.masthead-top { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 0.65rem; letter-spacing: 0.12em; }
.masthead-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; padding: 20px 0 17px; }
.wordmark { color: var(--blue); font-size: clamp(3.25rem, 8vw, 6.9rem); font-weight: 900; letter-spacing: -0.1em; line-height: 0.8; text-decoration: none; }
.masthead-main p { margin: 0; text-align: center; color: var(--muted); font-family: var(--sans); font-size: 0.78rem; line-height: 1.45; }
.masthead-main em { color: var(--red); font-family: var(--serif); font-size: 1rem; }
.issue-stamp { justify-self: end; padding: 10px 11px; border: 1px solid var(--red); color: var(--red); font-family: var(--sans); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; transform: rotate(5deg); }
.masthead-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; }
.masthead-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.masthead-bottom a { color: var(--ink); font-weight: 700; text-decoration: none; }
.masthead-bottom a:hover, .read-link:hover { color: var(--red); }

.front-page { display: grid; grid-template-columns: minmax(0, 1fr) 0.7fr; column-gap: 40px; align-items: end; padding: 66px 0 26px; border-bottom: 1px solid var(--ink); }
.front-kicker { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--red); font-family: var(--sans); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; }
.front-kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.front-page h1 { margin: 0; font-size: clamp(3.7rem, 9vw, 8.8rem); letter-spacing: -0.08em; line-height: 0.8; }
.front-page h1 em { color: var(--red); font-weight: 400; }
.front-intro { max-width: 430px; margin: 0 0 4px; color: var(--muted); font-size: 1.05rem; line-height: 1.55; }
.front-line { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 18px; margin-top: 32px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.63rem; letter-spacing: 0.1em; }
.news-section, .projects-section { padding: 38px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; border-bottom: 2px solid var(--ink); }
.section-heading > div { display: flex; align-items: baseline; gap: 10px; }
.section-number { color: var(--red); font-size: 0.68rem; font-weight: 800; }
.section-heading h2 { margin: 0 0 7px; font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -0.04em; }
.section-heading p { margin: 0 0 9px; color: var(--muted); font-family: var(--serif); font-size: 0.82rem; font-style: italic; }

.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 19px; }
.story { display: flex; flex-direction: column; min-width: 0; border-bottom: 1px solid var(--line); }
.story-lead { grid-column: span 2; grid-row: span 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; border-bottom: 0; }
.story-feature { border-bottom: 2px solid var(--ink); }
.story-image { overflow: hidden; aspect-ratio: 1.55 / 1; background: var(--paper-deep); }
.story-lead .story-image { height: 100%; aspect-ratio: auto; }
.story-image img { height: 100%; object-fit: cover; transition: transform 300ms ease; }
.story-image:hover img { transform: scale(1.035); }
.story-body { padding: 13px 0 17px; }
.story-lead .story-body { align-self: end; padding: 0 0 4px; }
.story-kicker { margin-bottom: 8px; color: var(--red); font-family: var(--sans); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.story h3 { margin: 0 0 10px; font-size: 1.18rem; letter-spacing: -0.025em; line-height: 1.12; }
.story-lead h3 { font-size: clamp(1.8rem, 3.7vw, 3rem); line-height: 0.98; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { color: var(--red); }
.story p { margin: 0 0 14px; color: #4d4e4a; font-size: 0.86rem; line-height: 1.48; }
.read-link { color: var(--blue); font-family: var(--sans); font-size: 0.66rem; font-weight: 800; text-decoration: none; }
.read-link span { color: var(--red); font-size: 0.82rem; }
.source-note { margin: 22px 0 0; color: var(--muted); font-family: var(--sans); font-size: 0.65rem; }
.source-note a { color: var(--red); }

.projects-section { padding-bottom: 50px; }
.project-banners { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 13px; }
.project-banner { min-height: 155px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.project-banner:hover { transform: translateY(-3px); box-shadow: 0 9px 18px rgba(47,39,26,0.16); }
.banner-label { font-family: var(--sans); font-size: 0.6rem; font-weight: 800; letter-spacing: 0.13em; }
.project-banner strong { font-size: clamp(1.55rem, 3vw, 2.5rem); letter-spacing: -0.06em; line-height: 0.9; }
.project-banner > span:last-child { font-family: var(--sans); font-size: 0.7rem; }
.banner-amras { color: #fffaf1; background: var(--red); }
.banner-amras strong { font-size: 3.1rem; letter-spacing: -0.13em; }
.banner-school { color: var(--blue); background: var(--yellow); }
.banner-pixwords { color: #e9fbff; background: var(--blue); }
.banner-pixwords .banner-label, .banner-pixwords > span:last-child { color: #a8e8ec; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 17px 0 24px; border-top: 3px double var(--ink); color: var(--muted); font-size: 0.68rem; }
.site-footer strong { display: block; color: var(--blue); font-family: var(--serif); font-size: 1.2rem; }
.site-footer p { margin: 0; max-width: 520px; line-height: 1.45; }

@media (max-width: 820px) {
  .masthead-main { grid-template-columns: 1fr auto; }
  .masthead-main p { display: none; }
  .front-page { grid-template-columns: 1fr; gap: 22px; }
  .front-intro { max-width: 560px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-lead { grid-column: span 2; grid-row: auto; }
  .project-banners { grid-template-columns: 1fr; }
  .project-banner { min-height: 135px; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 560px) {
  .paper-shell { width: 100%; margin: 0; padding: 0 17px; }
  .masthead-top, .masthead-bottom { font-size: 0.57rem; }
  .masthead-top span:last-child, .masthead-bottom > span { display: none; }
  .masthead-bottom nav { justify-content: space-between; width: 100%; gap: 8px; }
  .wordmark { font-size: 3.7rem; }
  .issue-stamp { padding: 7px; font-size: 0.56rem; }
  .front-page { padding-top: 50px; }
  .front-page h1 { font-size: clamp(3.65rem, 18vw, 6rem); }
  .story-grid { display: block; }
  .story, .story-lead, .story-feature { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 13px; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .story-lead .story-image, .story-image { height: auto; aspect-ratio: 1 / 1; }
  .story-lead .story-body { align-self: center; padding: 0; }
  .story h3, .story-lead h3 { font-size: 1.05rem; }
  .story p { font-size: 0.75rem; }
  .story-kicker { font-size: 0.54rem; }
  .site-footer { display: block; }
  .site-footer p { margin: 18px 0; }
}
