/* =========================================================================
   Nephew Tommy — the prank call archive
   A warm tabloid-on-newsprint look: ink, paper, and one loud signal red.
   ========================================================================= */

:root {
  --paper: #f5eee0;
  --paper-2: #efe4d1;
  --paper-3: #e7d9c0;
  --ink: #17110b;
  --ink-2: #3d3226;
  --ink-3: #7a6a56;
  --accent: #e5340b;
  --accent-2: #f0a500;
  --teal: #0f6b63;
  --line: rgba(23, 17, 11, 0.14);
  --line-strong: rgba(23, 17, 11, 0.32);
  --shadow: 0 1px 0 rgba(23, 17, 11, 0.06);
  --shadow-lift: 0 18px 40px -22px rgba(23, 17, 11, 0.55);
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --radius: 4px;
  --container: 1180px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 520px at 82% -8%, rgba(240, 165, 0, 0.16), transparent 60%),
    radial-gradient(900px 480px at -6% 4%, rgba(229, 52, 11, 0.10), transparent 58%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Fine newsprint grain, fixed over everything and ignore-pointered. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

img,
audio {
  max-width: 100%;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 224, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--accent);
}

.masthead {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border-radius: 50%;
  color: var(--paper);
  background: var(--accent);
  box-shadow: 0 6px 16px -8px rgba(229, 52, 11, 0.9);
  transition: transform 0.25s ease, background 0.25s ease;
}

.brand-mark svg {
  width: 1.4rem;
  height: 1.4rem;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.05);
  background: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--paper);
  background: var(--ink);
}

/* ---------------------------------------------------------------- layout */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem) 5rem;
}

.page {
  display: block;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  max-width: 62ch;
  font-size: clamp(1.02rem, 1rem + 0.3vw, 1.18rem);
  color: var(--ink-2);
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.6rem, 1.4rem + 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  max-width: 15ch;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  font-weight: 700;
  color: var(--accent);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
  margin-top: 0.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  flex: 1 1 auto;
  min-width: 9rem;
  padding: 0.85rem 1.4rem 0.85rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- tag strip */

.tag-strip::-webkit-scrollbar {
  display: none;
}

.tag-strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0.25rem;
  margin-bottom: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}

.chip {
  flex: none;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.18s ease;
  white-space: nowrap;
}

.chip:hover {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.chip::before {
  content: "#";
  margin-right: 0.1rem;
  opacity: 0.5;
}

/* ------------------------------------------------------------------ cards */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
  margin-top: 1.5rem;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.25s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  background: #fffdf8;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.card:hover::before,
.card:focus-within::before {
  transform: scaleY(1);
}

.card-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.9rem;
  align-items: start;
  padding: 1.25rem 1.25rem 0.5rem;
}

.card-index {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.35rem;
  letter-spacing: -0.02em;
}

.card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.card-description {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-play {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: none;
}

.card-play-icon {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding-left: 0.15rem;
  font-size: 0.7rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: all 0.22s ease;
}

.card:hover .card-play-icon,
.card:focus-within .card-play-icon {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}

.card-duration {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.75rem 1.25rem 1.15rem;
  margin-top: auto;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.16s ease;
}

.tag:hover {
  color: var(--accent);
  background: transparent;
  border-color: var(--accent);
}

/* ------------------------------------------------------------ page headers */

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 0.5rem;
}

.page-header.centered {
  align-items: center;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 0 1.5rem;
}

.page-header h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.3rem, 1.4rem + 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-header.centered .lede {
  margin-top: -0.2rem;
}

.section-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  letter-spacing: -0.02em;
}

.empty,
.hint {
  padding: 2rem 0;
  color: var(--ink-2);
}

.hint a {
  color: var(--accent);
  text-decoration: underline;
}

.result-count {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* --------------------------------------------------------------- search */

.search-form,
.import-form {
  position: relative;
  display: flex;
  gap: 0.6rem;
  max-width: 44rem;
  margin-top: 0.5rem;
}

.page-header.centered ~ .search-form,
.page-header.centered ~ .import-form {
  margin-left: auto;
  margin-right: auto;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  pointer-events: none;
}

.search-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.search-form input,
.import-form input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1.1rem;
  font: inherit;
  font-size: 1.02rem;
  color: var(--ink);
  background: #fffdf8;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-form input {
  padding-left: 2.9rem;
}

.search-form input::placeholder,
.import-form input::placeholder {
  color: var(--ink-3);
}

.search-form input:focus,
.import-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(229, 52, 11, 0.13);
}

.search-form button,
.import-form button,
.button {
  flex: none;
  padding: 0.95rem 1.6rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s ease;
}

.search-form button:hover,
.import-form button:hover,
.button:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------- prank page */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 1.25rem;
}

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

.crumb-sep {
  opacity: 0.4;
}

.breadcrumb .current {
  color: var(--ink-2);
  text-transform: none;
  letter-spacing: 0;
  max-width: 42ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prank-hero {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
}

.title-row h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 1.3rem + 5.5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
  flex: 1 1 auto;
}

.duration {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  padding: 0.25rem 0.65rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
}

/* --------------------------------------------------------------- player */

.player-bar {
  position: sticky;
  top: 4.6rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 2rem;
  padding: 0.9rem 1.1rem;
  color: var(--paper);
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}

.player-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 238, 224, 0.75);
}

.player-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(229, 52, 11, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(229, 52, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 52, 11, 0);
  }
}

.player-bar audio {
  flex: 1 1 320px;
  min-width: 0;
  height: 40px;
}

/* --------------------------------------------------------- transcript grid */

.prank-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 960px) {
  .prank-columns:has(.related) {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  }
}

.transcript-panel {
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0.25rem;
}

.panel-count {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-3);
}

.transcript {
  display: flex;
  flex-direction: column;
}

.turn {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1rem 1rem 1rem 0.85rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.turn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.turn.active {
  background: #fffdf8;
  border-left-color: var(--accent);
  box-shadow: var(--shadow);
}

.turn-time {
  align-self: start;
  justify-self: start;
  width: fit-content;
  margin-top: 0.15rem;
  padding: 0.28rem 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-3);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.turn-time:hover,
.turn.active .turn-time {
  color: var(--paper);
  background: var(--accent);
  border-color: var(--accent);
}

.turn-body {
  min-width: 0;
}

.turn-body p {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.turn.active .turn-body p {
  color: var(--ink);
}

.speaker {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink-3);
}

.voice-0 { background: var(--accent); }
.voice-1 { background: var(--teal); }
.voice-2 { background: #8a4b9c; }
.voice-3 { background: #b06a12; }
.voice-4 { background: #2f5d8a; }
.voice-5 { background: #a02c4a; }

/* ------------------------------------------------------------- related */

.related {
  min-width: 0;
}

@media (min-width: 960px) {
  .related .section-heading {
    padding-bottom: 0.85rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 1.1rem;
  }
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.related-list .card-link {
  padding: 1rem 1rem 0.4rem;
}

.related-list .card-title {
  font-size: 1.1rem;
}

.related-list .card-description {
  -webkit-line-clamp: 2;
}

.related-list .card-meta {
  padding: 0.5rem 1rem 0.9rem;
}

.related-list .card-play-icon {
  display: none;
}

/* ------------------------------------------------------------- import */

.import-form {
  max-width: 52rem;
}

.error {
  padding: 0.85rem 1rem;
  color: #7a1c07;
  background: rgba(229, 52, 11, 0.1);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
}

.ingestions {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ingestions .section-heading {
  margin-bottom: 0.5rem;
}

.ingestion {
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-3);
  border-radius: 0 4px 4px 0;
}

.status-edge-queued { border-left-color: var(--ink-3); }
.status-edge-downloading { border-left-color: var(--accent-2); }
.status-edge-transcribing { border-left-color: var(--accent-2); }
.status-edge-slicing { border-left-color: var(--accent-2); }
.status-edge-cutting { border-left-color: var(--accent-2); }
.status-edge-complete { border-left-color: var(--teal); }
.status-edge-failed { border-left-color: var(--accent); }

.ingestion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ingestion-title {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink-3);
}

.status-queued { background: var(--ink-3); }
.status-downloading,
.status-transcribing,
.status-slicing,
.status-cutting { background: var(--accent-2); color: var(--ink); }
.status-complete { background: var(--teal); }
.status-failed { background: var(--accent); }

.ingestion-note {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-3);
}

.ingestion-note a {
  color: var(--accent);
  text-decoration: underline;
}

.ingestion .error {
  margin-top: 0.6rem;
}

/* --------------------------------------------------------- error page */

.error-page {
  padding: clamp(2rem, 8vw, 6rem) 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.error-code {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(5rem, 3rem + 16vw, 12rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  letter-spacing: -0.04em;
}

.error-page h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 1.4rem + 2vw, 3rem);
  letter-spacing: -0.02em;
}

.error-page .lede {
  margin-inline: auto;
}

.error-page .button {
  display: inline-block;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------- footer */

.site-footer {
  margin-top: auto;
  color: var(--paper);
  background: var(--ink);
  border-top: 3px solid var(--accent);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2.5rem) 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.footer-note {
  margin-top: 0.35rem;
  max-width: 44ch;
  font-size: 0.9rem;
  color: rgba(245, 238, 224, 0.6);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: start;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 238, 224, 0.8);
  transition: color 0.16s ease;
}

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

.footer-fine {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 238, 224, 0.4);
  border-top: 1px solid rgba(245, 238, 224, 0.12);
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 640px) {
  .brand-sub {
    display: none;
  }

  .brand {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .brand-name {
    font-size: 1.08rem;
  }

  .nav a {
    padding: 0.5rem 0.5rem;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .stat {
    padding: 0.7rem 1.4rem 0.7rem 0;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
  }

  .player-bar {
    top: 4.2rem;
  }

  .card-link {
    grid-template-columns: auto 1fr;
  }

  .card-play {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.6rem;
    padding-top: 0.25rem;
  }

  .card-play::before {
    content: "Play";
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    align-self: center;
  }

  .turn {
    gap: 0.75rem;
    padding-left: 0.5rem;
  }

  .search-form,
  .import-form {
    flex-wrap: wrap;
  }

  .search-form input,
  .import-form input {
    flex-basis: 100%;
  }

  .search-form button,
  .import-form button {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
