:root {
  --ink: #18203b;
  --night: #152146;
  --paper: #f8f6f0;
  --line: #d6d5d0;
  --yellow: #f7e484;
  --blue: #cedcff;
  --mint: #cbe9db;
  --pink: #f6d1cb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
img, iframe { display: block; }
.wrap { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 1rem; top: -8rem; padding: .7rem 1rem; background: white; }
.skip:focus { top: 1rem; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; }
.brand-mark {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 1px solid currentColor;
  flex: none;
  background: linear-gradient(transparent 46%, currentColor 47% 53%, transparent 54%),
    radial-gradient(ellipse 35% 70% at center, transparent 77%, currentColor 82% 91%, transparent 95%);
}
.masthead nav { font-size: .95rem; font-weight: 700; white-space: nowrap; }

.home-hero { background: var(--night); color: var(--paper); }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.5rem, 8vw, 6rem);
}
h1, h2, .card-title { font-family: Georgia, "Times New Roman", serif; font-weight: 600; }
.hero-copy h1 { font-size: clamp(3rem, 6.4vw, 6.1rem); line-height: .97; letter-spacing: -.054em; }
.hero-subtitle { color: var(--yellow); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 750; margin-top: 1.25rem; letter-spacing: -.04em; }
.hero-description { max-width: 31rem; margin-top: .85rem; color: #e3e7f3; font-size: 1.06rem; }
.primary-button {
  display: inline-flex; align-items: center; min-height: 2.8rem; margin-top: 1.5rem;
  padding: .55rem 1rem; border-radius: .22rem; background: var(--yellow);
  color: var(--night); font-weight: 750; text-decoration: none;
}
.primary-button:hover { background: #fff1ab; }
.primary-button:focus-visible { outline-color: var(--yellow); }
.hero-art { max-width: 32rem; }
.screen {
  position: relative; overflow: hidden; aspect-ratio: 16 / 10;
  border: 1px solid #7f90b8; border-radius: .5rem;
  background: repeating-linear-gradient(135deg, #30436d 0 2px, #26385f 2px 11px);
}
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen-caption { display: flex; flex-wrap: wrap; column-gap: .75rem; margin-top: .85rem; color: var(--yellow); font-size: .9rem; font-weight: 700; text-decoration: none; }
.screen-caption span { color: var(--paper); text-decoration: underline; text-underline-offset: .22em; }

.topics-section { padding-block: clamp(2.5rem, 6vw, 4.5rem); scroll-margin-top: 1.25rem; }
h2 { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.09; letter-spacing: -.035em; }
.topic-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem;
  padding: 0; margin: 1.4rem 0 0; list-style: none;
}
.yellow { --accent: var(--yellow); }
.blue { --accent: var(--blue); }
.mint { --accent: var(--mint); }
.pink { --accent: var(--pink); }
.topic-card {
  height: 100%; display: flex; flex-direction: column; gap: .65rem;
  min-height: 11.4rem; padding: 1.05rem; border: 1px solid var(--line);
  border-top: .35rem solid var(--accent); border-radius: .3rem; background: #fffdfa;
  text-decoration: none;
}
.topic-card:hover { border-color: var(--ink); border-top-color: var(--ink); background: var(--accent); }
.topic-number { font-size: .86rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.card-title { display: block; font-size: 1.28rem; line-height: 1.15; overflow-wrap: anywhere; }
.card-copy { font-size: .96rem; line-height: 1.4; color: #3b445d; }

.topic-hero { background: var(--accent); border-bottom: 1px solid #18203b33; }
.topic-hero-inner { padding-block: clamp(2rem, 6vw, 4rem); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.5rem; font-size: .9rem; }
.breadcrumb a, .topic-label { font-weight: 750; }
.topic-hero h1 { max-width: 19ch; font-size: clamp(2.55rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -.047em; overflow-wrap: anywhere; }
.topic-label { font-size: 1.15rem; margin-top: .95rem; }
.topic-intro { max-width: 46rem; font-size: 1.1rem; margin-top: .8rem; }

.topic-body { padding-block: 2rem 3.5rem; }
.discussion {
  display: grid; grid-template-columns: max-content 1fr; align-items: baseline; column-gap: 1rem;
  background: #e9ecf4; border-left: .25rem solid var(--night);
  padding: 1rem 1.2rem; margin-bottom: 2rem;
}
.clip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.clip { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: .4rem; background: #fffdfa; scroll-margin-top: 1rem; }
.player { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; background: var(--night); }
.clip-text { padding: .9rem 1rem 1.1rem; }
.clip-text h3 { font-size: 1.13rem; line-height: 1.2; margin: .2rem 0 .55rem; }
.clip-year { font-size: .86rem; font-weight: 750; color: #495570; }
.clip-text a { display: inline-block; margin-top: .65rem; font-size: .92rem; font-weight: 650; }
.extras { margin-top: 2rem; }
.extras ul { padding-left: 1.2rem; margin-bottom: 0; }
.extras li { margin-block: .4rem; }
.extras li span { margin-left: .4rem; color: #495570; font-size: .9rem; }
.topic-pagination { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 2.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.topic-pagination a { flex: 1 1 14rem; font-weight: 700; }
.topic-pagination small { display: block; font-size: .9rem; font-weight: 400; }
.site-footer { border-top: 1px solid var(--line); font-size: .9rem; }
.footer-inner { padding-block: 1rem; }

@media (max-width: 62rem) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2rem); }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.6rem; }
  .desktop-break { display: none; }
  .footer-inner { flex-wrap: wrap; gap: .5rem; }
}
@media (max-width: 35rem) {
  .clip-grid { grid-template-columns: 1fr; }
  .discussion { grid-template-columns: 1fr; row-gap: .3rem; }
}
@media (max-width: 23rem) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card { min-height: 0; }
}
