:root {
  --bg: #f4efe4;
  --bg-strong: #e9dec5;
  --surface: rgba(255, 252, 246, 0.9);
  --surface-strong: #fffaf0;
  --text: #182119;
  --muted: #556052;
  --line: rgba(24, 33, 25, 0.12);
  --accent: #2f6b3b;
  --accent-strong: #1f4c29;
  --accent-soft: #d8e7d3;
  --shadow: 0 18px 48px rgba(32, 36, 24, 0.12);
  --radius: 24px;
  --content-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 28rem),
    linear-gradient(180deg, #efe4c9 0%, var(--bg) 24%, #f7f3eb 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

.response-page {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 26rem),
    radial-gradient(circle at top right, rgba(194, 216, 233, 0.42), transparent 22rem),
    linear-gradient(180deg, #e6edf2 0%, #eef3f5 22%, #f5f3ec 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-strong);
}

.site-body {
  min-height: 100vh;
}

.site-header {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.2rem 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.75rem;
  max-width: 52rem;
}

.site-nav a {
  display: inline-flex;
  text-decoration: none;
  color: var(--muted);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  text-align: center;
}

.site-nav a.is-current,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(47, 107, 59, 0.2);
  background: rgba(216, 231, 211, 0.65);
}

.hero,
.subpage-hero,
.content-shell,
.image-strip {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.hero,
.subpage-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 3.5rem 0 2rem;
  align-items: center;
}

.hero {
  grid-template-columns: 1fr;
}

.hero-copy h1,
.subpage-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-strong);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-lead,
.subpage-copy p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.button-primary {
  background: var(--accent);
  color: #f8fff8;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border: 1px solid rgba(24, 33, 25, 0.08);
}

.hero-visual,
.subpage-visual {
  margin: 0;
  padding: 1rem;
  border-radius: calc(var(--radius) + 6px);
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
}

.hero-visual img,
.subpage-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.hero-visual figcaption {
  padding-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-image-breakout {
  width: 100vw;
  margin: 0 0 2rem calc(50% - 50vw);
}

.hero-image-breakout img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.image-strip figure,
.gallery-grid figure {
  margin: 0;
}

.image-strip img,
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.content-shell {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.letter-shell {
  margin-top: 1rem;
  width: min(calc(100% - 2rem), 56rem);
  padding: 2rem 2.25rem;
}

.response-page .content-shell {
  background: rgba(246, 251, 255, 0.9);
  border-color: rgba(190, 209, 224, 0.6);
}

.response-page .site-nav a.is-current,
.response-page .site-nav a:hover,
.response-page .site-nav a:focus-visible {
  background: rgba(210, 227, 239, 0.8);
  border-color: rgba(103, 141, 170, 0.28);
}

/* Smaller heading for: Dear Mayor Andrew Little and City Councillors */
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  line-height: 1.15;
}

.section-heading {
  padding-bottom: 1.4rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.letter {
  max-width: none;
}

.letter p {
  margin: 0 0 1.15rem;
  font-size: 1.07rem;
}

.letter .letter-quote {
  max-width: 42rem;
  margin: 1.7rem auto;
  padding: 0 1.2rem;
}

.letter .letter-quote em {
  display: block;
}

.quote-source {
  display: block;
  margin-top: 0.7rem;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: right;
}

.emphasis-underline {
  text-decoration: underline;
}

.letter-figure {
  margin: 1.6rem 0;
}

.letter-figure img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.letter-figure-portrait {
  margin: 0;
}

.letter-figure-portrait img {
  max-width: 22rem;
}

.letter-split {
  display: grid;
  grid-template-columns: minmax(0, 22rem) 1fr;
  gap: 1.4rem;
  align-items: start;
  margin: 1.7rem 0;
}

.letter-split p {
  margin: 0;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 18px 18px 0;
  background: var(--accent-soft);
  font-weight: 700;
}

.signature,
.support-link {
  padding-top: 0.75rem;
  color: var(--muted);
}

.archive-note {
  margin-bottom: 1.8rem;
  padding: 1rem 1.2rem;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.archive-title-block {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 3rem 0 1.2rem;
}

.archive-title-block h1 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.archive-banner-breakout {
  width: 100vw;
  margin: 0 0 2rem calc(50% - 50vw);
}

.archive-banner-breakout img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* Smaller green section headings, including:
   THE CITY'S LONG-TERM PLAN: TEMPORARY FOOD-COURT
   OUR NEW CIVIC SQUARE DESIGN:
   REDUCED OPEN SPACE
   FROM THE COMMENT PAGES:
*/
.feature-line {
  font-size: clamp(1.45rem, 2.5vw, 2rem) !important;
  line-height: 1.12;
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 1.6rem 0 0.9rem;
}

.feature-line + .feature-line {
  margin-top: -0.7rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.articles-hero,
.articles-list {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.articles-hero {
  padding: 3.2rem 0 1.8rem;
}

.articles-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.articles-intro {
  margin: 0;
  max-width: 48rem;
  font-size: 1.08rem;
  color: var(--muted);
}

.articles-list {
  display: grid;
  gap: 1.1rem;
  padding-bottom: 3rem;
}

.article-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid rgba(24, 33, 25, 0.1);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-preview {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #e8e3d8;
}

.article-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.article-card:hover .article-preview img,
.article-card:focus-within .article-preview img {
  transform: scale(1.02);
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(47, 107, 59, 0.28);
  box-shadow: 0 20px 42px rgba(32, 36, 24, 0.14);
}

.article-card h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.article-card h2::after {
  content: "Open article";
  display: block;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--accent-strong);
}

.archive-page {
  background:
    radial-gradient(circle at top left, rgba(255, 239, 112, 0.55), transparent 26rem),
    linear-gradient(180deg, #ffd400 0%, #f0c000 100%);
  color: #111111;
}

.archive-page .site-brand,
.archive-page .site-nav a,
.archive-page .signature,
.archive-page .support-link,
.archive-page .letter p,
.archive-page .archive-title-block h1 {
  color: #111111;
}

.archive-page .site-nav a {
  background: rgba(255, 230, 74, 0.82);
  border-color: rgba(17, 17, 17, 0.18);
}

.archive-page .site-nav a.is-current,
.archive-page .site-nav a:hover,
.archive-page .site-nav a:focus-visible {
  background: #111111;
  color: #ffd400;
  border-color: #111111;
}

.archive-page .content-shell {
  background: rgba(255, 235, 120, 0.95);
  border: 2px solid rgba(17, 17, 17, 0.15);
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.14);
}

.archive-page .feature-line,
.archive-page a {
  color: #111111;
}

.archive-page .gallery-grid img {
  border-radius: 0;
  box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
}

@media (max-width: 900px) {
  .hero,
  .subpage-hero,
  .image-strip,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding-top: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .subpage-hero {
    padding-top: 2.2rem;
  }

  .hero-image-breakout img {
    height: auto;
  }

  .hero-copy h1,
  .subpage-copy h1 {
    line-height: 1;
  }

  .content-shell {
    padding: 1.35rem;
  }

  .archive-title-block {
    padding-top: 2rem;
  }

  .article-card {
    grid-template-columns: 1fr;
  }

  .letter-split {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual,
  .content-shell,
  .image-strip figure {
    animation: rise-in 700ms ease both;
  }

  .hero-visual {
    animation-delay: 120ms;
  }

  .image-strip figure:first-child {
    animation-delay: 180ms;
  }

  .image-strip figure:last-child {
    animation-delay: 240ms;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
