@font-face {
  font-family: "Syne";
  src: url("fonts/Syne-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #f4f2ee;
  --fg: #161513;
  --muted: #6d6a64;
  --line: #d9d5cd;
  --tile-bg: #ffffff;
  --sheet: var(--bg);               /* work sheet: same colour, so the page reads as one backing */
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 64px);
  --bar-h: 64px;                    /* docked masthead height */
  --nav-top: 22px;                  /* top of the Work / About links */
  --display: "Syne", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --fg: #ecebe7;
    --muted: #9a978f;
    --line: #2c2b28;
    --tile-bg: #1c1b19;
  }
}

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

html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
html.is-locked { overflow: hidden; }

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* ---------- Intro (back layer: tiles scroll over it) ---------- */

.intro {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  /* Name sits a little way down, below the Work / About nav */
  padding: max(calc(var(--bar-h) + 12px), 12svh) var(--gutter) clamp(10px, 1.5svh, 20px);
}

.intro__inner { width: 100%; }

/* ---------- Specimens (flowers.js): plants printed onto the paper ---------- */

.specimen {
  position: absolute;
  pointer-events: none;
  color: var(--fg);
  opacity: 0;
  transition: opacity 1.6s ease;
}
.specimen.is-printed { opacity: 1; }
.specimen__print { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .specimen { transition: none; }
}

/* In the intro's empty right-hand column, under the nav */
.specimen--intro {
  top: var(--bar-h);
  right: calc(var(--gutter) / 2);
  bottom: 0;
  width: min(48vw, 800px);
}
/* Beside the about text */
.about { position: relative; }
.specimen--about {
  top: clamp(24px, 6svh, 72px);
  right: calc(var(--gutter) / 2);
  bottom: 0;
  width: min(46vw, 760px);
}

/* A scatter of plants (flowers.js) behind whatever follows in the same
   parent: the gallery tiles cover them, and they show in the gaps */
.specimen-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.specimen-field ~ :not(.specimen) { position: relative; }

/* Behind the about text, a paler scatter so the words still read */
.about .specimen-field .specimen.is-printed { opacity: 0.5; }

/* Narrow screens: a smaller, fainter print behind the text */
@media (max-width: 700px) {
  .specimen--intro,
  .specimen--about { width: 60vw; }
  .specimen.is-printed { opacity: 0.45; }
  .about .specimen-field .specimen.is-printed { opacity: 0.3; }
}

.intro__name-slot { margin-bottom: clamp(10px, 2.5svh, 28px); }

.intro__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
  align-items: end;
  gap: 24px clamp(24px, 5vw, 80px);
  will-change: opacity, transform;
}

.intro__bio {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
}

@media (max-width: 700px) {
  .intro__row { grid-template-columns: 1fr; }
}

/* ---------- Masthead (front layer: name, docked bar) ---------- */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  pointer-events: none;
}

.masthead__bar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--sheet) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
}
.masthead.is-docked .masthead__bar { pointer-events: auto; }

.site-nav {
  position: fixed;
  top: 0;
  right: var(--gutter);
  z-index: 1;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  pointer-events: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--fg); }

.name-wrap {
  position: fixed;
  isolation: isolate;
  width: max-content;
  transform-origin: 0 0;
  will-change: transform;
}

.intro__name {
  position: relative;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  /* One line; sized by width and height */
  white-space: nowrap;
  font-size: clamp(1.9rem, min(5.6vw, 5.6svh), 5.6rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

@media (max-width: 600px) {
  .site-nav { gap: 1rem; font-size: 0.85rem; }
}

/* ---------- Work ---------- */

/* Solid sheet in the page colour: covers the intro as it slides up, with no seam */
.work {
  position: relative;
  z-index: 1;
  background: var(--sheet);
  padding: clamp(10px, 1.5svh, 18px) var(--gutter) 10vh;
  /* Tall enough to stay docked under the bar when a filter leaves few tiles */
  min-height: calc(100lvh - var(--bar-h));
}

/* Category filters under the bio: text toggles split by rules */
.filters {
  display: flex;
  flex-wrap: wrap;
  --chip-gap: clamp(2rem, 11vw, 11rem);
  gap: 0.4rem var(--chip-gap);
  margin-top: clamp(32px, 8svh, 80px);
}
/* In the docked bar, in the name's place: same spacing, no space above */
.filters--bar { margin-top: 0; }
.chip { position: relative; }
/* Hit area: the whole half-gap to each divider, and a little above and below */
.chip::after {
  content: "";
  position: absolute;
  inset: -12px calc(var(--chip-gap) / -2);
}
.chip + .chip::before {
  content: "";
  position: absolute;
  left: calc(var(--chip-gap) / -2);
  top: 50%;
  height: 0.9em;
  border-left: 1px solid var(--muted);
  transform: translateY(-50%);
}
.chip {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  text-decoration: underline 1px transparent;
  text-underline-offset: 5px;
  cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.chip:hover { color: var(--fg); }
.chip[aria-pressed="true"] {
  color: var(--fg);
  text-decoration-color: currentColor;
}

/* Gallery: every image the same size */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.gallery .tile[hidden] { display: none; }
.gallery__empty { color: var(--muted); }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; }
}
.gallery__empty[hidden] { display: none; }

.tile {
  display: block;
  text-decoration: none;
}
/* Soft shadow under each tile; drop-shadow (not box-shadow) so it follows
   the masked dog-ear corner */
.gallery .tile {
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / 0.4));
}

/* Shared media box: holds an <img> or a placeholder gradient */
.media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--line);
}
.media__fill {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Cards: taller media with the name set inside over a gradient scrim */
.card { position: relative; }
.card .tile__media { aspect-ratio: 4 / 3; }
/* Two columns: sized so a landing view shows a full row plus a quarter of the next */
@media (min-width: 701px) {
  .card .tile__media { aspect-ratio: auto; height: var(--tile-h, auto); }
}
.card__cap {
  position: absolute;
  inset: auto 0 0;
  padding: 56px 16px 14px;
  background: linear-gradient(to top, rgb(0 0 0 / 0.65), rgb(0 0 0 / 0.25) 55%, transparent);
  color: #fff;
  pointer-events: none;
  /* Title left, role tags right on the title's baseline; description
     runs full width underneath */
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 16px;
  align-items: baseline;
}
/* Visited projects: top-right corner folded down like a dog-eared page
   (shape drawn per project in main.js) */
.dog-ear {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: none;
  overflow: visible;
  pointer-events: none;
  backface-visibility: hidden;
}
.card.is-visited .dog-ear { display: block; }
/* The image side of the corner, shown only while the fold animates */
.dog-ear__front {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  backface-visibility: hidden;
  pointer-events: none;
}
/* The folded-away corner is masked out of the tile itself, so no image shows
   along its edges. Three abutting layers: everything left of the corner,
   everything below it, and the corner box minus the folded triangle.
   --ear-k scales the whole corner (0 = no fold); the flyer animates it. */
@property --ear-k {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
.card.is-visited .tile__media,
.flyer.is-eared > .flyer__media {
  --ear-mask: linear-gradient(#000 0 0);
  --ew: calc(var(--ear-w) * var(--ear-k, 1));
  --eh: calc(var(--ear-h) * var(--ear-k, 1));
  -webkit-mask:
    var(--ear-mask) left top / calc(100% - var(--ew) + 1px) 100% no-repeat,
    var(--ear-mask) right bottom / var(--ew) calc(100% - var(--eh) + 1px) no-repeat,
    var(--ear-corner) right top / var(--ew) var(--eh) no-repeat;
  mask:
    var(--ear-mask) left top / calc(100% - var(--ew) + 1px) 100% no-repeat,
    var(--ear-mask) right bottom / var(--ew) calc(100% - var(--eh) + 1px) no-repeat,
    var(--ear-corner) right top / var(--ew) var(--eh) no-repeat;
}
.dog-ear__crease { stop-color: color-mix(in srgb, var(--fg) 18%, var(--sheet)); }
.dog-ear__tip { stop-color: color-mix(in srgb, var(--fg) 34%, var(--sheet)); }

.card__title {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  line-height: 1.1;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.3);
}
.card__role {
  display: block;
  text-align: right;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.card__desc {
  grid-column: 1 / -1;
  display: -webkit-box;
  margin-top: 4px;
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.35);
}
/* Mouse users: description folds away until the card is hovered or focused.
   Touch screens keep it showing, since there's no hover. */
@media (hover: hover) and (pointer: fine) {
  .card__desc {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    transition: max-height 0.3s ease, margin-top 0.3s ease, opacity 0.25s ease;
  }
  .card:hover .card__desc,
  .card:focus-visible .card__desc,
  .flyer .card__desc {
    max-height: 2.7em;
    margin-top: 4px;
    opacity: 1;
  }
}

/* ---------- About page ---------- */

.page-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.page-bar__name {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
/* Small hint under the name on project pages */
.page-bar__back {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-style: italic;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0.6;
}
.site-nav--static { position: absolute; }
.site-nav a[aria-current="page"] { color: var(--fg); }

/* The footer sits at the foot of the screen on short About pages */
body.page { display: flex; flex-direction: column; min-height: 100svh; }
body.page > .site-footer { margin-top: auto; }

.about {
  padding: clamp(40px, 10svh, 120px) var(--page-x) 10vh;
  /* Text on the left, photo on the right */
  display: grid;
  grid-template-columns: minmax(0, 64ch) minmax(0, 1fr);
  /* Title, bio, a spacer, then the icons level with the photo's foot */
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(32px, 6vw, 96px);
  align-content: start;
}
.about > :not(.about__photo, .specimen, .specimen-field) { grid-column: 1; }

.about__photo {
  grid-column: 2;
  grid-row: 1 / -1;
  justify-self: end;
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  /* Down to the top of the letters in the heading, not its line box */
  margin: calc(clamp(1.9rem, min(5.6vw, 5.6svh), 5.6rem) * 0.06) 0 0;
  overflow: hidden;
  /* Same soft shadow as the home page tiles */
  box-shadow: 0 4px 4px rgb(0 0 0 / 0.4);
  background: color-mix(in srgb, var(--cyan-deep) 70%, transparent);
}
.about__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Beside the photo, the icons sit in the last row, level with its bottom */
@media (min-width: 761px) {
  .about__links { grid-row: 4; align-self: end; }
}
.about__photo-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    width: min(100%, 360px);
    margin-top: 2rem;
  }
}

.about__title {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  /* Same size as the "Katie Zhao" title on the home page (.intro__name) */
  font-size: clamp(1.9rem, min(5.6vw, 5.6svh), 5.6rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.about__bio {
  margin: 0 0 1.25rem;
  max-width: 64ch;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.45;
}
/* Blank heading in the editor: hidden from view, still read by screen readers */
.about__title.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.about__bio p,
.about__bio ul { margin: 0 0 0.9em; }
.about__bio ul { padding-left: 1.25em; }
.about__bio p:has(+ ul) { margin-bottom: 0.3em; }
.about__bio li + li { margin-top: 0.2em; }
.about__bio > :last-child { margin-bottom: 0; }

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 1.35rem;
}

/* Icon-only brand links; the name is in aria-label and the hover tooltip */
.about__links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.2s;
}
.about__links a:hover,
.about__links a:focus-visible { opacity: 1; transform: translateY(-1px); }
.about__links .fi {
  display: inline-flex;
  line-height: 1;
}
/* Links without a brand icon show their name */
.about__link--text {
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) 32px;
  background: var(--sheet);
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer a { color: inherit; }

/* Stand-in that travels between thumbnail and project preview: the image,
   plus the card's caption and dog-ear (main.js fades those by the far end) */
.flyer {
  position: fixed;
  top: 0;
  left: 0;
  will-change: transform, width, height;
  z-index: 100;
  pointer-events: none;
}
.flyer > .flyer__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  margin: 0;
}
.flyer > .dog-ear {
  display: block;
  transform: scale(var(--ear-k, 1));
  transform-origin: 100% 0;
}

/* ---------- Project view ---------- */

.project {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
}
.project[hidden] { display: none; }

/* Project and About pages share one centred column; the gutter is the floor.
   Percentages resolve against the full-width page. */
.project,
.about { --page-x: max(var(--gutter), (100% - 86rem) / 2); }

/* Cover runs edge to edge at its own proportions (--ar, set in main.js),
   cropped top and bottom when that would be taller than most of the screen */
.project__media {
  --ar: 4 / 1;
  --max-h: 78svh;
  /* Explicit width so the height cap crops instead of narrowing it */
  width: 100%;
  aspect-ratio: var(--ar);
  max-height: var(--max-h);
}

/* Title on the left, quick info aligned to it on the right */
.project__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem clamp(24px, 5vw, 80px);
  margin-inline: var(--page-x);
  padding: clamp(20px, 3vw, 36px) 0 clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
}

.project__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
}

/* Title with its description underneath */
.project__lead {
  flex: 1 1 24rem;
  max-width: 44rem;
}
.project__intro {
  margin: 1.25rem 0 0;
  font-size: 1.1rem;
  line-height: 1.5;
  white-space: pre-line;
}
.project__intro[hidden] { display: none; }

/* Title on the left; info stacked on the right with the game button last */
.project__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.project__link {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.project__link:hover,
.project__link:focus-visible {
  background: var(--fg);
  color: var(--bg);
  outline: none;
}
.project__link[hidden] { display: none; }

.project__info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}
.project__info:empty { display: none; }
.project__info dt {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.project__info dd { margin: 0.15rem 0 0; font-variant-numeric: tabular-nums; }

/* Wide column for spreads and galleries */
.project__body {
  padding: clamp(24px, 4vw, 48px) var(--page-x) 96px;
  font-size: 1.075rem;
}

/* Text runs the full column; lone images keep a readable size */
.project__body p { margin: 0 0 1.2em; white-space: pre-line; }
.project__body > .block--media:not(.block--image) { max-width: 56rem; }
.project__body > .block--image { max-width: 46rem; }

/* Passage beside its image */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  margin: 0 0 2em;
}
.pair__text p:last-child { margin-bottom: 0; }
.pair > .block--media { margin: 0; }

/* Justified gallery rows */
.gallery-rows {
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
  margin: 2em 0;
}
.gallery-row {
  display: flex;
  gap: clamp(10px, 1.4vw, 18px);
  align-items: flex-start;
}
.gallery-row > .block--media {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
}

/* Gallery block: a uniform grid of cropped tiles */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  margin: 2em auto; /* centred when narrowed by its width setting */
}
.gallery-grid > .block--media { margin: 0; }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Uncropped: images keep their shape, stacked masonry-style */
.gallery-grid--uncropped {
  display: block;
  columns: var(--cols, 3);
  column-gap: clamp(10px, 1.4vw, 18px);
}
.gallery-grid--uncropped > .block--media {
  break-inside: avoid;
  margin: 0 0 clamp(10px, 1.4vw, 18px);
}
.gallery-grid--uncropped img { aspect-ratio: auto; }

@media (max-width: 720px) {
  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* Full width on phones, overriding the per-gallery width setting */
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none !important; }
  .gallery-grid--uncropped { columns: 2; }
}
.block--heading {
  /* --heading comes from the editor's heading colour (site.css), if set */
  color: var(--heading, var(--fg));
  margin: 1.9em 0 0.6em;
  font-family: var(--display);
  font-weight: 400;
  /* 84% of the original size; margins scaled up to match, so spacing stays put */
  font-size: clamp(1.34rem, 2.18vw, 1.85rem);
  line-height: 1.05;
}
/* Line block: the same hairline as under the project's title */
.block--divider {
  margin: 3em 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.block--media { margin: 2em 0; }
.block--media img,
.block--media video,
.block__embed {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--line);
}
.block__embed { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.block__embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Figma embeds: Figma's own 800×500 frame with its hairline border */
.project__body > .block--media:has(> .block__embed--figma) { max-width: none; text-align: center; }
.block__embed--figma { max-width: 800px; margin-inline: auto; border: 1px solid rgba(0, 0, 0, 0.1); }
/* Portrait prototypes stay a phone's width */
.block__embed--tall { max-width: 500px; }
.block__embed--phone { max-width: 420px; }
.block--media img.is-loaded { background: none; }
.block--media figcaption {
  margin-top: 0.6em;
  color: var(--muted);
  font-size: 0.875rem;
}
.block--image figcaption {
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease;
}
.block--image:hover figcaption,
.block--image:focus-within figcaption {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 560px) {
  .project__meta { flex-direction: column; align-items: flex-start; }
}
