/* One tile per project, each in its own brand colours, with no gaps.
   Soapbox and the work done there fill the right two thirds of the screen.
   Photos are black and white until you point at them. Clicking a tile opens
   its project page (the .sheet), which grows out of the tile. */

:root {
  --ink: #161513;
  --paper: #efece5;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }

.mosaic {
  height: 100dvh;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-template-areas:
    "name     name     soapbox soapbox agora   agora"
    "me       rs       soapbox soapbox agora   agora"
    "me       rs       ditto   armada  talks   talks"
    "fourw    animals  mentor  mentor  podcast wolf"
    "spinster animals  press   press   writing links";
}

/* Tiles */
.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  container-type: size;
  margin: 0;
  /* Padding can't use cq units: on the tile itself they'd measure the screen. */
  padding: clamp(0.9rem, 2.2vmin, 2rem) clamp(0.9rem, 2.2vmin, 2rem) clamp(2.6rem, 6vmin, 4rem);
  border: 0;
  font: inherit;
  text-align: left;
  display: flex;
  flex-direction: column;
  background: var(--bg, var(--paper));
  color: var(--fg, var(--ink));
  text-decoration: none;
  cursor: pointer;
}
a.tile:focus-visible { outline: 3px solid #fff; outline-offset: -5px; z-index: 2; }

.soapbox    { --bg: #0482d8; --fg: #fff; }
.ditto      { --bg: #8f48d8; --fg: #fff; }
.armada     { --bg: #100b15; --fg: #fff; }
.writing    { --bg: #efece5; --fg: #161513; }
.press      { --bg: #161513; --fg: #fff; }
.linktile   { --bg: #e2ddd2; --fg: #161513; }
.rangerstar { --bg: #005b42; --fg: #f8f6f2; }
.fourw      { --bg: #ffffff; --fg: #cd1286; }
.spinster   { --bg: #990099; --fg: #fff; }
.wolf       { --bg: #1e2257; --fg: #e9e8f2; }

/* A slow lift on hover says "this opens". */
.brand > * { transition: transform 0.5s var(--ease); }
.brand:hover > *:not(.tag) { transform: translateY(-3%); }

/* Name */
.name {
  grid-area: name;
  cursor: default;
  padding: clamp(1rem, 3vmin, 2.6rem);
}
.name h1 {
  margin: auto 0 0;
  font-weight: 800;
  font-stretch: 125%;
  font-size: min(19cqw, 46cqh);
  line-height: 0.84;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.name p {
  margin: 4cqmin 0 0;
  max-width: 34em;
  font: 500 max(0.72rem, min(2.4cqw, 0.95rem))/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.name .hint { margin-top: 0.3em; opacity: 0.5; }

/* Photo tiles */
.photo { padding: 0; }
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  transition: filter 0.6s ease, transform 1.2s var(--ease);
}
.photo:hover > img, .photo:focus-visible > img { filter: none; transform: scale(1.03); }
.photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgb(0 0 0 / 0.5), transparent);
  pointer-events: none;
}
.photo .tag { color: #fff; z-index: 1; }

/* Covers: designed art (the book, the podcast), shown in full colour. */
.cover { padding: 0; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.cover:hover > img { transform: scale(1.03); }
.cover .tag { z-index: 1; color: #fff; padding: 0.3em 0.5em; margin: -0.3em -0.5em; background: rgb(0 0 0 / 0.55); }

.badge {
  position: absolute;
  top: 6cqmin;
  left: 6cqmin;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.4em 0.7em 0.4em 0.55em;
  background: #0b0e13;
  color: #fff;
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 8cqmin, 2.6rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  -webkit-text-stroke: 0.03em currentColor;
}
.badge img { height: 1em; width: auto; }

/* Brand tiles */
.lockup {
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-weight: 700;
  font-size: min(13cqw, 26cqh);
  letter-spacing: -0.02em;
  line-height: 1;
}
.lockup img { height: 1.05em; width: auto; }
.lockup.stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3em;
  margin-top: auto;
  font-size: min(24cqw, 40cqh);
}
.lockup.stack img { height: 1.4em; }
.soapbox .lockup img, .ditto .lockup img { filter: brightness(0) invert(1); }
.armada .lockup { font-family: var(--mono); font-weight: 500; letter-spacing: -0.03em; font-size: min(21cqw, 38cqh); }
.armada .lockup img { height: 2.2em; margin-left: -0.3em; }

.soapbox { justify-content: space-between; padding: clamp(1.2rem, 4vmin, 3rem); }
.soapbox .lockup { font-family: 'Outfit', sans-serif; font-size: min(15cqw, 24cqh); font-weight: 800; letter-spacing: -0.03em; }
.ditto .lockup { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.04em; }
.soapbox .pitch {
  margin-top: 0.9em;
  max-width: 24em;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: min(5.4cqw, 9cqh);
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.soapbox .quote {
  margin: auto 0 0;
  max-width: 22em;
  font-family: 'Outfit', sans-serif;
  font-size: min(5.2cqw, 7.5cqh);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.soapbox .quote cite { display: block; margin-top: 0.6em; font: 500 max(0.62rem, min(2.6cqw, 0.78rem))/1.4 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.soapbox .role { margin-top: 4cqmin; font: 500 max(0.72rem, min(3.2cqw, 1rem))/1.45 var(--mono); text-transform: uppercase; letter-spacing: 0.04em; }
@container (max-height: 480px) { .soapbox .quote { display: none; } .soapbox .role { margin-top: auto; } }

.rangerstar .mo { width: min(78cqw, 52cqh); height: auto; margin: -4cqmin 0 0 -4cqmin; }
.rangerstar .word { margin-top: auto; font-family: 'Fraunces', serif; font-weight: 800; font-size: min(17cqw, 20cqh); letter-spacing: -0.02em; }
.fourw { align-items: center; justify-content: center; }
.logo4w { width: 78%; height: auto; }
.spinster .word { margin-top: auto; font-family: 'Inter', sans-serif; font-weight: 800; font-size: min(22cqw, 44cqh); letter-spacing: -0.045em; }
.wolf .word { margin-top: auto; font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: min(30cqw, 54cqh); letter-spacing: -0.02em; }
.wolf .tag { color: #c39543; }
.writing .outlets {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.05em 0.45em;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: min(8.5cqw, 24cqh);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.press .names, .linktile .names {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.55em;
  font-weight: 800;
  font-stretch: 112%;
  font-size: min(7.5cqw, 30cqh);
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.press .names span:nth-child(even) { color: #f2c46b; }
.linktile .names span:nth-child(even) { color: #0482d8; }
.writing .outlets span:nth-child(even) { font-style: italic; font-weight: 500; color: #b23a2a; }

.tag {
  position: absolute;
  left: 7cqmin;
  bottom: 6cqmin;
  font: 500 max(0.7rem, min(5.2cqmin, 0.9rem))/1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brand .tag { opacity: 0.85; }

/* On load the tiles turn face up, one after another. */
@keyframes deal { from { transform: perspective(1200px) rotateY(90deg); } to { transform: none; } }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.tile { animation: deal 0.65s var(--ease) backwards; }
.name { animation: rise 0.6s ease backwards; }
.tile:nth-child(2)  { animation-delay: 0.10s; }
.tile:nth-child(3)  { animation-delay: 0.16s; }
.tile:nth-child(4)  { animation-delay: 0.22s; }
.tile:nth-child(5)  { animation-delay: 0.28s; }
.tile:nth-child(6)  { animation-delay: 0.34s; }
.tile:nth-child(7)  { animation-delay: 0.40s; }
.tile:nth-child(8)  { animation-delay: 0.46s; }
.tile:nth-child(9)  { animation-delay: 0.52s; }
.tile:nth-child(10) { animation-delay: 0.58s; }
.tile:nth-child(11) { animation-delay: 0.64s; }
.tile:nth-child(12) { animation-delay: 0.70s; }
.tile:nth-child(13) { animation-delay: 0.76s; }
.tile:nth-child(14) { animation-delay: 0.82s; }
.tile:nth-child(15) { animation-delay: 0.88s; }
.tile:nth-child(16) { animation-delay: 0.94s; }
.tile:nth-child(17) { animation-delay: 1.0s; }

/* Project page */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  /* The picture column keeps close to the pictures' 2:3 shape at any window size. */
  grid-template-columns: clamp(34vw, 66.67vh, 50vw) minmax(0, 1fr);
  background: var(--bg);
  color: var(--fg);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.sheet[hidden] { display: none; }

.hero { position: relative; overflow: hidden; background: var(--bg); transition: opacity 0.35s ease; }
.hero.photo picture { position: absolute; inset: 0; }
.hero.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.mark, .hero.type { display: grid; place-items: center; padding: 10%; }
.hero.list { display: flex; align-items: flex-end; padding: 8% 8% 10%; }
.hero.list ul { list-style: none; margin: 0; padding: 0; }
.hero.list li {
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.2rem, 5.6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.hero.list li:nth-child(even) { color: var(--accent); }
/* Website and app screens fill the picture side, from the top of the page. */
.hero.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.hero.mark img { width: min(46%, 300px); height: auto; }
.hero.mark.big img { width: min(70%, 440px); }
.hero.mark.invert img { filter: brightness(0) invert(1); }
.hero .word { font-family: var(--brand-font, var(--sans)); font-weight: var(--brand-weight, 800); font-size: clamp(3rem, 9vw, 9rem); letter-spacing: -0.04em; line-height: 0.9; }
.sheet[data-id="agora"] h2 { font-size: clamp(3.6rem, 9vw, 7.5rem); letter-spacing: 0.01em; font-style: italic; line-height: 0.85; }
.sheet[data-id="armada"] h2 { letter-spacing: -0.04em; }

.page {
  position: relative;
  overflow-y: auto;
  padding: clamp(4.5rem, 9vh, 7rem) clamp(1.5rem, 6vw, 6rem) 3rem;
  display: flex;
  flex-direction: column;
}
.page > * { max-width: 40rem; }

/* Contents arrive after the sheet has opened, a little apart. */
.page > *:not(.close), .hero > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.6s var(--ease);
}
.sheet.shown .page > *, .sheet.shown .hero > * { opacity: 1; transform: none; }
.sheet.shown .hero > *       { transition-delay: 0s; }
.sheet.shown .kicker         { transition-delay: 0.02s; }
.sheet.shown h2              { transition-delay: 0.06s; }
.sheet.shown .lede           { transition-delay: 0.10s; }
.sheet.shown .role           { transition-delay: 0.13s; }
.sheet.shown .text           { transition-delay: 0.16s; }
.sheet.shown .milestones     { transition-delay: 0.20s; }
.sheet.shown .links          { transition-delay: 0.24s; }
.sheet.shown .pager          { transition-delay: 0.28s; }

.close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  width: 3rem;
  height: 3rem;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg);
  font: 300 1.9rem/1 var(--sans);
  cursor: pointer;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.close:hover { transform: rotate(90deg); border-color: var(--fg); }

.kicker, .role, .milestones .when, .links, .pager button, blockquote cite {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.kicker { margin: 0 0 1rem; font-size: 0.78rem; color: var(--accent); }
.page h2 {
  margin: 0;
  font-family: var(--brand-font, var(--sans));
  font-weight: var(--brand-weight, 800);
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.lede { margin: 1.4rem 0 0; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.role { margin: 1.4rem 0 0; font-size: 0.78rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }

.text { margin-top: 1.6rem; font-size: 1.06rem; line-height: 1.6; }
.text p { margin: 0 0 1em; }
blockquote {
  margin: 1.6rem 0;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
  font-size: 1.2rem;
  line-height: 1.4;
  font-style: italic;
}
blockquote p { margin: 0; }
blockquote cite { display: block; margin-top: 0.6rem; font-size: 0.72rem; font-style: normal; opacity: 0.7; }

.milestones { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 25%, transparent); }
.milestones li {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  font-size: 0.98rem;
}
.milestones .when { font-size: 0.75rem; padding-top: 0.15rem; color: var(--accent); }

.links { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.6rem; font-size: 0.78rem; }
.links a {
  color: var(--fg);
  text-decoration: none;
  padding: 0.65rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--fg) 35%, transparent);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.links a::after { content: " \2192"; }
.links a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.pager {
  margin-top: auto;
  padding-top: 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.pager button {
  border: 0;
  background: none;
  color: var(--fg);
  font-size: 0.75rem;
  opacity: 0.65;
  cursor: pointer;
  padding: 0.5rem 0;
}
.pager button:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tile, .name { animation: none; }
  .photo > img, .brand > * { transition: none; }
  .page > *, .hero > * { transition: none; }
}

/* Phones */
@media (max-width: 60rem) {
  /* Square tiles on phones; the page scrolls a little instead of
     squeezing everything onto one screen. */
  html, body { height: auto; }
  .mosaic {
    height: auto;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(10, 33.34vw);
    grid-template-areas:
      "name     name    me"
      "soapbox  soapbox ditto"
      "soapbox  soapbox armada"
      "agora    agora   rs"
      "agora    agora   rs"
      "fourw    talks   talks"
      "mentor   mentor  spinster"
      "wolf     podcast animals"
      "writing  writing animals"
      "links    press   press";
  }
  .name h1 { font-size: min(22cqw, 40cqh); }
  .name p { font-size: clamp(0.66rem, 1.7vw, 0.95rem); }
  .tile { padding: clamp(0.8rem, 2.4vw, 1.6rem) clamp(0.8rem, 2.4vw, 1.6rem) clamp(2.2rem, 5.5vw, 3.4rem); }
  .tag { font-size: clamp(0.62rem, 1.5vw, 0.85rem); }
  .name { padding: clamp(0.9rem, 2.6vw, 1.8rem); }
  .name .hint { display: none; }

  .sheet { display: block; overflow-y: auto; }
  .hero { height: clamp(260px, 46vh, 560px); }
  .hero.list li { font-size: clamp(2.1rem, 6vw, 3.6rem); }
  /* Below desktop, each picture is shown at its own proportions, uncropped. */
  .hero.photo { height: auto; }
  .hero.photo picture, .hero.photo img { position: static; display: block; width: 100%; height: auto; }
  .hero.mark, .hero.type { padding: 12%; }
  .page { overflow: visible; padding: 2rem clamp(1.4rem, 7vw, 5rem) 2.5rem; }
  .close { top: 0.75rem; right: 0.75rem; width: 2.6rem; height: 2.6rem; }
}

/* The project page shows its photo in colour, with no label shade. */
.hero.photo > img { filter: none; transform: none; }
.hero.photo::after { display: none; }

/* Narrow Press and Links tiles: let the words wrap bigger. */
@container (max-width: 200px) {
  .linktile .names { font-size: 14cqw; }
  .press .names { font-size: 10.5cqw; }
}

/* The book cover is shown whole, over a blurred copy of itself, so it fits
   any tile shape without cropping the title or Mo. */
.rangerstar.cover::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url(img/rangerstar-cover.webp) center / cover;
  filter: blur(20px) brightness(0.75);
}
.rangerstar.cover > img { object-fit: contain; z-index: 1; }
.rangerstar.cover .tag { z-index: 2; }

/* Captions, magazine style: what the picture is and who took it. */
.hero .caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  margin: 0;
  width: fit-content;
  max-width: calc(100% - 2rem);
  padding: 0.45rem 0.65rem;
  background: rgb(10 10 10 / 0.68);
  color: #fff;
  font: 500 0.68rem/1.45 var(--mono);
  letter-spacing: 0.03em;
}

/* A drop cap opens each feature, in the project's own typeface. */
.text > p.dropcap::first-letter,
.text > p .dropcap-word {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font-family: var(--brand-font, var(--sans));
  font-weight: var(--brand-weight, 800);
  font-size: 3.6em;
  line-height: 0.82;
  color: var(--accent);
}
.sheet[data-id="agora"] .text > p.dropcap::first-letter,
.sheet[data-id="agora"] .text > p .dropcap-word { font-size: 4.2em; line-height: 0.8; }

/* Turning to the next feature slides the page the way you swiped. */
.sheet[data-dir="next"]:not(.shown) .page > *:not(.close) { transform: translateX(-28px); }
.sheet[data-dir="prev"]:not(.shown) .page > *:not(.close) { transform: translateX(28px); }
.sheet[data-dir="next-in"]:not(.shown) .page > *:not(.close) { transform: translateX(28px); }
.sheet[data-dir="prev-in"]:not(.shown) .page > *:not(.close) { transform: translateX(-28px); }

/* On phones the 4W banner's picture is wider than tall: keep the woman and the 4W mark. */

/* Links from one feature to another, inside milestones. */
.milestones a.jump {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.milestones a.jump:hover { color: var(--accent); }

/* Jumping to another feature: the old page lifts away, the new brand colour
   floods in, and the new picture is revealed with a wipe from the top. */
.sheet[data-dir="jump"]:not(.shown) .page > *:not(.close) { transform: translateY(-22px); }
.sheet[data-dir="jump"]:not(.shown) .hero > * { transform: scale(1.04); }
.sheet[data-dir="jump-in"]:not(.shown) .page > *:not(.close) { transform: translateY(26px); }
@keyframes wipe-in { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.sheet[data-dir="jump-in"] .hero > picture,
.sheet[data-dir="jump-in"] .hero > img,
.sheet[data-dir="jump-in"] .hero > ul { animation: wipe-in 0.75s cubic-bezier(.7,0,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .sheet[data-dir="jump-in"] .hero > * { animation: none; }
}

/* Press lines and quote sources link out. */
.milestones a.out, blockquote cite a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.milestones a.out::after { content: "\00a0\2192"; font-size: 0.8em; opacity: 0.7; }
.milestones a.out:hover, blockquote cite a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* The outlet names on the Press picture size to the column, so long names fit. */
.hero.list { container-type: inline-size; }
.hero.list li { font-size: min(10.5cqw, 5.2rem) !important; }
@media (max-width: 60rem) {
  .hero.list { height: auto; padding: 2.5rem clamp(1.4rem, 7vw, 5rem) 2rem; }
  .hero.list li { font-size: min(9cqw, 4rem) !important; }
}

/* Press lines: the arrow and the hover colour mark them as links. */
.milestones a.out { text-decoration: none; }
.milestones a.out:hover { text-decoration: none; }

.text > p .dropcap-word { letter-spacing: -0.02em; }

/* Shown only without JavaScript: a plain list of the work. */
.plain { padding: 2rem; color: #efece5; font: 400 1rem/1.6 var(--sans); max-width: 40rem; }
.plain a { color: inherit; }

/* Quiet tiles: paper ground, the brand colour only in the mark, the word and
   a short rule above the label, so the full-colour tiles stand out. */
.quiet { --bg: var(--paper); --fg: var(--brand); }
.ditto.quiet    { --brand: #7c52e0; }
.spinster.quiet { --brand: #990099; }
.wolf.quiet     { --brand: #1e2257; }
.ditto.quiet .lockup img { filter: none; }
.quiet .tag, .wolf.quiet .tag { color: var(--brand); opacity: 1; }
.quiet .tag::before { content: ""; display: block; width: 2.4em; height: 3px; margin-bottom: 0.7em; background: var(--brand); }
/* Light tiles that meet get a hairline between them. */
.quiet, .writing, .linktile, .fourw { box-shadow: inset 0 0 0 0.5px rgb(22 21 19 / 0.22); }

/* Links in one narrow tile, as a list. */
.linktile .names { flex-direction: column; gap: 0; font-size: min(15cqw, 15.5cqh); line-height: 1.02; }

/* Covers match the photos: black and white until you point at them. */
.cover > img, .rangerstar.cover::before { transition: filter 0.6s ease, transform 1.2s var(--ease); }
.cover > img { filter: grayscale(1) contrast(1.08) brightness(0.96); }
.rangerstar.cover::before { filter: blur(20px) brightness(0.75) grayscale(1); }
.cover:hover > img, .cover:focus-visible > img { filter: none; }
.rangerstar.cover:hover::before, .rangerstar.cover:focus-visible::before { filter: blur(20px) brightness(0.75); }

/* RangerStar: a scene built from the app's own art (Mo, the star, native
   plants) on its green. Every piece is pinned to an edge and sized to the
   tile, so it fills the box at any shape. It stays in colour: RangerStar is
   the main project right now. */
.rs-art { padding: 0; }
.rs-scene {
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 30% 0%, #0b7553 0%, transparent 70%), #005b42;
}
.rs-word {
  position: absolute; top: 7cqmin; left: 7cqmin; right: 7cqmin;
  display: flex; align-items: center; gap: 0.18em;
  font: 800 min(11.4cqw, 9cqh)/1 'Fraunces', serif;
  letter-spacing: -0.025em; color: #f8f6f2;
}
.rs-star { height: 0.78em; width: auto; flex: none; }
.rs-word { flex-wrap: wrap; }
.rs-line {
  position: absolute; top: calc(7cqmin + min(11.4cqw, 9cqh) * 1.25); left: 7cqmin; right: 7cqmin;
  font: 500 min(5.4cqw, 3.6cqh)/1.3 'Fraunces', serif; font-style: italic; color: #f2c46b;
}
.rs-mo {
  position: absolute; z-index: 1;
  left: 50%; bottom: min(13cqh, 17cqw);
  height: min(60cqh, 96cqw); width: auto;
  transform: translateX(-46%);
  transition: transform 0.9s var(--ease);
}
.rs-art:hover .rs-mo { transform: translateX(-46%) translateY(-2.5%); }
/* A low hill for Mo and the plants to stand on. */
.rs-ground {
  position: absolute; left: -10%; right: -10%; bottom: 0;
  height: min(24cqh, 34cqw);
  background: #6f9a3f;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
}
.rs-plants {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: min(4cqh, 5cqw);
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 1cqw;
}
.rs-plants img { height: min(22cqh, 33cqw); width: auto; margin: 0 -3cqw; flex: none; }
.rs-plants img:nth-child(even) { height: min(16cqh, 23cqw); }
.rs-art .tag { z-index: 3; color: #fff; padding: 0.3em 0.5em; margin: -0.3em -0.5em; background: rgb(0 0 0 / 0.55); }
/* Swallows fill the sky when the box is tall and narrow. */
.rs-birds { display: none; position: absolute; right: 10cqw; top: 21cqh; width: 52cqw; height: auto; opacity: 0.9; }
@container (max-aspect-ratio: 3/5) { .rs-birds { display: block; } }
