/* Fold: one short page. Three sections unfold in place; a print grows out of its thumbnail. */

/* Inter 4.1 in two subsets, each built from its face's unicode-range, so a changed range needs a
   rebuilt file. The family stays InterVariable because script.js checks it. Latin goes last: where
   ranges overlap, the face declared last wins, so latin text never pulls in latin-ext. */
@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/InterVariable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: InterVariable;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/InterVariable-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Ink on paper. The prints are the only color. */
  --paper: #fbfbfa;
  --ink: #000;
  --ink-2: rgb(0 0 0 / 0.55); /* 4.72:1 on paper; 52% measured 4.26:1 */
  --ink-3: rgb(0 0 0 / 0.1);
  --veil: rgb(251 251 250 / 0.96);

  /* One family, two sizes. Hierarchy comes from weight and ink strength. */
  --font: InterVariable, system-ui, sans-serif;
  --features: "cv11", "ss03";
  --size-text: 0.9375rem;
  --leading-text: 1.5rem;
  --size-sub: 0.8125rem;
  --leading-sub: 1.25rem;
  --regular: 450;
  --strong: 560;

  --col: 34rem;
  --gutter: 1.25rem;
  --target: 2.75rem;

  /* Motion: arrivals spring or glide, exits are faster and plain. */
  --press: 80ms;
  --exit: 180ms;
  --fade: 260ms;
  --unfold: 640ms;
  --spin: 600ms;
  --step: 30ms;
  --grow: 720ms;
  --shrink: 320ms;
  --slide-in: 520ms;
  --slide-out: 160ms;
  --ease-flow: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-exit: cubic-bezier(0.33, 1, 0.68, 1);
  /* Damped springs sampled for linear(): zeta 0.55 (13% overshoot), 0.78 (2%), 0.82 (1%). */
  --spring-bounce: linear(0, 0.045, 0.157, 0.308, 0.473, 0.634, 0.778, 0.898, 0.992, 1.059, 1.101, 1.122, 1.126, 1.119, 1.103, 1.084, 1.063, 1.043, 1.025, 1.01, 0.999, 0.991, 0.987, 0.984, 0.984, 0.985, 0.987, 0.99, 0.993, 0.995, 0.997, 0.999, 1, 1.001, 1.002, 1.002, 1.002, 1.002, 1.002, 1.001, 1);
  --spring-soft: linear(0, 0.022, 0.079, 0.159, 0.25, 0.346, 0.442, 0.532, 0.616, 0.691, 0.758, 0.814, 0.862, 0.902, 0.934, 0.959, 0.979, 0.994, 1.004, 1.012, 1.016, 1.019, 1.02, 1.02, 1.019, 1.017, 1.016, 1.014, 1.012, 1.01, 1.008, 1.007, 1.005, 1.004, 1.003, 1.002, 1.002, 1.001, 1.001, 1, 1);
  --spring-grow: linear(0, 0.02, 0.072, 0.144, 0.228, 0.316, 0.405, 0.49, 0.569, 0.642, 0.707, 0.764, 0.813, 0.855, 0.89, 0.918, 0.942, 0.961, 0.975, 0.987, 0.995, 1.001, 1.006, 1.009, 1.01, 1.011, 1.011, 1.011, 1.01, 1.009, 1.008, 1.007, 1.006, 1.005, 1.005, 1.004, 1.003, 1.002, 1.002, 1.001, 1);
}

html {
  color-scheme: light;
  interpolate-size: allow-keywords;
  scrollbar-gutter: stable;
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html:has(.viewer[open]) {
  overflow: hidden;
  /* The gutter stays reserved while the page is locked, which would leave a
     fixed dialog 15px left of the viewport. Drop it only while one is open. */
  scrollbar-gutter: auto;
}

/* The base size lives on body so rem tokens keep the reader's default root size. */
body {
  margin: 0;
  font: var(--regular) var(--size-text) / var(--leading-text) var(--font);
  font-feature-settings: var(--features);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1,
h2 {
  font: inherit;
}

h1 {
  font-weight: var(--strong);
}

p {
  text-wrap: pretty;
}

ul {
  padding: 0;
  list-style: none;
}

/* The one secondary style: every muted line on the page uses it. */
.sub {
  font-size: var(--size-sub);
  line-height: var(--leading-sub);
  letter-spacing: 0;
  color: var(--ink-2);
}

/* The one superscript rule: Inter's own superior figures (sups). They are drawn heavy and small (0.41em),
   so they run at 1.12em in the regular weight; line-height 0 keeps the line box untouched, and top
   drops the glyph tops (0.84em up) onto the parent's cap line (0.7275em). */
sup {
  position: relative;
  top: 0.19em;
  margin-inline-start: 0.06em;
  font-size: 1.12em;
  font-weight: var(--regular);
  line-height: 0;
  vertical-align: baseline;
  font-feature-settings: var(--features), "sups";
  color: var(--ink-2);
  transition: color var(--exit) var(--ease-exit);
}

/* If InterVariable never arrives, fall back to a scaled figure on the same cap line. */
.no-sups sup {
  top: -0.39em;
  font-size: 0.65em;
  font-weight: 640;
  font-feature-settings: var(--features), "tnum";
}

a {
  color: inherit;
  text-decoration: underline 1px var(--ink-3);
  text-underline-offset: 0.24em;
  transition: text-decoration-color var(--exit) var(--ease-exit);
}

a:active {
  color: var(--ink);
  text-decoration-color: currentColor;
  transition: none;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 1;
  padding: 0.25rem 0.5rem;
  background: var(--paper);
  translate: 0 -200%;
}

.skip:focus-visible {
  translate: none;
}

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

/* Layout: one column, centered in the viewport. The stable scrollbar gutter
   sits outside the content box, so auto margins would leave the column 15px
   left of center. The width keeps a gutter of space on both sides. */

.page {
  --page-width: min(var(--col), calc(100vw - 2 * var(--gutter)));
  width: var(--page-width);
  margin-inline-start: calc((100vw - var(--page-width)) / 2);
  padding-block: clamp(3rem, 14vh, 8.5rem) 5rem;
  animation: fade-in 600ms var(--ease-exit) both;
}

.bio {
  margin-top: 1.5rem;
}

.bio p + p {
  margin-top: 0.5rem;
}

.folds {
  margin-top: 2.5rem;
}

/* Groups are separated by one extra line of space, never by labels. */
.folds + .folds {
  margin-top: var(--leading-text);
}

footer {
  margin-top: 2.5rem;
}

/* Section headers: the table of contents. */

.fold {
  scroll-margin-top: 2rem;
}

.fold-h {
  position: relative;
  border-bottom: 1px solid var(--ink-3);
}

/* The crease under an open section darkens, drawn from the left. */
.fold-h::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  scale: 0 1;
  transition: scale var(--exit) var(--ease-exit);
}

.fold[data-open] .fold-h::after {
  scale: 1 1;
  transition: scale var(--unfold) var(--ease-flow);
}

.fold-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: var(--target);
  padding-block: 0.625rem;
  font-weight: var(--strong);
}

.fold-label {
  transform-origin: left center;
  transition: scale var(--exit) var(--ease-exit);
}

.fold-btn:active .fold-label {
  scale: 0.98;
  transition-duration: var(--press);
}

.fold[data-open] .fold-label sup {
  color: var(--ink);
  transition-duration: var(--fade);
}

/* Two bars: a plus that springs into a cross, and the viewer's close cross. */
.fold-icon,
.cross {
  position: relative;
  flex: none;
  width: 0.6875rem;
  height: 0.6875rem;
}

.fold-icon::before,
.fold-icon::after,
.cross::before,
.cross::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 1.5px;
  margin: auto;
  border-radius: 1px;
  background: currentColor;
}

.fold-icon::after,
.cross::after {
  rotate: 90deg;
}

.cross {
  rotate: 45deg;
}

.fold-icon {
  color: var(--ink-2);
  transition:
    rotate var(--exit) var(--ease-exit),
    scale var(--exit) var(--ease-exit),
    color var(--exit) var(--ease-exit);
}

.fold[data-open] .fold-icon {
  rotate: 45deg;
  scale: 1.08;
  color: var(--ink);
  transition:
    rotate var(--spin) var(--spring-bounce),
    scale var(--spin) var(--spring-bounce),
    color var(--fade) var(--ease-exit);
}

.fold-btn:active .fold-icon {
  scale: 0.82;
  transition-duration: var(--press);
}

html:not(.js) .fold-icon {
  display: none;
}

/* Panels. Chrome animates height to auto; other engines use the 0fr -> 1fr grid track. */

.js .fold-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--exit) var(--ease-exit),
    visibility 0s var(--exit);
}

.js .fold[data-open] > .fold-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows var(--unfold) var(--spring-soft),
    visibility 0s;
}

@supports (interpolate-size: allow-keywords) {
  .js .fold-panel {
    display: block;
    height: 0;
    overflow-y: clip;
    transition:
      height var(--exit) var(--ease-exit),
      visibility 0s var(--exit);
  }

  .js .fold[data-open] > .fold-panel {
    height: auto;
    transition:
      height var(--unfold) var(--spring-soft),
      visibility 0s;
  }
}

.fold-inner {
  min-height: 0;
  overflow-y: clip;
}

.fold-body {
  padding-block: 0.875rem 1.75rem;
}

/* Children arrive 30ms apart; on close they leave together. */
.js .st {
  opacity: 0;
  translate: 0 -4px;
  transition:
    opacity var(--exit) var(--ease-exit),
    translate 0s var(--exit),
    scale var(--press) var(--ease-exit);
}

.js .fold[data-open] .st {
  opacity: 1;
  translate: none;
  transition:
    opacity var(--fade) var(--ease-exit) calc(40ms + var(--i, 0) * var(--step)),
    translate var(--unfold) var(--spring-soft) calc(40ms + var(--i, 0) * var(--step)),
    scale var(--press) var(--ease-exit);
}

.still,
.still *,
.still *::before,
.still *::after {
  transition: none !important;
  animation: none !important;
}

/* Lists: one row shape for every side. Year (or "Now") in the muted gutter, the thing, then either
   a description or a right-aligned value such as a time. A race names the place, so the distance
   takes the description column and the time moves one column right, keeping the times aligned. */

.list {
  display: grid;
  row-gap: 0.25rem;
}

.fold-body > p + .list {
  margin-top: 0.75rem;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem 7.5rem minmax(0, 1fr);
  column-gap: 1rem;
  align-items: baseline;
  padding-block: 0.125rem;
  transform-origin: left center;
}

.row .when {
  grid-column: 1;
  font-variant-numeric: tabular-nums;
}

.row .what {
  grid-column: 2;
  justify-self: start;
}

.row a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.row .desc {
  grid-column: 3;
}

.row .end {
  grid-column: 3;
  justify-self: end;
  font-variant-numeric: tabular-nums;
}

/* The place takes the slack, and the time stays at the right edge. 11rem is
   the longest place on one line; nowrap stops a zoomed or narrow row from
   breaking a place or a time onto a second line of its own. */
#running .list {
  container-type: inline-size;
}

#running .row {
  grid-template-columns: 3.25rem minmax(11rem, 1fr) 7.5rem 7ch;
}

#running .row .what,
#running .row .desc,
#running .row .end {
  white-space: nowrap;
}

#running .row .what {
  grid-row: 1;
}

#running .row .desc {
  grid-column: 3;
  grid-row: 1;
  justify-self: start;
}

#running .row .end {
  grid-column: 4;
  grid-row: 1;
  justify-self: end;
}

/* A single line overflows below this. Every row then uses the same two
   lines: place beside the year, distance under the place, time at the right. */
@container (width < 30rem) {
  #running .row {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
  }

  #running .row .when {
    grid-row: 1;
  }

  #running .row .what {
    grid-column: 2 / 4;
    grid-row: 1;
  }

  #running .row .desc {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  #running .row .end {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }
}

.row:has(a):active {
  scale: 0.99;
}

.row a:focus-visible {
  outline: none;
}

.row:has(a:focus-visible) {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
  border-radius: 3px;
}

/* Travel: one justified strip that fills the column. */

.strip {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.875rem;
}

.strip > li {
  flex: calc(var(--ar)) 1 0%;
  min-width: 0;
}

.thumb {
  display: block;
  width: 100%;
  cursor: zoom-in;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.thumb img {
  display: block;
  width: 100%;
  height: auto;
  transition: scale var(--exit) var(--ease-exit);
}

.thumb:active img {
  scale: 0.97;
  transition-duration: var(--press);
}

@media (hover: hover) {
  a:hover {
    text-decoration-color: currentColor;
  }

  .fold-btn:hover .fold-icon {
    color: var(--ink);
  }
}

@media (width < 36rem) {
  .row {
    grid-template-columns: 3.25rem minmax(0, 1fr) auto;
  }

  .row .end {
    grid-column: 3;
  }

  .row .desc {
    grid-area: 2 / 2 / 3 / 4;
  }

  .list:has(.desc) {
    row-gap: 0.625rem;
  }

  /* Narrow screens: the strip keeps its height and scrolls, snapping print by print. */
  .strip {
    margin: 0.5rem calc(-1 * var(--gutter)) -0.375rem;
    padding: 0.375rem var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

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

  .strip > li {
    flex: none;
    scroll-snap-align: start;
  }

  .thumb {
    width: auto;
  }

  .thumb img {
    width: auto;
    height: 9.5rem;
  }
}

/* Viewer */

.viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
}

.viewer[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.viewer::backdrop {
  background: var(--veil, rgb(251 251 250 / 0.96));
}

.viewer:focus-visible {
  outline: none;
}

.stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 3.5rem var(--gutter) 0.5rem;
  /* Sideways drags are swipes; vertical pans and pinch zoom stay with the browser. */
  touch-action: pan-y pinch-zoom;
}

.stage.zoomed {
  /* Zoomed in, a sideways drag pans around the print instead of turning it. */
  touch-action: pan-x pan-y pinch-zoom;
}

.viewer-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 56rem);
  max-height: calc(100dvh - 9rem);
  /* A short swipe springs back. script.js turns this off while dragging and stepping. */
  transition: translate var(--slide-in) var(--spring-soft);
}

.viewer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.25rem var(--gutter) max(1rem, env(safe-area-inset-bottom));
}

.viewer-count {
  min-width: 3.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.nav,
.viewer-close {
  display: grid;
  place-items: center;
  width: var(--target);
  height: var(--target);
  border-radius: 50%;
  color: var(--ink-2);
  transition:
    scale var(--exit) var(--ease-exit),
    color var(--exit) var(--ease-exit);
}

.nav:active,
.viewer-close:active {
  scale: 0.9;
  transition-duration: var(--press);
}

@media (hover: hover) {
  .nav:hover,
  .viewer-close:hover {
    color: var(--ink);
  }
}

.viewer-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.chev {
  width: 0.5rem;
  height: 0.5rem;
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  rotate: 45deg;
  translate: 0.125rem 0;
}

.chev-next {
  rotate: -135deg;
  translate: -0.125rem 0;
}

/* View transitions: grow out of the thumbnail, shrink back into it, slide between prints. */

html[data-vt="grow"]::view-transition-group(print) {
  animation-duration: var(--grow);
  animation-timing-function: var(--spring-grow);
}

html[data-vt="grow"]::view-transition-old(print) {
  animation: none;
  opacity: 0;
}

html[data-vt="grow"]::view-transition-new(print) {
  animation: none;
}

html[data-vt="shrink"]::view-transition-group(print) {
  animation-duration: var(--shrink);
  animation-timing-function: var(--ease-exit);
}

html[data-vt="shrink"]::view-transition-old(print) {
  animation: none;
}

html[data-vt="shrink"]::view-transition-new(print) {
  animation: none;
  opacity: 0;
}

html[data-vt="grow"]::view-transition-old(root),
html[data-vt="grow"]::view-transition-new(root) {
  animation-duration: 320ms;
  animation-timing-function: var(--ease-exit);
}

html[data-vt="shrink"]::view-transition-old(root),
html[data-vt="shrink"]::view-transition-new(root) {
  animation-duration: var(--shrink);
  animation-timing-function: var(--ease-exit);
}

html[data-vt="next"]::view-transition-old(print-out) {
  animation: to-left var(--slide-out) var(--ease-exit) both;
}

html[data-vt="next"]::view-transition-new(print-in) {
  animation:
    from-right var(--slide-in) var(--spring-soft) both,
    fade-in var(--fade) var(--ease-exit) 50ms both;
}

html[data-vt="prev"]::view-transition-old(print-out) {
  animation: to-right var(--slide-out) var(--ease-exit) both;
}

html[data-vt="prev"]::view-transition-new(print-in) {
  animation:
    from-left var(--slide-in) var(--spring-soft) both,
    fade-in var(--fade) var(--ease-exit) 50ms both;
}

/* Turns keep the page live so a flick or tap mid-slide still lands; the counter keeps its cross-fade. */
html[data-vt="next"],
html[data-vt="prev"] {
  view-transition-name: none;
}

html[data-vt="next"] .viewer-count,
html[data-vt="prev"] .viewer-count {
  view-transition-name: count;
}

html[data-vt="next"]::view-transition,
html[data-vt="prev"]::view-transition {
  pointer-events: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes to-left {
  to {
    translate: -2.5rem 0;
    opacity: 0;
  }
}

@keyframes to-right {
  to {
    translate: 2.5rem 0;
    opacity: 0;
  }
}

@keyframes from-right {
  from {
    translate: 2.5rem 0;
  }
}

@keyframes from-left {
  from {
    translate: -2.5rem 0;
  }
}

/* Snowboarding. A week bin holds at most 7 days, so the dots step through
   empty, then pairs, then a full week. */

#snowboarding .fold-body {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  /* The header rule sits inside the heading's box, and the last line ends flush,
     so equal padding would look short on top and long below. These two make the
     visible gaps match the 1.75rem between the blocks. */
  padding-top: 2rem;
  padding-bottom: 1.75rem;
}

#snowboarding .snow-stats {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  column-gap: 1.25rem;
}

#snowboarding .snow-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  min-width: 0;
}

#snowboarding .snow-num {
  font-size: 1.7rem;
  font-weight: var(--strong);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

/* The unit sits on the figure's baseline, smaller than the digits and clear of the last one. */
#snowboarding .snow-unit {
  margin-inline-start: 0.18em;
  font-size: 0.34em;
  font-weight: var(--regular);
  letter-spacing: 0;
}

#snowboarding .snow-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 1.75rem;
  row-gap: 0.625rem;
}

#snowboarding .snow-chart {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) max-content;
  column-gap: 0.4rem;
  row-gap: 0.625rem;
  align-items: center;
  min-width: 0;
}

/* Fixed month tracks keep the dots packed. Free space falls between months. */
#snowboarding .snow-months,
#snowboarding .snow-weeks {
  display: grid;
  grid-template-columns: repeat(5, 2.6rem);
  justify-content: space-between;
  column-gap: 0.15rem;
  min-width: 0;
}

#snowboarding .snow-month {
  text-align: center;
  line-height: 1;
}

#snowboarding .snow-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#snowboarding .snow-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: rgb(0 0 0 / var(--ink-dot, 0.16));
}

#snowboarding .snow-dot[data-level="1"] { --ink-dot: 0.37; }
#snowboarding .snow-dot[data-level="2"] { --ink-dot: 0.58; }
#snowboarding .snow-dot[data-level="3"] { --ink-dot: 0.79; }
#snowboarding .snow-dot[data-level="4"] { --ink-dot: 1; }

#snowboarding .snow-year {
  font-size: var(--size-sub);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#snowboarding .snow-days {
  justify-self: end;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@container (width < 32rem) {
  #snowboarding .snow-num {
    font-size: 1.2rem;
  }

  #snowboarding .snow-list {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-flow: row;
  }
}

/* Reduced motion: nothing moves; state changes fade or switch. */
@media (prefers-reduced-motion: reduce) {
  .page {
    animation: none;
  }

  .js .fold-panel,
  .js .fold[data-open] > .fold-panel {
    transition: none;
  }

  .js .st,
  .js .fold[data-open] .st {
    translate: none;
    transition: opacity 160ms linear;
  }

  .fold-icon,
  .fold[data-open] .fold-icon {
    transition: color 160ms linear;
  }

  .fold-h::after {
    scale: 1 1;
    opacity: 0;
    transition: opacity 160ms linear;
  }

  .fold[data-open] .fold-h::after {
    opacity: 1;
    transition: opacity 160ms linear;
  }

  .viewer[open],
  .viewer[open]::backdrop {
    animation: fade-in 160ms linear;
  }

  .viewer-img {
    transition: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}
