/* Tokens ----------------------------------------------------------------- */

:root {
  --bg: #f7f5f0;
  --text: #1b1a17;
  --muted: #6b6862;
  --faint: #8c8982;
  --line: rgba(27, 26, 23, 0.1);
  --hover: rgba(27, 26, 23, 0.05);
  --surface: rgba(27, 26, 23, 0.025);
  --icon-turn: 0deg;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0c0b;
    --text: #ecebe7;
    --muted: #95928b;
    --faint: #6d6a64;
    --line: rgba(236, 235, 231, 0.1);
    --hover: rgba(236, 235, 231, 0.06);
    --surface: rgba(236, 235, 231, 0.02);
    --icon-turn: 180deg;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d0c0b;
  --text: #ecebe7;
  --muted: #95928b;
  --faint: #6d6a64;
  --line: rgba(236, 235, 231, 0.1);
  --hover: rgba(236, 235, 231, 0.06);
  --surface: rgba(236, 235, 231, 0.02);
  --icon-turn: 180deg;
  color-scheme: dark;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.006em;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
ul {
  margin: 0;
  padding: 0;
  font: inherit;
}

ul {
  list-style: none;
}

[hidden] {
  display: none !important;
}

/* No slanted type anywhere, including browser defaults. */
em,
i,
cite,
address,
dfn,
var {
  font-style: normal;
}

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

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::selection {
  background: var(--text);
  color: var(--bg);
}

:focus-visible {
  outline: 1.5px solid var(--text);
  outline-offset: 4px;
  border-radius: 6px;
}

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

/* Layout ----------------------------------------------------------------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  max-width: 44rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    clamp(4.5rem, 15vh, 9rem)
    max(1.5rem, env(safe-area-inset-right))
    max(2.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
}

.name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.012em;
}

.tagline {
  margin-top: 0.375rem;
  color: var(--muted);
}

.section {
  display: grid;
  gap: 0.75rem;
}

.label {
  color: var(--muted);
  /* Room above a section opened from a link, like the home page's All buttons. */
  scroll-margin-top: 3rem;
}

.prose {
  max-width: 33rem;
  text-wrap: pretty;
}

.prose p + p {
  margin-top: 0.9em;
}

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

@media (min-width: 720px) {
  .section {
    grid-template-columns: 7rem minmax(0, 1fr);
    column-gap: 1.5rem;
  }

  /* A page that is one list: the page title names it, so no label column. */
  .section--solo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Tabs ------------------------------------------------------------------- */

/* Home, Work, Fun, in the top corner of every page. The pill behind the
   current tab glides to the next one when you change pages. */
.tabs {
  position: absolute;
  top: max(1.5rem, env(safe-area-inset-top));
  right: calc(max(1.5rem, env(safe-area-inset-right)) - 0.75rem);
  display: flex;
  gap: 0.125rem;
  font-size: 14px;
  view-transition-name: tabs;
}

.tabs a {
  position: relative;
  isolation: isolate;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.3s var(--ease-out);
}

.tabs a[aria-current="page"] {
  color: var(--text);
}

.tab-pill {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--hover);
  view-transition-name: tab-pill;
}

@media (hover: hover) and (pointer: fine) {
  .tabs a:hover {
    color: var(--text);
  }
}

.tabs a:focus-visible {
  outline-offset: 2px;
  border-radius: 999px;
}

/* Lists ------------------------------------------------------------------ */

/* Pull the list up so the first row's text sits on the label's line. */
.list {
  display: grid;
  margin-block: -0.375rem;
}

.row {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  column-gap: 1rem;
  align-items: baseline;
  width: 100%;
  padding-block: 0.375rem;
  transition: opacity 0.4s var(--ease-out);
}

.row-desc {
  color: var(--muted);
}

.row-meta {
  justify-self: end;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Title on the left, date or arrow on the right. */
.row--post {
  grid-template-columns: minmax(0, 1fr) auto;
}

.row--more .row-title {
  color: var(--muted);
}

/* A status word with the link arrow beside it. */
.meta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Headline on top, outlet and year beneath, arrow on the right. */
.row--press {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title meta"
    "desc meta";
  row-gap: 0.125rem;
  padding-block: 0.5rem;
}

.row--press .row-title {
  grid-area: title;
  text-wrap: pretty;
}

.row--press .row-desc {
  grid-area: desc;
  font-size: 13px;
}

.row--press .row-meta {
  grid-area: meta;
  align-self: start;
  margin-top: 0.45em;
}

@media (max-width: 539px) {
  .row:not(.row--post) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "title meta"
      "desc desc";
    padding-block: 0.5rem;
  }

  .row--post {
    padding-block: 0.5rem;
  }

  .list {
    margin-block: -0.5rem;
  }

  .row-title { grid-area: title; }
  .row-desc { grid-area: desc; }
  .row-meta { grid-area: meta; }
  .row--post .row-title,
  .row--post .row-meta { grid-area: auto; }
}

/* Hovering or focusing one row quietly steps the others back. */
.list:has(.row:focus-visible) .row:not(:focus-visible) {
  opacity: 0.35;
}

@media (hover: hover) and (pointer: fine) {
  .list:has(.row:hover) .row:not(:hover) {
    opacity: 0.35;
  }
}

a.row:active,
button.row:active {
  opacity: 0.6;
  transition-duration: 0.1s;
}

/* Press ------------------------------------------------------------------ */

/* Each article as its own social preview: share image, outlet, headline. */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
}

.press-card {
  display: grid;
  align-content: start;
  gap: 0.375rem;
  transition: opacity 0.4s var(--ease-out);
}

.press-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1.91 / 1;
  margin-bottom: 0.375rem;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* The outlet's name shows while the image loads, or if it never does. */
.press-thumb::before {
  content: attr(data-source);
  padding: 1rem;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 1.125rem;
  text-align: center;
}

.press-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    opacity 0.6s var(--ease-out),
    transform 1.2s var(--ease-out);
}

.js .press-thumb img:not(.is-loaded) {
  opacity: 0;
}

/* No image on purpose: the outlet's name, set like a masthead. */
.press-thumb--text::before {
  color: var(--muted);
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  letter-spacing: -0.01em;
}

/* Some share images are transparent logos; give them a sheet of paper. */
.press-thumb img.is-loaded {
  background: #fff;
}

.press-thumb:has(img.is-loaded)::before {
  visibility: hidden;
}

.press-source {
  color: var(--faint);
  font-size: 13px;
}

.press-title {
  line-height: 1.45;
  text-wrap: pretty;
}

.press-grid:has(.press-card:focus-visible) .press-card:not(:focus-visible) {
  opacity: 0.4;
}

@media (hover: hover) and (pointer: fine) {
  .press-grid:has(.press-card:hover) .press-card:not(:hover) {
    opacity: 0.4;
  }

  .press-card:hover .press-thumb img {
    transform: scale(1.04);
  }
}

.press-card:focus-visible {
  outline-offset: 6px;
  border-radius: 12px;
}

/* The way to the full list, under each short one. */
.more {
  margin-top: 1.25rem;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.25rem;
  padding: 0 0.875rem 0 1rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  transition:
    background-color 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.more-count {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.more-link .icon {
  color: var(--muted);
}

.more-link:focus-visible {
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .more-link:hover {
    background: var(--hover);
    box-shadow: inset 0 0 0 1px transparent;
  }

  .more-link:hover .icon {
    color: var(--text);
  }

  .more-link:hover .arrow-right svg:first-child {
    transform: translateX(100%);
  }

  .more-link:hover .arrow-right svg:last-child {
    transform: none;
  }
}

.more-link:active {
  transform: scale(0.98);
}

@media (max-width: 539px) {
  .press-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Icons ------------------------------------------------------------------ */

.icon {
  display: grid;
  align-self: center;
  width: 12px;
  height: 12px;
  overflow: hidden;
  transition: color 0.3s var(--ease-out);
}

.icon svg {
  grid-area: 1 / 1;
  width: 12px;
  height: 12px;
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

/* The arrow exits up-right and a twin slides in from bottom-left. */
.arrow svg:last-child {
  transform: translate(-100%, 100%);
}

/* Same idea, pointing right. */
.arrow-right svg:last-child {
  transform: translateX(-100%);
}

@media (hover: hover) and (pointer: fine) {
  .row:hover .icon {
    color: var(--text);
  }

  .row:hover .arrow svg:first-child {
    transform: translate(100%, -100%);
  }

  .row:hover .arrow svg:last-child,
  .row:hover .arrow-right svg:last-child {
    transform: none;
  }

  .row:hover .arrow-right svg:first-child {
    transform: translateX(100%);
  }
}

/* Contact ---------------------------------------------------------------- */

.plus svg {
  transition: transform 0.5s var(--ease-out);
}

[aria-expanded="true"] .plus svg {
  transform: rotate(45deg);
}

[aria-expanded="true"] .plus {
  color: var(--text);
}

/* Opens by animating the row track from 0 to its natural height. */
.disclosure {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}

.disclosure-inner {
  min-height: 0;
  overflow: hidden;
}

.disclosure-inner > * {
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.5s var(--ease-out);
}

[aria-expanded="true"] + .disclosure {
  grid-template-rows: 1fr;
}

[aria-expanded="true"] + .disclosure .disclosure-inner > * {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.contact {
  display: grid;
  gap: 1.25rem;
  max-width: 30rem;
  padding: 0.75rem 0 1.5rem;
}

.field {
  display: grid;
  gap: 0.25rem;
}

.field-label {
  color: var(--muted);
  font-size: 13px;
}

/* Inputs are a single hairline; focus draws a darker line across it. */
.field input,
.field textarea {
  width: 100%;
  margin: 0;
  padding: 0.375rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: linear-gradient(var(--text), var(--text)) left bottom / 0% 1px no-repeat;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  outline: none;
  resize: none;
  transition: background-size 0.6s var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.field textarea {
  min-height: 4.75em;
  max-height: 14em;
  field-sizing: content;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  background-size: 100% 1px;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
}

.field [aria-invalid="true"] {
  border-bottom-color: #b4533a;
}

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

.contact-status {
  color: var(--muted);
  font-size: 13px;
}

.send {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
  padding: 0.5rem 1rem 0.5rem 1.125rem;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  transition:
    transform 0.2s var(--ease-out),
    opacity 0.3s var(--ease-out);
}

.send svg {
  width: 12px;
  height: 12px;
  transition: transform 0.45s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .send:hover svg {
    transform: translateX(3px);
  }
}

.send:active {
  transform: scale(0.97);
}

.send:disabled {
  opacity: 0.5;
  cursor: progress;
}

.send:focus-visible {
  border-radius: 999px;
}

.contact-done {
  padding: 0.75rem 0 1.5rem;
  animation: settle 0.7s var(--ease-out) both;
}

.contact-done p + p {
  margin-top: 0.125rem;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(4px);
  }
}

/* Tennis ----------------------------------------------------------------- */

/* The court breaks out of the text column to a wider stage. */
.section--court .label {
  grid-column: 1 / -1;
}

.court {
  --stage: min(58rem, calc(100vw - 3rem));
  grid-column: 1 / -1;
  width: var(--stage);
  margin: 0 0 0 calc((100% - var(--stage)) / 2);
}

.court-frame {
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 18px;
  background: #4f7d3f;
  box-shadow:
    0 0 0 1px var(--line),
    0 40px 80px -48px rgba(20, 30, 20, 0.55);
}

.court canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.court canvas:focus-visible {
  outline-offset: 4px;
  border-radius: 18px;
}

.court-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}

.text-button {
  flex: none;
  color: var(--muted);
  transition: color 0.3s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .text-button:hover {
    color: var(--text);
  }
}

@media (max-width: 719px) {
  .court-frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 539px) {
  .court-frame {
    aspect-ratio: 1 / 1.02;
    border-radius: 14px;
  }

  .court-caption {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Writing ---------------------------------------------------------------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-bottom: -1.25rem;
  color: var(--muted);
  transition: color 0.3s var(--ease-out);
}

.back svg {
  width: 12px;
  height: 12px;
  transition: transform 0.45s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .back:hover {
    color: var(--text);
  }

  .back:hover svg {
    transform: translateX(-3px);
  }
}

.page-title {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.page-lede {
  margin-top: 0.75rem;
  color: var(--muted);
}

.post-meta {
  margin-top: 0.875rem;
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.post-body {
  max-width: 34rem;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}

.post-body p + p {
  margin-top: 1.1em;
}

.post-body strong {
  font-weight: 500;
}

.post-end {
  max-width: 34rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.muted {
  color: var(--muted);
}

/* Fun -------------------------------------------------------------------- */

/* A segmented control; the dark pill slides to the chosen filter. */
.filters {
  position: relative;
  display: inline-flex;
  align-self: flex-start;
  gap: 0.125rem;
  margin-top: -1.5rem;
  padding: 0.25rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px;
}

.filters button {
  position: relative;
  z-index: 1;
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.35s var(--ease-out);
}

.filters button[aria-pressed="true"] {
  color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
  .filters button:not([aria-pressed="true"]):hover {
    color: var(--text);
  }
}

.filters-pill {
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 0;
  border-radius: 999px;
  background: var(--text);
}

.filters.is-ready .filters-pill {
  transition:
    transform 0.55s var(--ease-out),
    width 0.55s var(--ease-out);
}

.sample-banner {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font-size: 13px;
}

.events {
  display: grid;
  gap: 1rem;
}

.event {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.375rem;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.event-date {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-top: 0.125rem;
}

.event-day {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
}

.event-month {
  margin-top: 0.375rem;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-title {
  font-family: var(--serif);
  font-size: 1.375rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.event-meta {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 13px;
}

.event-note {
  margin-top: 0.625rem;
  text-wrap: pretty;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 500;
  transition:
    background-color 0.3s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.pill-button--solid {
  background: var(--text);
  color: var(--bg);
  box-shadow: none;
}

.pill-button:active {
  transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
  .pill-button:not(.pill-button--solid):hover {
    background: var(--hover);
  }
}

.pill-button svg {
  width: 11px;
  height: 11px;
}

.quiet-tag {
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feed {
  display: grid;
  gap: 2.5rem;
}

.entry {
  display: grid;
  gap: 0.5rem;
}

.entry-date {
  color: var(--faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.entry-title {
  margin-top: 0.25rem;
}

.entry-note {
  color: var(--muted);
  text-wrap: pretty;
}

.entry-text {
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.entry-place {
  color: var(--muted);
}

.media {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #121211;
  box-shadow: inset 0 0 0 1px var(--line);
}

.media--video {
  aspect-ratio: 16 / 9;
}

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

.media--video img {
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease-out), opacity 0.6s var(--ease-out);
}

.media iframe {
  position: absolute;
  inset: 0;
}

/* Click to load the player, so nothing from YouTube runs until asked. */
.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35));
}

.play-button {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(250, 249, 245, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #1b1a17;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s var(--ease-out);
}

.play-button svg {
  width: 18px;
  height: 18px;
  margin-left: 3px;
  fill: currentColor;
  stroke: none;
}

@media (hover: hover) and (pointer: fine) {
  .play:hover .play-button {
    transform: scale(1.08);
  }

  .media--video:hover img {
    transform: scale(1.03);
  }
}

.media-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.875rem;
  color: rgba(250, 249, 245, 0.9);
  font-size: 13px;
}

.empty {
  color: var(--muted);
}

.empty p + p {
  margin-top: 0.25rem;
}

/* Entries settle in one after another when the feed renders or refilters. */
.fun-enter {
  animation: settle 0.8s var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}

@media (max-width: 539px) {
  .event {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.125rem;
  }

  .event-day {
    font-size: 2.125rem;
  }
}

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

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
  color: var(--faint);
  font-size: 13px;
}

.footer-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.clock {
  font-variant-numeric: tabular-nums;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -0.5rem -0.5rem -0.5rem 0;
  border-radius: 999px;
  color: var(--faint);
  transition:
    color 0.3s var(--ease-out),
    background-color 0.3s var(--ease-out);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  transform: rotate(var(--icon-turn));
  transition: transform 0.8s var(--ease-in-out);
}

.theme-toggle path {
  fill: currentColor;
  stroke: none;
}

@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover {
    color: var(--text);
    background-color: var(--hover);
  }
}

/* Motion ----------------------------------------------------------------- */

/* Entrance: blocks rise out of a soft blur as they come into view.
   main.js adds .is-in and staggers the delay. */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  filter: blur(8px);
}

.js [data-reveal].is-in,
.js.reveal-fallback [data-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.9s var(--ease-out) var(--delay, 0ms),
    transform 1.1s var(--ease-out) var(--delay, 0ms),
    filter 0.9s var(--ease-out) var(--delay, 0ms);
}

/* Between pages: the old page lifts away while the new one reveals itself. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  z-index: 1;
  animation: page-out 0.32s var(--ease-out) both;
}

::view-transition-new(root) {
  animation: none;
}

@keyframes page-out {
  to {
    opacity: 0;
    transform: translateY(-8px);
    filter: blur(6px);
  }
}

/* The tab pill glides between pages instead of fading. */
::view-transition-group(tab-pill) {
  animation-duration: 0.55s;
  animation-timing-function: var(--ease-out);
}

/* Theme switch: main.js grows the new theme out of the toggle. */
html.theme-switching::view-transition-old(root),
html.theme-switching::view-transition-new(root) {
  z-index: auto;
  animation: none;
  mix-blend-mode: normal;
}

html.theme-switching .tabs,
html.theme-switching .tab-pill {
  view-transition-name: none;
}

/* Fallback for browsers without view transitions. */
.theme-fade,
.theme-fade * {
  transition:
    background-color 0.4s var(--ease-out),
    color 0.4s var(--ease-out) !important;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }

  .js [data-reveal] {
    transform: none;
    filter: none;
  }

  .js [data-reveal].is-in,
  .js.reveal-fallback [data-reveal] {
    transition: opacity 0.4s ease;
  }

  .icon svg,
  .back svg,
  .theme-toggle svg,
  .disclosure,
  .disclosure-inner > *,
  .field input,
  .field textarea {
    transition-duration: 0.01s;
  }

  .contact-done,
  .fun-enter {
    animation: none;
  }

  .filters.is-ready .filters-pill,
  .press-thumb img {
    transition-duration: 0.01s;
  }
}
