@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("assets/fonts/roboto-bold-italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Rye";
  src: url("assets/fonts/rye-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #fffefa;
  --ink: #171715;
  --muted: #66645e;
  --line: #d4d0c6;
  --blue: #1768d7;
  --blue-deep: #0f4da8;
  --blue-soft: #e9f2ff;
  --content-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--blue);
}

strong {
  font-weight: 700;
}

.masthead,
main,
.site-footer {
  width: min(calc(100% - 80px), var(--content-width));
  margin-inline: auto;
}

.masthead {
  display: grid;
  grid-template-columns: 106px 1fr 106px;
  align-items: center;
  gap: 28px;
  padding: 48px 0 40px;
  text-align: center;
}

.masthead::after {
  content: "";
  width: 106px;
}

.brand-mark {
  width: 106px;
  height: 106px;
  object-fit: contain;
}

.masthead-copy h1 {
  margin: 0;
  font-family: "Rye", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.kicker,
.issue-label,
.section-number {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.issue-label {
  margin-top: 9px;
  letter-spacing: 0.06em;
}

.issue-label span,
.site-footer span {
  padding-inline: 0.35em;
}

.section-rule {
  border-top: 1px solid var(--ink);
  padding-block: clamp(44px, 5vw, 72px);
}

.opening-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 1fr);
  gap: clamp(40px, 5vw, 72px);
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(1.38rem, 2vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.feature-list,
.compact-list {
  margin: 0;
  padding-left: 1.35rem;
}

.feature-list li + li,
.compact-list li + li {
  margin-top: 0.65rem;
}

.opening-sidebar {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.sidebar-block + .sidebar-block {
  margin-top: 38px;
  border-top: 1px solid var(--line);
  padding-top: 38px;
}

.sidebar-block h2 {
  font-size: 1.28rem;
}

.sidebar-block h3 {
  font-weight: 500;
  font-style: italic;
}

.sidebar-block h3 span {
  font-weight: 400;
}

.chart-heading {
  margin-top: 28px;
}

.bar-chart {
  display: grid;
  gap: 8px;
}

.bar-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
}

.bar-row > span {
  text-align: right;
}

.bar-track {
  height: 23px;
  background: var(--blue-soft);
  overflow: hidden;
}

.bar-track i {
  position: relative;
  display: block;
  width: var(--value);
  min-width: 42px;
  height: 100%;
  background: linear-gradient(90deg, #2f79e3, #5a97ee);
  transform-origin: left;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready .reveal:not(.is-visible) .bar-track i {
  transform: scaleX(0);
}

.bar-track b {
  position: absolute;
  right: 6px;
  color: white;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 500;
  line-height: 23px;
}

.chart-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
}

.event-list {
  margin: 0;
}

.event-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.event-list dt,
.event-list dd {
  margin: 0;
}

.event-list dt span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
}

.event-list dd {
  white-space: nowrap;
  font-weight: 700;
}

.story-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.story-heading h2 {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  text-transform: none;
}

.byline {
  margin-bottom: 24px;
  color: var(--muted);
  font-style: italic;
}

.standfirst {
  margin-bottom: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.55;
}

.story-grid {
  display: grid;
  gap: 64px;
}

.story-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(28px, 5vw, 66px);
}

.story-item:nth-child(even) {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.story-item:nth-child(even) .story-copy {
  order: 2;
}

main {
  overflow-wrap: break-word;
}

/* Give the four-photo gallery the full page width. */
.story-item.story-item--gallery {
  grid-template-columns: 1fr;
  gap: 28px;
}

.story-item.story-item--gallery .story-copy {
  order: initial;
  max-width: 72ch;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-copy h3 {
  display: inline-block;
  border-bottom: 2px solid var(--ink);
  font-size: 1.22rem;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #eeeae0;
}

.missing-image > div {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eeeae0;
}

figcaption {
  margin-top: 11px;
  color: #393834;
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.45;
}

.missing-image > div {
  display: grid;
  place-items: center;
  border: 1px dashed #aaa59a;
  color: var(--muted);
}

.missing-image span {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 32px;
  align-items: start;
}

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px);
}

.community-card + .community-card,
.feature-portrait + .community-card {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.community-card h2 {
  font-size: 1.28rem;
}

.community-card p:last-child {
  margin-bottom: 0;
}

.feature-portrait img {
  height: auto;
  object-fit: contain;
}

.contact-note {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid var(--ink);
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer img {
  width: 48px;
  height: 48px;
}

.site-footer p {
  margin: 0;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 78px 1fr;
    gap: 20px;
    padding-top: 30px;
    text-align: left;
  }

  .masthead::after {
    display: none;
  }

  .brand-mark {
    width: 75px;
    height: 75px;
  }

  .opening-grid,
  .community-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-item,
  .story-item:nth-child(even),
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .story-item:nth-child(even) .story-copy {
    order: initial;
  }

  .opening-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 40px 0 0;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 1rem;
    line-height: 1.58;
  }

  .masthead,
  main,
  .site-footer {
    width: min(calc(100% - 32px), var(--content-width));
  }

  .masthead {
    grid-template-columns: 64px 1fr;
    padding: 24px 0;
  }

  .brand-mark {
    width: 64px;
    height: 64px;
  }

  .masthead-copy h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  }

  .issue-label span {
    display: none;
  }

  .issue-label {
    display: grid;
    gap: 1px;
    font-size: 0.66rem;
  }

  .section-rule {
    padding-block: 42px;
  }

  h2,
  .sidebar-block h2,
  .community-card h2 {
    font-size: 1.25rem;
  }

  .story-heading h2 {
    font-size: 2rem;
  }

  .story-heading,
  .story-grid {
    margin-bottom: 0;
  }

  .story-grid {
    margin-top: 34px;
    gap: 46px;
  }

  .story-item,
  .story-item:nth-child(even),
  .photo-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-item:nth-child(even) .story-copy {
    order: initial;
  }

  .story-item figure {
    margin-top: 0;
  }

  .bar-row {
    grid-template-columns: 60px 1fr;
  }

  .event-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .event-list dd {
    color: var(--blue-deep);
    font-size: 0.86rem;
  }

  .site-footer {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal-ready .reveal,
  .reveal-ready .reveal:not(.is-visible) .bar-track i,
  .bar-track i {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media print {
  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }

  a {
    color: inherit;
  }
}
