/* December 31 newsletter — local styles, no external dependencies */

:root {
  --paper: #f4f4f4;
  --paper-deep: #e9e9e9;
  --white: #ffffff;
  --ink: #17202b;
  --muted: #566070;
  --navy: #1b2a4a;
  --navy-deep: #121d33;
  --sky: #1a95d3;
  --sky-text: #0f6ea6;
  --red: #d2232a;
  --yellow: #ffd200;
  --yellow-deep: #f2c400;
  --rule: #d5d5d5;
  --focus: #1a95d3;
  --font-display: "Avenir Next Condensed", "Bahnschrift", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 800px;
  --gutter: clamp(16px, 4vw, 32px);
  --measure: 62ch;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

figure {
  margin: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--sky-text);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

ul[role="list"] {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  border-radius: 4px;
}

.skip:focus {
  top: 12px;
}

/* ---------- Masthead ---------- */

.masthead {
  background-color: var(--white);
  background-image:
    linear-gradient(#e8e8e8 1px, transparent 1px),
    linear-gradient(90deg, #e8e8e8 1px, transparent 1px);
  background-size: 34px 34px;
  background-position: center top;
  border-bottom: 4px solid var(--navy);
}

.masthead__inner {
  position: relative;
}

.masthead__img {
  width: 100%;
  height: auto;
}

.wordmark {
  margin: 0;
}

/* On wide screens the masthead image carries the wordmark; keep the h1 for assistive tech only. */
@media (min-width: 640px) {
  .wordmark {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.edition {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--rule);
}

.edition__date {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.pdf-link::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: 0;
  border-left: 0;
  transform: translateY(-2px) rotate(45deg);
}

.pdf-link:hover {
  background: var(--navy);
  color: var(--white);
}

@media (max-width: 639px) {
  .masthead__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "mark mark"
      "portrait edition";
    align-items: center;
    column-gap: 18px;
    padding-top: 22px;
    padding-bottom: 20px;
  }
  .wordmark {
    grid-area: mark;
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(44px, 15.5vw, 64px);
    line-height: 0.9;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: var(--navy);
    background: linear-gradient(180deg, #2a3d63 0%, var(--navy) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  /* Circular headshot cut from the masthead: the image is scaled and offset so the face fills the circle. */
  .masthead__portrait {
    grid-area: portrait;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--navy);
    background: var(--white);
  }
  .masthead__img {
    width: 490px;
    max-width: none;
    height: auto;
    margin: -2px 0 0 -318px;
  }
  .edition {
    grid-area: edition;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 0;
    border-top: 0;
  }
}

/* ---------- Section scaffolding ---------- */

.sec {
  padding-block: clamp(44px, 7vw, 76px);
  border-top: 1px solid var(--rule);
}

.sec:first-child {
  border-top: 0;
}

.sec--dark {
  background: var(--navy);
  color: var(--white);
  border-top: 0;
}

.sec--dark + .sec {
  border-top: 0;
}

.sec-head {
  margin-bottom: clamp(18px, 3vw, 28px);
}

.sec-head--center {
  text-align: center;
}

.kicker {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: 0.08em;
  line-height: 1.25;
  color: var(--red);
}

.kicker--sky {
  color: var(--sky-text);
}

.title {
  margin: 0 0 0.45em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.9rem, 5vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--navy);
}

.title--sky {
  color: var(--sky);
}

.title--red {
  color: var(--red);
}

.title--display {
  font-size: clamp(2.6rem, 9vw, 4.5rem);
}

.title--sm {
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.08;
}

.sec-head--center .title {
  margin-inline: auto;
}

.prose {
  max-width: var(--measure);
}

.prose--center {
  margin-inline: auto;
  text-align: center;
}

.prose p + p {
  margin-top: 0.25em;
}

/* ---------- Media panels ---------- */

.panel {
  width: 100%;
}

.panel img {
  width: 100%;
  height: auto;
}

.panel--narrow {
  max-width: 560px;
  margin-inline: auto;
}

.panel--map {
  max-width: 640px;
  margin: 0 auto clamp(12px, 2vw, 20px);
}

.hero-portrait {
  max-width: 600px;
  margin: 0 auto clamp(12px, 2vw, 20px);
}

.hero-portrait img {
  width: 100%;
  height: auto;
}

.gap-top {
  margin-top: clamp(24px, 4vw, 40px);
}

/* ---------- Split (media + text) ---------- */

.split {
  display: grid;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

.split__media img {
  width: 100%;
  height: auto;
}

.split__media--card {
  max-width: 420px;
}

@media (min-width: 640px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
  .split--media-right .split__media {
    order: 2;
  }
  .split--media-first .split__media {
    order: -1;
  }
}

/* ---------- Quote ---------- */

.quote {
  margin: 1.25em 0 0;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--red);
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: 1.1875rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--navy);
}

.quote figcaption {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9375rem;
  color: var(--red);
}

/* ---------- Buttons and CTA rows ---------- */

.cta-row {
  display: flex;
  justify-content: center;
  margin: clamp(16px, 3vw, 24px) 0 0;
}

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 26px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  background: var(--yellow-deep);
  color: var(--ink);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
}

.btn:focus-visible {
  outline-color: var(--navy);
}

.btn__url {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0;
  text-transform: none;
  color: #3b3b3b;
}

.inline-link {
  margin-top: 0.75em;
  font-weight: 600;
}

.inline-link a::after {
  content: " \203A";
}

/* ---------- Bands ---------- */

.band {
  margin: clamp(28px, 5vw, 44px) 0 clamp(16px, 3vw, 22px);
  padding: 12px 18px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  border-left: 6px solid var(--yellow);
}

.band a {
  color: inherit;
  text-decoration: none;
}

.band a::after {
  content: " \25B6";
  font-size: 0.7em;
  color: var(--yellow);
  vertical-align: 0.1em;
}

.band a:hover {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
}

.band a:focus-visible {
  outline-color: var(--yellow);
}

.band--first {
  margin-top: 0;
}

/* ---------- Linked media cards ---------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 18px -8px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.card__link {
  display: block;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card__link img {
  width: 100%;
  height: auto;
}

.card__link:focus-visible {
  outline: none;
}

.card:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sec--dark .card:focus-within {
  outline-color: var(--yellow);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 14px 28px -10px rgba(0, 0, 0, 0.35);
}

.card__cta {
  padding: 12px 16px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.card__cta::after {
  content: " \203A";
}

.card:hover .card__cta {
  background: var(--yellow-deep);
}

.card__cap {
  padding: 12px 14px 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink);
}

.card__cap::after {
  content: " \203A";
  color: var(--sky-text);
  font-weight: 700;
}

.card--strip .card__cap {
  padding: 12px 16px 14px;
}

.card--strip .card__cap--lead {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.card--media {
  margin-top: clamp(20px, 3vw, 28px);
}

/* ---------- Thumbnail grids ---------- */

.thumbs {
  display: grid;
  gap: clamp(14px, 2.5vw, 22px);
  grid-template-columns: 1fr;
}

.thumbs .card {
  height: 100%;
}

.thumbs .card__cap {
  flex: 1;
}

@media (min-width: 480px) {
  .thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 720px) {
  .thumbs--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Snapshot strips ---------- */

.strips {
  display: grid;
  gap: clamp(16px, 3vw, 24px);
  margin-top: clamp(20px, 3vw, 28px);
}

.sec--dark .title--display {
  color: var(--white);
}

.sec--dark .title--display .accent {
  color: var(--sky);
}

/* ---------- Pair captions under the two-thumbnail panel ---------- */

.pair-caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--navy);
}

.pair-caps li {
  padding: 8px 6px 0;
  border-top: 3px solid var(--sky);
}

/* ---------- 2024 in numbers ---------- */

.numbers {
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--rule);
}

.numbers__grid {
  display: grid;
  gap: clamp(20px, 4vw, 36px);
  align-items: center;
}

@media (min-width: 640px) {
  .numbers__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }
}

.stats {
  display: grid;
  gap: 8px;
}

.stats li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--muted);
}

.stats__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--sky);
  white-space: nowrap;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--white);
  border-top: 4px solid var(--navy);
  padding: clamp(28px, 5vw, 40px) 0;
  text-align: center;
}

.social {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  transition: background-color 0.15s ease;
}

.social a:hover {
  background: var(--yellow);
}

.social img {
  width: 24px;
  height: 24px;
}
