:root {
  --bg: #0f1420;
  --bg-elevated: #171f30;
  --text: #eef1f7;
  --text-muted: #9aa5b8;
  --accent: #5fb0ff;
  --accent-soft: #223349;
  --border: #26314a;
  --radius: 12px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-elevated: #ffffff;
    --text: #161a22;
    --text-muted: #5b6472;
    --accent: #1a73c7;
    --accent-soft: #e4f0fd;
    --border: #dde2ec;
  }
}

/* Explicit overrides set by the theme switch (see #theme-toggle in app.js).
   These win over the OS-preference query above regardless of the visitor's
   system setting, since they're declared after it and apply unconditionally
   whenever data-theme is present on <html>. */
:root[data-theme="dark"] {
  --bg: #0f1420;
  --bg-elevated: #171f30;
  --text: #eef1f7;
  --text-muted: #9aa5b8;
  --accent: #5fb0ff;
  --accent-soft: #223349;
  --border: #26314a;
}

:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elevated: #ffffff;
  --text: #161a22;
  --text-muted: #5b6472;
  --accent: #1a73c7;
  --accent-soft: #e4f0fd;
  --border: #dde2ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0 16px 48px;
  background: var(--bg);
  color: var(--text);
  font-family: "Clarity City", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background-color 0.2s ease, color 0.2s ease;
}

main {
  max-width: 900px;
  margin: 0 auto;
}

/* Banner. The artwork is black line art on a transparent background, so it
   reads fine as-is on the light theme; on dark it's flipped to white with
   a CSS filter rather than needing a second image. */

.site-banner {
  display: block;
  width: 100%;
  max-width: 900px;
  height: auto;
  margin: 28px auto 0;
  /* Default (and OS dark preference) is the dark theme, so invert by
     default to get white line art; un-invert for light. */
  filter: invert(1);
}

@media (prefers-color-scheme: light) {
  .site-banner {
    filter: none;
  }
}

:root[data-theme="light"] .site-banner {
  filter: none;
}

:root[data-theme="dark"] .site-banner {
  filter: invert(1);
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 20px 0 4px;
  text-align: left;
}

.today-label {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
}

/* Light/dark switch. Fixed to the page's top-right corner rather than
   sitting inline in the header, so it stays in the same spot regardless of
   the centered column's width. */

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  margin: 0;
  cursor: pointer;
  color: var(--text-muted);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.theme-toggle-track {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.theme-toggle[aria-pressed="true"] .theme-toggle-thumb {
  transform: translateX(20px);
}

/* Nav bar, sat above the page title (banner, then nav, then the
   today/about title + theme toggle). Centered row of plain text links,
   no dropdowns — there are only a couple of pages on this site. The
   current page gets a filled rectangular highlight rather than just an
   underline. */
.site-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  margin: 0 0 36px;
  border-bottom: 1px solid var(--border);
}

.site-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 16px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.site-nav-link:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.site-nav-link[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.site-nav-link[aria-current="page"]:hover {
  background: var(--accent-soft);
}

/* The filter row on the Custom Filter page — search, date, game and series.
   It spans the full width of the page so its edges line up with the video
   grid below (same 16px gaps too). The search box gets a double-width
   column; the three pickers share the rest equally. */
.date-filter {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: end;
  gap: 16px;
  margin: 0 0 28px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* Each picker (and its button) stretches to fill its column. */
.date-filter .date-picker,
.date-filter .game-picker {
  width: 100%;
}

.date-filter .date-picker-trigger {
  width: 100%;
  justify-content: space-between;
}

.date-filter .date-picker-trigger > span {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Title search — first in the filter row. Styled to match the picker
   buttons next to it, with a magnifying-glass icon inside the box. */

.video-search {
  position: relative;
  width: 100%;
}

.video-search .date-picker-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.video-search-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 10px 12px 10px 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
}

.video-search-input::placeholder {
  color: var(--text-muted);
}

.video-search-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Tablets and phones: the search gets a full row to itself, with the three
   pickers in a row underneath. */
@media (max-width: 760px) {
  .date-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .filter-group-search {
    grid-column: 1 / -1;
  }
}

/* Phones: three pickers in a row is too tight to read, so date and game
   share a row and series gets the full width underneath. */
@media (max-width: 480px) {
  .date-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .date-filter .filter-group:last-child {
    grid-column: 1 / -1;
  }
}

.date-filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* The picker itself: a trigger button plus a popover calendar. There's no
   year anywhere in this UI — it just loops through the 12 months forever,
   since videos are only ever looked up by month + day. */
.date-picker {
  position: relative;
}

.date-picker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  font: inherit;
  font-size: 1rem;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
}

.date-picker-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.date-picker-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--text-muted);
}

.date-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: 260px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.date-picker-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.date-picker-month {
  font-weight: 600;
}

.date-picker-nav {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
}

.date-picker-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.date-picker-weekdays,
.date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.date-picker-weekdays {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.date-picker-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.date-picker-day:hover {
  background: var(--accent-soft);
}

.date-picker-day.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.date-picker-day-empty {
  cursor: default;
  pointer-events: none;
}

/* Game picker — same trigger-button look as the date picker, but its
   popover is a wide checklist (3 columns on desktop) instead of a
   calendar. Multi-select: ticking games doesn't close the panel. */
.game-picker {
  position: relative;
}

.game-picker-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(560px, calc(100vw - 32px));
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.game-picker-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.game-picker-panel-title {
  font-weight: 600;
}

.game-picker-clear {
  font: inherit;
  font-size: 0.85rem;
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.game-picker-clear:hover {
  text-decoration: underline;
}

/* The scroll box and the columns live on separate elements on purpose: if
   a multi-column box is also height-capped, the browser spills the extra
   names sideways into more columns (a horizontal scrollbar) instead of
   letting you scroll down. */
.game-picker-scroll {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

.game-picker-list {
  columns: 3;
  column-gap: 16px;
}

.game-picker-option {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  break-inside: avoid;
  padding: 4px 0;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 1.25;
}

.game-picker-option input {
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: var(--accent);
  cursor: pointer;
}

@media (max-width: 640px) {
  .game-picker-list {
    columns: 2;
  }
}

@media (max-width: 420px) {
  .game-picker-list {
    columns: 1;
  }
}

.current-info {
  margin: 0 0 18px;
  text-align: left;
}

.current-year {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.current-title {
  margin: 0;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  line-height: 1.3;
}

/* Custom Filter page: "Sort by" on the left and the Autoplay switch on the
   right, in a row under the "Matching videos" heading. */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 0 0 16px;
}

.results-toolbar[hidden] {
  display: none;
}

.results-sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.results-sort-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.results-sort select {
  font: inherit;
  font-size: 0.9rem;
  padding: 6px 32px 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  /* Own chevron so it matches the picker buttons in both themes. */
  background: var(--bg-elevated)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa5b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center / 14px 14px;
}

.results-sort select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The grid card whose video is in the top player right now. */
.video-card.is-playing {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.video-card.is-playing .card-date::before {
  content: "Now playing \00B7  ";
  font-weight: 700;
  color: var(--accent);
}

/* View count on the left, Autoplay switch on the right, under the carousel. */
.below-carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0 6px;
}

.current-views {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
}

.autoplay-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.autoplay-toggle[hidden] {
  display: none;
}

/* The real checkbox stays in the page for keyboard and screen-reader users,
   but is visually replaced by the little switch next to it. */
.autoplay-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.autoplay-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.autoplay-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.autoplay-toggle input:checked + .autoplay-switch {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.autoplay-toggle input:checked + .autoplay-switch .autoplay-knob {
  transform: translateX(16px);
  background: var(--accent);
}

.autoplay-toggle input:focus-visible + .autoplay-switch {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.current-desc {
  margin: 0 0 36px;
  color: var(--text-muted);
  text-align: left;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

/* Separates the Shorts section from the "Also on this day" grid above it. */
#shorts-heading {
  margin-top: 40px;
}

.ad-slot {
  max-width: 900px;
  margin: 24px auto;
  min-height: 0;
}

.ad-slot:empty {
  display: none;
}

.status {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
}

/* Custom Filter page: the single "now playing" player. Clicking any video
   card loads it in here instead of inline in the card — a fixed slot near
   the top of the page, not a carousel, so there's never more than one
   video loaded at a time. */
.now-playing {
  max-width: 800px;
  margin: 0 auto 40px;
}

.now-playing-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
}

.now-playing-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.now-playing-title {
  margin: 14px 0 4px;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  line-height: 1.3;
}

.now-playing-meta {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Carousel */

.carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 40px;
  /* Full-bleed: break out of <main>'s max-width so the carousel spans the
     whole viewport, while the heading/title/description/grid above and
     below stay within the normal centered column. */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 0 14px;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.carousel-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  /* Never wider than the space between the two arrows, so the centred
     video is never clipped at the sides (phones override this below). */
  width: min(760px, calc(100vw - 140px));
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.carousel-item.is-center {
  cursor: pointer;
  border-color: var(--accent);
}

.carousel-item img,
.carousel-item iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.carousel-item .year-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
}

.carousel-item .play-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.carousel-item.is-center:hover .play-hint {
  opacity: 1;
}

/* Phones: there isn't room for arrows either side of the video, so they
   move underneath it (side by side, centred) and the video gets the full
   width of the screen. */
@media (max-width: 640px) {
  .carousel-wrap {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 16px;
  }

  .carousel-viewport {
    flex: 0 0 100%;
    order: 0;
  }

  .carousel-arrow {
    order: 1;
  }

  .carousel-item {
    width: calc(100vw - 32px);
  }
}

.carousel-item .play-hint svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 8px 0;
}

.video-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.video-card .thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inline player on the Custom Filter page: a card swaps its thumbnail for
   this iframe in place when clicked, rather than opening a carousel. */
.video-card .thumb-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-card .year-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 3px 9px;
  border-radius: 999px;
}

.video-card .card-body {
  padding: 12px 14px 16px;
}

.video-card .card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card .card-date {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-muted);
}

.site-footer {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer a:hover {
  color: var(--accent);
}

/* About page prose */

.page-title {
  margin: 4px 0 24px;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
}

.about-content {
  padding-bottom: 24px;
}

/* Section headings: noticeably bigger and bolder than the paragraphs. */
.about-content h1,
.about-content h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  margin: 40px 0 12px;
}

.about-content h1:first-child,
.about-content h2:first-child {
  margin-top: 16px;
}

.about-content p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.about-content a {
  color: var(--accent);
}

/* About page: analytics opt-out switch. */
.analytics-optout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.analytics-optout-button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.analytics-optout-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.analytics-optout-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.analytics-optout-status {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------------------------------------------------------------------
   Typography: Luckiest Guy for headings and the year badges, Clarity City
   (set on body above) for everything else. Both load from Google Fonts in
   each page's <head>. Luckiest Guy only comes in one weight and is already
   chunky, so headings using it are set to normal weight (no fake bold).
   --------------------------------------------------------------------- */
.today-label,
.section-heading,
.page-title,
.about-content h1,
.about-content h2,
.year-badge,
.current-year {
  font-family: "Luckiest Guy", "Clarity City", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.03em;
  /* Luckiest Guy's lowercase letters are odd-looking variants of its
     capitals, so everything in it is set in capitals for a consistent look. */
  text-transform: uppercase;
}

.today-label {
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  line-height: 1.1;
}

.section-heading {
  font-size: 1.35rem;
}

.about-content h1,
.about-content h2 {
  font-size: clamp(1.5rem, 3.6vw, 1.85rem);
  line-height: 1.15;
}

/* The display font sits a touch high in its box, so the badge padding is
   nudged to keep the year optically centred. */
.carousel-item .year-badge,
.video-card .year-badge {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  padding: 6px 10px 4px;
}

.current-year {
  font-size: 1.15rem;
}
