:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ink: #252b25;
  --muted: #4b5148;
  --line: #d7d0c0;
  --surface: #fffcf6;
  --focus: #304c66;
  --gutter: clamp(1rem, 4vw, 3.5rem);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 "Segoe UI", system-ui, sans-serif;
}
header, main {
  width: min(1200px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
header {
  min-height: 5.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  padding-block: .85rem;
  border-bottom: 1px solid var(--line);
}
a { color: inherit; text-underline-offset: .23em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-size: 1.08rem; font-weight: 680; text-decoration: none; }
.contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  background: #2e392d;
  color: #fffaf0;
  font-weight: 600;
  text-decoration: none;
}
.contact:hover { background: #424f3f; }
.contact:active { background: #19241b; }
main { padding-block: clamp(2rem, 5vw, 5rem); }
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 2vw, 1.6rem);
}
.politics { --wash: #dce1c4; --tone: #465339; --soft: #9da980; --spark: #e9c88d; }
.business { --wash: #dbe5e8; --tone: #304c66; --soft: #72939e; --spark: #f0c37f; }
.volunteering { --wash: #efdbc8; --tone: #844632; --soft: #c28162; --spark: #ead4a1; }
.topic {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--surface);
  text-decoration: none;
  transition: box-shadow .22s ease, transform .22s ease;
}
.topic:hover { transform: translateY(-4px); box-shadow: 0 15px 32px #322b1c15; }
.topic:active { transform: translateY(1px); }
.art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.18;
  isolation: isolate;
  overflow: hidden;
  background: var(--wash);
}
.art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.topic-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem;
  grid-template-areas: "title arrow" "description arrow";
  align-content: center;
  align-items: center;
  gap: .35rem .7rem;
  padding: clamp(1rem, 2.5vw, 1.85rem);
}
.topic-title { grid-area: title; font-size: clamp(1.3rem, 2.55vw, 2.25rem); font-weight: 680; letter-spacing: -.035em; line-height: 1.2; }
.topic-description { grid-area: description; color: var(--muted); line-height: 1.45; }
.arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--tone);
  background: var(--wash);
  font-size: 1.2rem;
}
.detail { max-width: 760px; }
.detail h1, .detail h2 { line-height: 1.12; letter-spacing: -.035em; }
.detail h1 { margin: 1rem 0 1.4rem; font-size: clamp(2.6rem, 8vw, 5.4rem); }
.detail h2 { margin: 0 0 .45rem; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.detail section { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.detail p { margin: .45rem 0 .8rem; max-width: 62ch; }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
@media (max-width: 840px) {
  .topic-body { grid-template-columns: minmax(0, 1fr) 2rem; }
  .topic-description { font-size: .92rem; }
}
@media (max-width: 670px) {
  header { min-height: 4.5rem; }
  .topic-grid { grid-template-columns: 1fr; }
  .topic { grid-template-columns: minmax(5.5rem, 34%) 1fr; grid-template-rows: 1fr; }
  .art { aspect-ratio: auto; min-height: 8rem; }

  .topic-body { padding-inline: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .topic { transition: none; }
  .topic:hover, .topic:active { transform: none; }
}

.intro { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
.page-nav { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-block: 1rem; }
.page-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.detail section[id] { scroll-margin-top: 1rem; }
.delegation { color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.theme-detail { max-width: 930px; }
.theme-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 38%);
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: var(--wash);
  border-radius: 1.4rem;
  margin: .6rem 0 1.15rem;
}
.theme-hero > div { padding: clamp(1.2rem, 4vw, 2.8rem); }
.theme-hero h1 { margin: 0 0 .65rem; }
.theme-hero .theme-lead { margin: 0; font-size: clamp(1.08rem, 2vw, 1.3rem); max-width: 42ch; }
.theme-hero img { display: block; width: 100%; height: 100%; min-height: 12rem; object-fit: cover; }
.theme-detail section, .theme-example, .theme-detail .page-nav { max-width: 730px; }
.theme-detail section { padding-block: 1.75rem; }
.theme-example { background: var(--wash); border-radius: 1rem; margin: 1rem 0 1.5rem; padding: 1.25rem 1.5rem; }
.theme-detail .page-nav a { color: var(--tone); text-decoration-thickness: .08em; }
@media (max-width: 560px) {
  .theme-hero { grid-template-columns: 1fr; }
  .theme-hero img { height: auto; min-height: 0; aspect-ratio: 2 / 1; }
  .theme-detail section { padding-block: 1.4rem; }
}
