/* Shelf Talker launch site. Tokens from docs/site/BRIEF.md. */

:root {
  color-scheme: light dark;

  /* Ground */
  --bg: #f6f0e6;
  --surface: #fcf8f1;
  --raised: #ffffff;
  --sunken: #efe6d8;

  /* Ink */
  --ink: #2b1d1f;
  --ink-muted: #6b5a5c;
  --ink-faint: #9b8b8c;

  /* Lines */
  --rule: #e4d9cb;
  --rule-strong: #cdbfae;

  /* Accent: burgundy */
  --accent: #7a1f2e;
  --accent-hover: #641827;
  --accent-ink: #fbf3ea;
  --accent-soft: #f1dfd8;
  --accent-text: #7a1f2e;
  --focus: #a7411f;
  --success: #3f6b3a;

  /* Wine swatches */
  --swatch-red: #8b1e2d;
  --swatch-white: #e9d89a;
  --swatch-rose: #e8a0a6;
  --swatch-sparkling: #d9c67a;
  --swatch-orange: #d98a3a;
  --swatch-dessert: #9a5a1e;
  --swatch-ring: rgba(43, 29, 31, 0.14);

  /* Depth: tinted to the ink, offset downward */
  --shadow-sm: 0 1px 2px rgba(43, 29, 31, 0.08);
  --shadow-md:
    0 4px 14px rgba(43, 29, 31, 0.1), 0 1px 3px rgba(43, 29, 31, 0.06);
  --shadow-lg:
    0 14px 40px rgba(43, 29, 31, 0.16), 0 2px 6px rgba(43, 29, 31, 0.08);
  --edge: rgba(255, 255, 255, 0.6);
  --drop-md: drop-shadow(0 4px 14px rgba(43, 29, 31, 0.12));

  /* Type */
  --display:
    "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text:
    "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(4rem, 10vw, 8rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1e1420;
    --surface: #27192a;
    --raised: #312033;
    --sunken: #180f1a;

    --ink: #f1e6e2;
    --ink-muted: #bfaab0;
    --ink-faint: #8a7580;

    --rule: #3c2a3e;
    --rule-strong: #54405a;

    --accent: #c9566a;
    --accent-hover: #d9728a;
    --accent-ink: #1e1420;
    --accent-soft: #3d2531;
    --accent-text: #d9728a;
    --focus: #e3a06e;
    --success: #7fb27a;

    --swatch-red: #c8364b;
    --swatch-white: #f0e2a8;
    --swatch-rose: #f0a8b0;
    --swatch-sparkling: #ead98b;
    --swatch-orange: #e89a4a;
    --swatch-dessert: #c27a35;
    --swatch-ring: rgba(255, 255, 255, 0.16);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --edge: rgba(255, 255, 255, 0.08);
    --drop-md: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  caret-color: var(--accent);
  accent-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  body {
    letter-spacing: 0.005em;
  }
}

::selection {
  background: var(--accent-soft);
}

p {
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  font-weight: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

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

svg {
  display: block;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main > section {
  padding-block: var(--section-pad);
}

main h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  main h2 {
    font-size: 2.75rem;
  }
}

.lede {
  font-size: 1.25rem;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}

.small-caps {
  font-family: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.price {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.vintage {
  color: var(--accent-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.625rem 1rem;
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* Swatch dots */
.dot {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--swatch-ring);
  background: var(--swatch);
  vertical-align: middle;
}

[data-swatch="red"],
.red {
  --swatch: var(--swatch-red);
}
[data-swatch="white"],
.white {
  --swatch: var(--swatch-white);
}
[data-swatch="rose"],
.rose {
  --swatch: var(--swatch-rose);
}
[data-swatch="sparkling"],
.sparkling {
  --swatch: var(--swatch-sparkling);
}
[data-swatch="orange"],
.orange {
  --swatch: var(--swatch-orange);
}
[data-swatch="dessert"],
.dessert {
  --swatch: var(--swatch-dessert);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-family: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 120ms var(--ease-out),
    background-color 120ms var(--ease-out),
    border-color 120ms var(--ease-out);
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  box-shadow:
    inset 0 1px 0 var(--edge),
    var(--shadow-sm);
}

.button-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.button-secondary {
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 4rem;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}

.brand:hover {
  color: var(--ink);
}

.wordmark {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-nav {
  display: none;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (min-width: 720px) {
  .site-nav {
    display: flex;
    gap: 1.25rem;
  }
}

@media (min-width: 960px) {
  .header-bar {
    gap: 2rem;
  }
  .site-nav {
    gap: 1.75rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.kicker {
  font-family: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin-top: 1.5rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 34ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (min-width: 720px) {
  h1 {
    font-size: 2.75rem;
  }
}

@media (min-width: 960px) {
  .hero {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
  }
  .hero-grid {
    grid-template-columns: 6fr 6fr;
    gap: 4rem;
  }
  h1 {
    font-size: clamp(2.75rem, 4vw, 3.5rem);
    letter-spacing: -0.02em;
  }
}

/* The shelf */
.hero-shelf {
  position: relative;
  isolation: isolate;
  padding: 2rem 0 1rem;
}

.hero-shelf::before {
  content: "";
  position: absolute;
  inset: 0 -10% -20%;
  background: radial-gradient(
    ellipse at 50% 80%,
    var(--surface) 0%,
    transparent 70%
  );
  z-index: -1;
}

.shelf {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: auto 10px auto;
  column-gap: 0.5rem;
  padding: 0 0.5rem 2rem;
}

.shelf::before,
.shelf::after {
  content: "";
  grid-column: 1 / -1;
  height: 10px;
  background: var(--rule-strong);
  box-shadow:
    inset 0 1px 0 var(--edge),
    var(--shadow-md);
}

.shelf::before {
  grid-row: 2;
}

.shelf::after {
  grid-row: 5;
  display: none;
}

.shelf > li {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  justify-items: center;
  color: var(--ink);
  animation: rise 500ms var(--ease-out) both;
  animation-delay: calc(var(--n, 0) * 70ms);
}

.shelf > li:nth-child(2) {
  --n: 1;
}
.shelf > li:nth-child(3) {
  --n: 2;
}
.shelf > li:nth-child(4) {
  --n: 3;
}
.shelf > li:nth-child(5) {
  --n: 4;
}
.shelf > li:nth-child(6) {
  --n: 5;
}

.bottle {
  width: 72px;
  height: auto;
  align-self: end;
}

/* The ring sits on the glass itself, so pale bottles stay readable on paper. */
.bottle-body {
  fill: var(--swatch);
  stroke: var(--swatch-ring);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.talker {
  position: relative;
  z-index: 1;
  isolation: isolate;
  grid-row: 3;
  margin-top: -28px;
  width: calc(100% + 0.5rem);
  padding: 0.5rem 0.625rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  text-align: left;
  transform: rotate(-2deg);
  transition: transform 160ms var(--ease-out);
}

.talker::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}

.shelf > li:nth-child(even) .talker {
  transform: rotate(1.5deg);
}

.talker-name {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
}

.talker .price {
  font-size: 0.8125rem;
}

@media (hover: hover) and (pointer: fine) {
  .shelf > li:hover .talker {
    transform: rotate(0) translateY(-2px);
  }
  .shelf > li:hover .talker::after {
    opacity: 1;
  }
}

@media (max-width: 599.98px) {
  .shelf {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 10px auto auto 10px auto;
    row-gap: 0;
  }
  .shelf > li:nth-child(n + 4) {
    margin-top: 2.5rem;
  }
  .shelf::after {
    display: block;
  }
  .bottle {
    width: 56px;
  }
  .talker {
    font-size: 0.75rem;
  }
  .talker .price {
    font-size: 0.75rem;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- How it works ---------- */

.steps {
  max-width: 64ch;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 5rem 1fr;
  padding: 2.5rem 0;
}

.steps > li + li {
  border-top: 1px solid var(--rule);
}

.steps > li::before {
  content: counter(step);
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent-text);
  letter-spacing: -0.02em;
}

.steps h3 {
  font-size: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.steps p {
  color: var(--ink-muted);
}

/* ---------- Pairings ---------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.pill {
  height: 2.75rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-sm);
  font-family: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    transform 120ms var(--ease-out),
    background-color 120ms var(--ease-out),
    color 120ms var(--ease-out),
    border-color 120ms var(--ease-out);
}

.pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.pill:active {
  transform: scale(0.96);
}

.pill[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.dish-panel {
  animation: swap 160ms var(--ease-out) both;
}

.dish-panel[hidden] {
  display: none;
}

@keyframes swap {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ledger-label {
  font-family: var(--text);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.25rem;
}

.ledger > li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "dot wine price"
    "dot reasons reasons";
  column-gap: 1rem;
  row-gap: 0.75rem;
  align-items: baseline;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}

.ledger > li:last-child {
  border-bottom: 1px solid var(--rule);
}

.ledger .dot {
  grid-area: dot;
  position: relative;
  top: 0.1em;
}

.ledger .wine {
  grid-area: wine;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.wine-name {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.wine-meta {
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.reasons {
  grid-area: reasons;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.reasons > li {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.375rem 0.625rem;
  border-radius: 999px;
  color: var(--accent-text);
  background: var(--accent-soft);
}

.ledger .price {
  grid-area: price;
  font-size: 1.25rem;
  text-align: right;
  justify-self: end;
}

@media (min-width: 720px) {
  .ledger > li {
    grid-template-columns: auto minmax(14rem, 1.2fr) 2fr auto;
    grid-template-areas: "dot wine reasons price";
    column-gap: 1.5rem;
  }
  .reasons {
    justify-content: flex-start;
    align-self: center;
  }
}

.dessert-note {
  margin-top: 1rem;
  color: var(--ink-muted);
}

.rule-note {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}

.pairings-link {
  margin-top: 0.375rem;
  font-weight: 500;
}

/* Plain text links the phone reader taps: padded to a 44px target. */
.pairings-link a {
  display: inline-block;
  padding-block: 0.625rem;
}

/* ---------- What's inside ---------- */

.features {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

@media (min-width: 960px) {
  .features {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 4rem;
  }
}

.feature-title {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.feature-name {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.leader {
  flex: 1;
  min-width: 1.5rem;
  margin: 0 0.5rem;
  border-bottom: 2px dotted var(--rule-strong);
  align-self: flex-end;
  position: relative;
  top: -0.35em;
}

.features .tag {
  white-space: nowrap;
}

.features p {
  margin-top: 0.375rem;
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 52ch;
}

/* ---------- The guide, live ---------- */

.embed {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 var(--edge),
    var(--shadow-lg);
  overflow: hidden;
}

.embed-caption {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 2.75rem;
  padding: 0 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.live-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}

.live-name {
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.embed-link {
  display: inline-block;
  padding-block: 0.625rem;
  margin-left: auto;
  white-space: nowrap;
}

.embed iframe {
  display: block;
  width: 100%;
  height: 36rem;
  border: 0;
}

@media (min-width: 720px) {
  .embed iframe {
    height: 42rem;
  }
}

/* ---------- For staff ---------- */

.staff-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.staff-copy h2 {
  margin-bottom: 1.5rem;
}

.staff-copy p + p {
  margin-top: 1.25rem;
}

@media (min-width: 960px) {
  .staff-grid {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}

.file-tag-shadow {
  filter: var(--drop-md);
  transform: rotate(-1.5deg);
  transition: transform 160ms var(--ease-out);
}

.file-tag {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.25rem 1.5rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: 8px;
  clip-path: polygon(0 0, calc(100% - 1rem) 0, 100% 1rem, 100% 100%, 0 100%);
}

.file-tag::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(
    225deg,
    transparent 50%,
    var(--rule-strong) 50%,
    var(--sunken) 52%
  );
}

.file-name {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.file-meta {
  color: var(--ink-muted);
}

@media (hover: hover) and (pointer: fine) {
  .staff-exhibit:hover .file-tag-shadow {
    transform: rotate(0);
  }
}

.admin-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}

.admin-buttons .button,
.admin-buttons .button:hover,
.admin-buttons .button:active {
  cursor: default;
  background: var(--raised);
  border-color: var(--rule-strong);
  transform: none;
}

/* ---------- Plain facts ---------- */

.facts {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.facts-list {
  margin: 0;
  display: grid;
}

.facts-list > div {
  padding: 1.5rem 0;
}

.facts-list > div + div {
  border-top: 1px solid var(--rule);
}

.facts-list dt {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.facts-list dd {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

@media (min-width: 720px) {
  .facts-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .facts-list > div {
    padding: 0 2rem;
  }
  .facts-list > div:first-child {
    padding-left: 0;
  }
  .facts-list > div:last-child {
    padding-right: 0;
  }
  .facts-list > div + div {
    border-top: 0;
    border-left: 1px solid var(--rule);
  }
}

/* ---------- Close ---------- */

main > section.close {
  background: var(--sunken);
  padding-block: clamp(5rem, 12vw, 9rem);
  text-align: center;
}

.close .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.close p {
  text-align: center;
}

.swatch-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.swatch-row .dot {
  width: 1rem;
  height: 1rem;
}

.close h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

@media (min-width: 720px) {
  .close h2 {
    font-size: 3.25rem;
    letter-spacing: -0.02em;
  }
}

.close-line {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}

.close-staff {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-faint);
}

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

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  color: var(--ink-faint);
  font-size: 0.875rem;
}

.footer-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  color: var(--ink);
}

.footer-brand p {
  margin-top: 0.25rem;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 1.5rem line plus the padding makes each link a 44px tap target. */
.footer-links a {
  display: inline-block;
  padding-block: 0.625rem;
  line-height: 1.5rem;
  white-space: nowrap;
  color: var(--ink-faint);
}

.footer-links a:hover {
  color: var(--ink);
}

@media (min-width: 720px) {
  .footer-grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-links {
    flex-direction: row;
    gap: 0 1.5rem;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .shelf > li {
    animation: fade 300ms linear both;
    animation-delay: 0ms;
  }
  .talker,
  .talker::after,
  .button,
  .pill,
  .file-tag-shadow {
    transition: none;
  }
  .file-tag-shadow {
    transform: none;
  }
  .dish-panel {
    animation: none;
  }
}
