:root {
  --navy: #1b365d;
  --navy-ink: #12243f;
  --red: #c8102e;
  --paper: #f6f1e6;
  --raised: #fffdf8;
  --ink: #1c2430;
  --muted: #5c6570;
  --line: #e0d6c4;
  --dawn: #c48a2a;
  --green: #2f7d4f;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 46rem;
  --header-h: 3.5rem;
  --shadow: 0 18px 40px rgb(28 36 48 / 0.08);
}

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

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--navy);
  color: #fff;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: rgb(27 54 93 / 0.06);
  padding: 0.08em 0.28em;
}

pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--raised);
  font-size: 0.95rem;
}

pre code {
  background: none;
  padding: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 80;
  padding: 0.6rem 0.9rem;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: var(--header-h);
  padding: 0 1.15rem;
  padding-top: env(safe-area-inset-top);
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--red);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand:focus-visible {
  outline-color: #fff;
}

.who {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 0.78);
  white-space: nowrap;
}

.spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.nav {
  display: flex;
  align-items: stretch;
  flex: none;
  gap: 0.15rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav a[aria-current="page"] {
  box-shadow: inset 0 -3px 0 var(--red);
}

.nav a:focus-visible {
  outline-color: #fff;
}

.feedback-group {
  display: inline-flex;
  flex: none;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.feedback-btn {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: 7px;
  background: rgb(255 255 255 / 0.06);
  cursor: pointer;
  color: inherit;
}

.feedback-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feedback-up {
  color: #1f7a3d;
  background: #d8f3e2;
  border-color: #2f7d4f;
}

.feedback-down {
  color: #9f0014;
  background: #ffd6db;
  border-color: #c8102e;
}

.feedback-up:hover {
  background: #c5ecd2;
  border-color: #1f7a3d;
}

.feedback-down:hover {
  background: #ffc4cb;
  border-color: #9f0014;
}

.feedback-btn:active {
  transform: translateY(1px);
}

.feedback-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(17 19 24 / 0.45);
}

.feedback-modal {
  width: min(440px, 100%);
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.feedback-modal--survey {
  width: min(580px, 100%);
}

.feedback-survey {
  width: 100%;
  height: min(72vh, 580px);
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
}

.feedback-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-modal-head strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.feedback-modal-close {
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.feedback-modal-close:hover {
  background: var(--paper);
  color: var(--ink);
}

.feedback-modal-hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

main {
  width: min(100% - 2.3rem, 52rem);
  margin: 0 auto;
  padding: 4.2rem 0 6rem;
}

.intro {
  margin-bottom: 2.6rem;
}

.eyebrow {
  margin: 0 0 1.15rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

h1,
h2,
.edition-title {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.15rem;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 5.1rem);
  color: var(--navy-ink);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.lede {
  max-width: 38rem;
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
  color: var(--muted);
}

.status {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.date-index {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 2.4rem;
  padding: 0.2rem 0 0.8rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.date-index::-webkit-scrollbar {
  display: none;
}

.date-chip {
  flex: 0 0 auto;
  display: grid;
  gap: 0.1rem;
  min-width: 5.6rem;
  padding: 0.65rem 0.75rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--raised);
  color: inherit;
  text-decoration: none;
  font-family: var(--sans);
}

.date-chip strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.date-chip span {
  color: var(--muted);
  font-size: 0.78rem;
}

.date-chip[aria-current="page"],
.date-chip.is-current {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.date-chip[aria-current="page"] span,
.date-chip.is-current span {
  color: rgb(255 255 255 / 0.72);
}

.edition {
  margin: 0 0 2.4rem;
  padding: 2.1rem 2rem 2.2rem;
  border: 1px solid var(--line);
  background: var(--raised);
  box-shadow: var(--shadow);
}

.edition-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.15rem;
  border-bottom: 2px solid var(--navy);
}

.edition-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
}

.permalink {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
}

.permalink:hover {
  color: var(--navy);
}

.note {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--dawn);
  color: var(--muted);
  font-size: 1.02rem;
}

.block {
  margin: 0 0 1.7rem;
}

.block:last-child {
  margin-bottom: 0;
}

.block-label {
  margin: 0 0 0.7rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dawn);
}

.positives {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: positive;
}

.positives li {
  position: relative;
  margin: 0 0 1.15rem;
  padding-left: 2.4rem;
}

.positives li::before {
  counter-increment: positive;
  content: counter(positive);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--navy);
}

.item-title {
  margin: 0 0 0.28rem;
  font-family: var(--serif);
  font-size: 1.28rem;
  line-height: 1.25;
}

.item-body {
  margin: 0;
  max-width: var(--measure);
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  margin: 0.55rem 0 0;
}

.source-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.text-link {
  font-weight: 650;
  text-underline-offset: 3px;
}

.zoom,
.companion,
.wow {
  padding-top: 0.2rem;
}

.wow {
  margin-bottom: 2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  background: #fff8ee;
}

.wow-stub {
  margin: 0;
  color: var(--muted);
}

.wow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.7rem;
  margin: 0.9rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--navy-ink);
}

.btn-secondary {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-secondary:hover {
  background: rgb(27 54 93 / 0.08);
}

.single-banner {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
}

.loading {
  display: grid;
  gap: 1rem;
}

.skeleton {
  min-height: 18rem;
  background: linear-gradient(100deg, var(--raised) 10%, #efe6d4 45%, var(--raised) 80%);
  background-size: 220% 100%;
  border: 1px solid var(--line);
}

.empty,
.error {
  padding: 2.4rem 1.6rem;
  border: 1px solid var(--line);
  background: var(--raised);
}

.help-block {
  margin: 0 0 2.8rem;
  max-width: 40rem;
}

.help-block h2 {
  margin-bottom: 0.9rem;
}

.site-footer {
  padding: 1.5rem 1.15rem 2.4rem;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer .wrap {
  width: min(100%, 52rem);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
}

.site-footer a {
  color: #fff;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: shimmer 1.6s linear infinite;
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (min-width: 880px) {
  body {
    font-size: 1.25rem;
  }

  .chrome {
    padding-left: 1.8rem;
    padding-right: 1.8rem;
  }

  main {
    padding-top: 5.2rem;
  }

  .edition {
    padding: 2.5rem 2.5rem 2.6rem;
  }
}

@media (max-width: 1280px) {
  .who {
    display: none;
  }
}

@media (max-width: 480px) {
  .chrome {
    gap: 0.2rem;
    padding-left: 0.4rem;
    padding-right: 0.35rem;
  }

  .spacer {
    min-width: 0;
  }

  .brand {
    font-size: 1rem;
  }

  .nav a {
    padding: 0 0.28rem;
    letter-spacing: 0.02em;
    font-size: 0.68rem;
  }

  .feedback-group {
    gap: 4px;
  }

  .feedback-btn {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 720px) {

  main {
    width: min(100% - 1.6rem, 52rem);
    padding-top: 2.6rem;
  }

  .edition {
    padding: 1.4rem 1.15rem 1.5rem;
  }

  .edition-head {
    display: grid;
    gap: 0.35rem;
  }

  .positives li {
    padding-left: 2.1rem;
  }
}

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