/* Sky Wrapped (/us/seattle/wrapped/2026, ADR 0103): story cards to swipe
   through and share. The cards are SVGs with their own colors, the same in
   every theme, since they are the pictures people post. This is the light
   theme; wrapped-dark.css overrides it (linked like css/dark.css). */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/nunito-latin-400.woff2") format("woff2");
}

.wr-page {
  --wr-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --wr-acc: #8e6a2e;
  --wr-card-w: min(340px, 78vw);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.wr-page h1, .wr-page h2 { font-family: var(--wr-serif); font-weight: 500; line-height: 1.1; margin: 0; }
.wr-page h1 { font-size: clamp(2rem, 6vw, 3rem); }
.wr-page h2 { font-size: 1.5rem; }
.wr-hero { display: flex; flex-direction: column; gap: 8px; }
.wr-kicker { margin: 0; color: var(--wr-acc); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.wr-lede { margin: 0; max-width: 60ch; color: var(--muted); }
.wr-note { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* ---------- The cards: one row that scrolls and snaps ---------- */

.wr-cards {
  list-style: none;
  margin: 0 -16px;
  padding: 4px 16px 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--wr-card-w);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  overscroll-behavior-x: contain;
}
.wr-card { scroll-snap-align: start; }
.wr-card figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.wr-card-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.12), 0 14px 32px rgb(20 24 40 / 0.22);
}
.wr-actions { display: flex; gap: 8px; }
.wr-actions[hidden], .wr-actions-all[hidden] { display: none; }
.wr-page button {
  font: inherit;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.wr-page button.wr-share, .wr-page button.wr-share-link { background: var(--wr-acc); border-color: var(--wr-acc); color: #fff; }
.wr-page button:disabled { opacity: 0.6; cursor: progress; }
.wr-status { margin: 0; min-height: 1.4em; font-size: 0.9rem; color: var(--muted); }

.wr-more, .wr-how { display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.wr-more p, .wr-how ul { margin: 0; }
.wr-link { word-break: break-all; }
.wr-years { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); }
.wr-how ul { padding-left: 1.2em; color: var(--muted); font-size: 0.95rem; display: flex; flex-direction: column; gap: 6px; }

/* Wide screens: the cards wrap into rows instead of scrolling. */
@media (min-width: 1100px) {
  .wr-page { --wr-card-w: 260px; }
  .wr-cards { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, var(--wr-card-w)); overflow: visible; margin: 0; padding: 4px 0 14px; }
}
