/*
 * The portfolio look, chosen 2026-10-13 ("Evolved gallery"): the dark ground, peach accent and
 * framed cards of portfolio.majaurban.com (2020-2023), made fluid, responsive and quieter.
 * Every color and font size is a token here; nothing below hardcodes one.
 */

:root {
  /* Color: warm near-black ground, charcoal cards, the old peach and rose frame */
  --color-bg: #100d0b;
  --color-surface: #1b1714;
  --color-card: #26211d;
  --color-mat: #2e2823;
  --color-line: #3b332d;
  --color-frame: #e2beb5;
  --color-text: #f3ece6;
  --color-muted: #b3a69c;
  --color-accent: #f9a070;
  --color-accent-strong: #ffc09a;
  --color-on-accent: #100d0b;
  --color-focus: #ffc09a;
  --color-scrim: #0a0807;

  /* Type: a soft optical serif for names and titles, a clean grotesque for everything else */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-brand: 1.25rem;
  --text-lg: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --text-title: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --text-feature: clamp(2rem, 1.1rem + 2.8vw, 3.75rem);
  --text-display: clamp(2.75rem, 1.2rem + 6.5vw, 7rem);
  --leading-tight: 1.1;
  --leading-snug: 1.35;
  --leading-body: 1.6;
  --tracking-caps: 0.14em;

  /* Space and shape */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.75rem;
  --space-m: 1rem;
  --space-l: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: clamp(3rem, 2rem + 4vw, 6rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --page-max: 92rem;
  --measure: 38rem;
  --radius-s: 0.5rem;
  --radius-m: 0.875rem;
  --radius-pill: 999px;
  --frame-width: 1px;
  --focus-width: 2px;
  --header-height: 3.75rem;
  --tile-min: clamp(9.5rem, 5rem + 14vw, 16rem);
  --text-tile: clamp(0.95rem, 0.4rem + 6cqi, 1.5rem);
  --grid-gap: clamp(var(--space-s), 2vw, var(--space-l));
  --mat-min: clamp(9rem, 6rem + 10vw, 16rem);
  --mat-pad: var(--space-s);
  --fade-x: var(--space-xl);
  --fade-y: var(--space-2xl);

  /* Work page: the panel holds about 45 characters a line; the work fills one viewport beside it */
  --panel-width: clamp(20rem, 30vw, 30rem);
  --stage-pad: clamp(0.75rem, 2vw, 2.5rem);
  --work-pad: var(--space-l);
  --work-height: max(18rem, calc(100svh - var(--header-height) - 2 * var(--work-pad)));
  --pager-min: 4.5rem;
  --chevron-size: 1.5rem;
  --glow-blur: 4rem;
  --glow-opacity: 0.32;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 160ms;
  --dur-slow: 480ms;
  --lift: -3px;
}

/* Base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--space-m));
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease);
}

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

:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-s);
}

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

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

.skip-link {
  position: absolute;
  left: var(--space-m);
  top: var(--space-m);
  z-index: 20;
  padding: var(--space-xs) var(--space-m);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: var(--text-sm);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
  color: var(--color-on-accent);
}

/* Scroll fades. portfolio.js marks which edges have more to scroll; without it, a sideways list fades both. */

[data-scroll-fade] {
  --fade-start: 0px;
  --fade-end: 0px;
  -webkit-mask-image: linear-gradient(var(--fade-dir), transparent, var(--color-bg) var(--fade-start), var(--color-bg) calc(100% - var(--fade-end)), transparent);
  mask-image: linear-gradient(var(--fade-dir), transparent, var(--color-bg) var(--fade-start), var(--color-bg) calc(100% - var(--fade-end)), transparent);
}

[data-scroll-fade="x"] {
  --fade-dir: to right;
  --fade-size: var(--fade-x);
}

[data-scroll-fade="y"] {
  --fade-dir: to bottom;
  --fade-size: var(--fade-y);
}

[data-scroll-fade="x"]:not([data-scroll-tracked]) {
  --fade-start: var(--space-m);
  --fade-end: var(--space-m);
}

[data-scroll-fade][data-more-start] {
  --fade-start: var(--fade-size);
}

[data-scroll-fade][data-more-end] {
  --fade-end: var(--fade-size);
}

/* Header: slim, sticky, translucent. One row from 40rem up; two rows (name, then series) on phones. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--color-bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 var(--frame-width) 0 var(--color-line);
}

.site-header-inner {
  max-width: var(--page-max);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  column-gap: var(--space-l);
}

.page-work .site-header-inner {
  max-width: none;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
  color: var(--color-text);
  white-space: nowrap;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: var(--text-brand);
  font-weight: 500;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
}

.brand-tag,
.eyebrow,
.pager-label,
.tile-cta {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-muted);
}

.series-nav {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.series-nav::-webkit-scrollbar {
  display: none;
}

.series-nav-list {
  display: flex;
  gap: var(--space-2xs);
  width: max-content;
  margin: 0 0 0 auto;
  padding: var(--space-xs) var(--space-xs);
  list-style: none;
}

.series-nav-link {
  position: relative;
  display: block;
  padding: var(--space-2xs) var(--space-s);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.series-nav-link:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.series-nav-link[aria-current="page"] {
  color: var(--color-accent);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 var(--frame-width) var(--color-line);
}

/* Page frame */

.page {
  flex: 1;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--gutter) var(--space-2xl);
}

.site-footer {
  border-top: var(--frame-width) solid var(--color-line);
  padding: var(--space-l) var(--gutter);
  text-align: center;
  color: var(--color-muted);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer-sep {
  margin-inline: var(--space-xs);
  color: var(--color-accent);
}

/* Intro blocks: the artist on the front page, the series name on a series page */

.intro {
  margin-block: var(--space-m) var(--space-xl);
}

.eyebrow {
  margin: 0 0 var(--space-s);
}

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

.display-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 330;
  font-variation-settings: "opsz" 144;
  line-height: 1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.intro-meta {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin: var(--space-m) 0 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.intro-meta::before {
  content: "";
  width: var(--space-xl);
  height: var(--frame-width);
  background: var(--color-accent);
}

.prose p {
  margin: 0 0 1em;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose i,
.prose em {
  font-family: var(--font-display);
  font-style: italic;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.lead {
  max-width: var(--measure);
  margin-top: var(--space-l);
  color: var(--color-muted);
  font-size: var(--text-lg);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Wide series pages: name on the left, the description beside it, both on the same baseline */
@media (min-width: 60rem) {
  .intro-series {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, var(--measure));
    align-items: end;
    gap: var(--space-xl);
  }

  .intro-series .lead {
    margin: 0;
  }
}

/* Cards: the tile on the front page and the mat on a series page share the frame and its lift */

.tile-grid,
.mat-grid {
  display: grid;
  gap: var(--grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile-link,
.mat-link {
  display: block;
  height: 100%;
  border: var(--frame-width) solid var(--color-line);
  border-radius: var(--radius-m);
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}

.tile-link:hover,
.tile-link:focus-visible,
.mat-link:hover,
.mat-link:focus-visible {
  border-color: var(--color-frame);
  color: var(--color-text);
  transform: translateY(var(--lift));
  box-shadow: 0 1.25rem 2.5rem -1.25rem var(--color-scrim);
}

/* Front page: one cover per series, the name laid over its foot */

.tile-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tile-min)), 1fr));
}

.tile {
  container-type: inline-size;
}

/* The feature spans the whole grid at every width, so it can never leave a hole in the rows below */
.tile-feature {
  grid-column: 1 / -1;
}

.tile-link {
  position: relative;
  overflow: hidden;
  padding: var(--space-xs);
}

.tile-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: calc(var(--radius-m) - var(--space-xs));
  background: var(--color-mat);
}

.tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
  filter: saturate(0.92);
}

.tile-link:hover .tile-media img,
.tile-link:focus-visible .tile-media img {
  transform: scale(1.04);
  filter: none;
}

.tile-caption {
  position: absolute;
  inset: auto var(--space-xs) var(--space-xs);
  display: flex;
  align-items: baseline;
  gap: var(--space-s);
  padding: var(--space-xl) clamp(var(--space-s), 6cqi, var(--space-l)) clamp(var(--space-s), 6cqi, var(--space-l));
  border-radius: 0 0 calc(var(--radius-m) - var(--space-xs)) calc(var(--radius-m) - var(--space-xs));
  background: linear-gradient(to top, color-mix(in oklab, var(--color-scrim) 88%, transparent), transparent);
}

.tile-index {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-caps);
}

.tile-name {
  font-family: var(--font-display);
  font-size: var(--text-tile);
  font-weight: 400;
  line-height: var(--leading-tight);
  overflow-wrap: anywhere;
}

/* Narrow tiles (two columns on a phone) put the number above the name */
@container (max-width: 14rem) {
  .tile-caption {
    flex-direction: column;
    gap: var(--space-2xs);
  }
}

.tile-blurb,
.tile-cover,
.tile-cta {
  display: none;
}

/* From 40rem the feature puts its cover left and the name, description and cover title right */
@media (min-width: 40rem) {
  .tile-feature .tile-link {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  }

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

  .tile-feature .tile-caption {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: var(--space-xl) clamp(var(--space-l), 3vw, var(--space-2xl));
    background: none;
  }

  .tile-feature .tile-name {
    font-size: var(--text-feature);
    font-weight: 330;
    font-variation-settings: "opsz" 144;
    letter-spacing: -0.02em;
    text-wrap: balance;
  }

  .tile-feature .tile-index {
    margin-bottom: auto;
    font-family: var(--font-display);
    font-size: var(--text-feature);
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0;
    line-height: 1;
  }

  .tile-cover {
    display: block;
    color: var(--color-muted);
    font-size: var(--text-sm);
  }

  .tile-cover i {
    font-family: var(--font-display);
  }

  .tile-blurb {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    max-width: var(--measure);
    color: var(--color-muted);
    font-size: var(--text-md);
    text-wrap: pretty;
  }

  .tile-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-s);
    padding: var(--space-xs) var(--space-m);
    border: var(--frame-width) solid var(--color-line);
    border-radius: var(--radius-pill);
    color: var(--color-accent);
    transition: border-color var(--dur-fast) var(--ease), gap var(--dur-fast) var(--ease);
  }

  .tile-cta::after {
    content: "\2192";
  }

  .tile-link:hover .tile-cta {
    border-color: var(--color-accent);
    gap: var(--space-s);
  }
}

/* Series page: every work matted whole in a square, never cropped, title beneath. The image is
   out of flow, so a portrait or panoramic work cannot stretch its mat or its row. */

.mat-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--mat-min)), 1fr));
}

.mat-link {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding: var(--space-s) var(--space-s) var(--space-m);
}

.mat-media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: var(--radius-s);
  background: var(--color-mat);
}

.mat-media img {
  position: absolute;
  inset: var(--mat-pad);
  width: auto;
  height: auto;
  max-width: calc(100% - 2 * var(--mat-pad));
  max-height: calc(100% - 2 * var(--mat-pad));
  margin: auto;
  box-shadow: 0 0.5rem 1.25rem -0.5rem var(--color-scrim);
}

.mat-title {
  padding-inline: var(--space-2xs);
  font-size: var(--text-sm);
  line-height: var(--leading-snug);
  text-wrap: balance;
}

/* Work page. Phones: image, then the text, then prev/next. Wide screens and phones held sideways:
   image left, panel right, together exactly one viewport tall, so the caption is never below the fold. */

.page-work .page {
  max-width: none;
  padding-block: var(--work-pad);
}

.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-l);
}

.work-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  min-height: 0;
  padding: var(--stage-pad);
  border: var(--frame-width) solid var(--color-line);
  border-radius: var(--radius-m);
  background: radial-gradient(ellipse at center, var(--color-mat), var(--color-card) 75%);
}

.work-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: var(--glow-opacity);
  filter: blur(var(--glow-blur)) saturate(1.3);
  transform: scale(1.25);
  pointer-events: none;
}

.work-image-link {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: var(--radius-s);
}

.work-image {
  width: auto;
  max-height: 72svh;
  object-fit: contain;
  box-shadow: 0 1.5rem 3rem -1rem var(--color-scrim);
  view-transition-name: artwork;
}

.work-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  min-height: 0;
}

.work-text {
  padding-inline: var(--space-2xs);
}

.work-title {
  margin: 0 0 var(--space-m);
  font-family: var(--font-display);
  font-size: var(--text-title);
  font-weight: 400;
  font-variation-settings: "opsz" 96;
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  text-wrap: balance;
  view-transition-name: work-title;
}

.work-caption {
  max-width: var(--measure);
  color: var(--color-muted);
  font-size: var(--text-md);
  text-wrap: pretty;
}

.work-full {
  margin: var(--space-l) 0 0;
  font-size: var(--text-sm);
}

.work-full a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-m);
  border: var(--frame-width) solid var(--color-line);
  border-radius: var(--radius-pill);
}

.work-full a:hover {
  border-color: var(--color-accent);
}

.work-full a::after {
  content: "\2197";
}

.pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s);
}

.pager-link {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  min-height: var(--pager-min);
  padding: var(--space-s) var(--space-m);
  border: var(--frame-width) solid var(--color-line);
  border-radius: var(--radius-m);
  background: var(--color-card);
  color: var(--color-text);
  transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

a.pager-link:hover {
  border-color: var(--color-frame);
  background: var(--color-mat);
  color: var(--color-text);
}

/* No previous or next (the first and last work of the site): keep the slot, show nothing */
.pager-empty {
  visibility: hidden;
}

.pager-next {
  justify-content: flex-end;
  text-align: right;
}

.pager-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pager-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-family: var(--font-display);
  font-size: var(--text-base);
  line-height: 1.3;
}

.chevron {
  flex: none;
  width: var(--chevron-size);
  height: var(--chevron-size);
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-fast) var(--ease);
}

a.pager-prev:hover .chevron {
  transform: translateX(-3px);
}

a.pager-next:hover .chevron {
  transform: translateX(3px);
}

.key-hint {
  display: none;
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-xs);
  text-align: center;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 var(--space-2xs);
  border: var(--frame-width) solid var(--color-line);
  border-bottom-width: 2px;
  border-radius: var(--space-2xs);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-align: center;
}

/* Phones: the header puts the series on their own scrolling row under the name */

@media (max-width: 39.99rem) {
  :root {
    --header-height: 5.75rem;
    --mat-pad: var(--space-xs);
  }

  .site-header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-inline: 0;
  }

  .brand {
    padding: var(--space-s) var(--gutter) 0;
  }

  .series-nav {
    flex-basis: 100%;
  }

  .series-nav-list {
    margin-left: 0;
    padding-inline: calc(var(--gutter) - var(--space-s));
  }

  .mat-link {
    padding: var(--space-xs) var(--space-xs) var(--space-s);
  }

  /* An odd tile left alone on the last row of two takes the whole row, as a wide band */
  .tile:not(.tile-feature):last-child:nth-child(even) {
    grid-column: 1 / -1;
  }

  .tile:not(.tile-feature):last-child:nth-child(even) .tile-media {
    aspect-ratio: 2 / 1;
  }
}

/* Portrait tablets stack too, with a shorter image so the title and caption arrive on the first screen */

@media (min-width: 40rem) and (max-width: 59.99rem) {
  .work-image {
    max-height: 62svh;
  }
}

/* Short screens (phones held sideways, small laptop windows): the header no longer follows the
   scroll, and it is slimmer, so the work page can fit the whole viewport under it. */

@media (max-height: 32rem) {
  :root {
    --header-height: 3rem;
    --work-pad: var(--space-s);
    --pager-min: 3.25rem;
    --stage-pad: var(--space-s);
  }

  .site-header {
    position: static;
  }

  .brand-tag {
    display: none;
  }
}

/* Side by side: wide screens, and phones held sideways. Only the text scrolls inside the panel;
   prev/next stay pinned at its foot. */

@media (min-width: 60rem), (min-width: 40rem) and (max-height: 32rem) {
  .work {
    grid-template-columns: minmax(0, 1fr) var(--panel-width);
    gap: clamp(var(--space-m), 2.5vw, var(--space-xl));
    height: var(--work-height);
  }

  .work-stage {
    height: 100%;
  }

  .work-image {
    max-height: calc(var(--work-height) - 2 * var(--stage-pad) - 2 * var(--frame-width));
  }

  .work-panel {
    overflow: hidden;
    padding: var(--space-xs);
  }

  .work-text {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: var(--space-xs) var(--space-xs) var(--space-m);
    scrollbar-width: thin;
    scrollbar-color: var(--color-line) transparent;
  }

  .pager {
    flex: none;
    margin-top: auto;
  }

  .key-hint {
    flex: none;
  }
}

@media (max-height: 32rem) and (min-width: 40rem) {
  .work-title {
    margin-bottom: var(--space-xs);
    font-size: var(--text-lg);
  }

  .work-caption {
    font-size: var(--text-sm);
  }

  .work-full {
    margin-top: var(--space-s);
  }
}

@media (min-width: 60rem) and (min-height: 45rem) and (hover: hover) {
  .key-hint {
    display: block;
  }
}

/* Motion: cross-fade between pages, the artwork morphing in place; all of it off on request */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: var(--dur-slow);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --lift: 0px;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .tile-link:hover .tile-media img,
  .tile-link:focus-visible .tile-media img {
    transform: none;
  }
}
