/* ============================================================
   WAYMARK — a journal of everyday city life
   Visual thesis: a city is a set of routes people make meaningful.
   Signature device: the route line — a rule punctuated by stops.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --paper:        #f2ece1;
  --paper-2:      #eae1d2;
  --surface:      #fbf8f1;
  --ink:          #1a1611;
  --ink-2:        #4c4436;
  --ink-3:        #6a6151;
  --line:         #d7ccba;
  --line-strong:  #b6a98f;
  --accent:       #c0431d;
  --accent-deep:  #8f2f11;
  --on-accent:    #fdf6ec;
  --focus:        #1f5c55;

  --cat-culture:  #b0452a;
  --cat-food:     #86591a;
  --cat-movement: #22605a;
  --cat-people:   #6a3b56;
  --cat-places:   #3f5a2c;

  --step-4:  4px;
  --step-8:  8px;
  --step-12: 12px;
  --step-16: 16px;
  --step-24: 24px;
  --step-32: 32px;
  --step-48: 48px;
  --step-64: 64px;
  --step-96: 96px;

  --wrap: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
  --radius: 2px;
  --radius-lg: 4px;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shadow: 0 1px 0 rgba(26,22,17,.05), 0 18px 40px -28px rgba(26,22,17,.5);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Faint paper grain — decorative, local, no network */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared type roles ---------- */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink-2);
}

/* ---------- Route line: the signature device ---------- */
.route {
  --dot: 3px;
  --gap: 34px;
  height: 9px;
  background:
    radial-gradient(circle, var(--ink) 1.9px, transparent 2.4px) 0 50% / var(--gap) 9px repeat-x,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% 1px no-repeat;
}
.route--short {
  display: block;
  width: 64px;
  --gap: 26px;
  --dot: 2px;
  background:
    radial-gradient(circle, var(--accent) 2px, transparent 2.5px) 0 50% / 22px 9px repeat-x,
    linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% 1px no-repeat;
}

/* ============================================================
   Masthead
   ============================================================ */
.masthead {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--ink);
}
.masthead__utility {
  display: flex;
  align-items: center;
  gap: var(--step-12);
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
}
.masthead__spacer { flex: 1; }
.masthead__dot { color: var(--ink-3); }

.masthead__main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--step-32);
  padding: var(--step-24) 0 var(--step-16);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(3.1rem, 12.5vw, 8.4rem);
  line-height: .82;
  letter-spacing: -.045em;
  margin: 0;
}
.wordmark a {
  color: var(--ink);
  text-decoration: none;
}
.wordmark a:hover { color: var(--accent-deep); }
.masthead__tagline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  line-height: 1.5;
  text-transform: uppercase;
  text-align: right;
  color: var(--ink-2);
  padding-bottom: .5em;
  max-width: 22ch;
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--step-24);
  padding: var(--step-16) 0 var(--step-24);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field__control { position: relative; display: flex; align-items: center; }
.field__icon {
  position: absolute;
  left: 0;
  width: 18px; height: 18px;
  color: var(--ink-2);
  pointer-events: none;
}
.field input,
.field select {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 8px 0;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input { padding-left: 28px; }
.field input::placeholder { color: var(--ink-3); font-style: italic; }
.field input:hover, .field select:hover { border-color: var(--ink-2); }
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}
.field select { cursor: pointer; padding-right: 22px; }
.field__chevron {
  position: absolute; right: 0;
  width: 12px; height: 8px;
  color: var(--ink-2);
  pointer-events: none;
}
.field--saved { align-items: flex-end; }

/* Saved toggle */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px 7px 12px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.toggle:hover { border-color: var(--ink); }
.toggle__icon { width: 11px; height: 14px; }
.toggle__mark { fill: transparent; transition: fill .18s var(--ease); }
.toggle__count {
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
  text-align: center;
  border-left: 1px solid var(--line-strong);
  padding-left: 9px;
  color: var(--ink-2);
}
.toggle[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-accent);
}
.toggle[aria-pressed="true"] .toggle__mark { fill: var(--accent); stroke: var(--accent); }
.toggle[aria-pressed="true"] .toggle__count { color: var(--paper-2); border-color: rgba(255,255,255,.28); }

/* ============================================================
   Intro
   ============================================================ */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: end;
  gap: var(--step-24) var(--step-64);
  padding-top: var(--step-64);
  padding-bottom: var(--step-48);
}
.intro__eyebrow {
  grid-column: 1 / -1;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 10px;
}
.intro__eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border: 2px solid var(--accent);
  border-radius: 50%;
}
.intro__title {
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  max-width: 18ch;
}
.intro__dek {
  color: var(--ink-2);
  font-size: clamp(.98rem, 1.4vw, 1.12rem);
  line-height: 1.6;
  max-width: 46ch;
  padding-bottom: .35em;
}

/* ============================================================
   Browse
   ============================================================ */
.browse { padding-bottom: var(--step-96); }
.browse__status {
  display: flex;
  align-items: center;
  gap: var(--step-16);
  border-top: 1px solid var(--ink);
  padding-top: var(--step-16);
  margin-bottom: var(--step-48);
}
.browse__status .label { color: var(--ink); }

.brief {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 2.4vw, 40px);
  row-gap: clamp(48px, 6vw, 88px);
}

/* ---------- Item ---------- */
.item {
  grid-column: span 12;
  min-width: 0;
}
.item__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
}
.item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  filter: saturate(.9) contrast(1.03) sepia(.05);
  transition: transform .7s var(--ease), filter .4s var(--ease);
}
.item__media:hover img,
.item__media:focus-visible img { transform: scale(1.035); filter: saturate(1) contrast(1.04) sepia(.02); }
.item__stop {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink);
}
.item__stop::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cat, var(--accent));
}
.item__body { padding-top: var(--step-16); display: flex; flex-direction: column; gap: 10px; }
.item__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cat, var(--accent));
}
.item__kicker .label { color: var(--cat, var(--accent)); }
.item__rule { flex: 1; height: 1px; background: var(--line); }
.item__title {
  font-weight: 600;
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.item__open {
  display: inline;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease), color .2s var(--ease);
}
.item__open:hover, .item__open:focus-visible { background-size: 100% 2px; color: var(--accent-deep); }
.item__summary {
  color: var(--ink-2);
  font-size: .95rem;
  line-height: 1.58;
  max-width: 62ch;
}
.item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.item__meta .sep { color: var(--line-strong); }

/* Category colour roles */
.cat--Culture  { --cat: var(--cat-culture); }
.cat--Food     { --cat: var(--cat-food); }
.cat--Movement { --cat: var(--cat-movement); }
.cat--People   { --cat: var(--cat-people); }
.cat--Places   { --cat: var(--cat-places); }

/* Lead item — image beside text */
.item--lead { display: grid; grid-template-columns: 1.32fr 1fr; gap: clamp(24px, 3.2vw, 56px); align-items: stretch; }
.item--lead .item__media img { aspect-ratio: 16 / 11; height: 100%; }
.item--lead .item__body { padding-top: 0; justify-content: center; gap: 14px; }
.item--lead .item__title { font-size: clamp(1.8rem, 3.6vw, 3rem); }

/* Half items */
.item--half { grid-column: span 6; }

/* Feature band — full-bleed image over a quiet caption row */
.item--band .item__media img { aspect-ratio: 21 / 8; }
.item--band .item__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--step-16) var(--step-48);
  align-items: start;
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--step-24);
}
.item--band .item__kicker { grid-column: 1 / -1; }
.item--band .item__title { grid-column: 1; }
.item--band .item__summary { grid-column: 2; }
.item--band .item__meta { grid-column: 1 / -1; padding-top: 4px; }

/* Filtered / searched layouts snap to a tidy grid */
.brief.is-filtered .item { grid-column: span 6; }
.brief.is-filtered .item--lead,
.brief.is-filtered .item:only-child { grid-column: span 12; }
.brief.is-filtered .item:only-child { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,3vw,48px); }
.brief.is-filtered .item:only-child .item__body { padding-top: 0; justify-content: center; }
.brief.is-filtered .item--band .item__body { grid-template-columns: 1fr; }
.brief.is-filtered .item--band .item__title,
.brief.is-filtered .item--band .item__summary { grid-column: 1; }

/* ---------- Empty state ---------- */
.empty {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(40px, 7vw, 80px) var(--step-32);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--step-16);
}
.empty__mark {
  font-family: var(--mono);
  font-size: 34px;
  color: var(--accent);
  line-height: 1;
}
.empty__title { font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.01em; }
.empty__text { color: var(--ink-2); max-width: 44ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn__icon { width: 16px; height: 12px; }
.btn:hover { background: var(--ink); color: var(--on-accent); }
.btn--solid { background: var(--ink); color: var(--on-accent); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); }
.btn--ghost { border-color: transparent; padding-inline: 0; }
.btn--ghost:hover { background: transparent; color: var(--accent-deep); }
.btn--save { border-color: var(--line-strong); }
.btn--save .save-mark { fill: transparent; transition: fill .18s var(--ease), stroke .18s var(--ease); }
.btn--save[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--save[aria-pressed="true"] .save-mark { fill: var(--on-accent); stroke: var(--on-accent); }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.item__media:focus-visible { outline-offset: 0; }

/* ============================================================
   Reader (detail view)
   ============================================================ */
.reader {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.reader[hidden] { display: none; }
.reader__bar {
  position: relative;
  z-index: 2;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  flex: none;
}
.reader__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--step-16);
  padding-block: 12px;
}
.reader__progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  position: relative;
  max-width: 280px;
}
.reader__progress::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--read, 0%);
  background: var(--accent);
  transition: width .1s linear;
}
.reader__scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}
body.reader-open { overflow: hidden; }

/* Article */
.article { max-width: 820px; padding-top: var(--step-64); padding-bottom: var(--step-96); }
.article__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--cat, var(--accent));
  margin-bottom: var(--step-16);
}
.article__kicker .label { color: var(--cat, var(--accent)); }
.article__stop {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid var(--cat, var(--accent));
  color: var(--cat, var(--accent));
  width: 26px; height: 26px; border-radius: 50%;
}
.article__title {
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: -.03em;
  text-wrap: balance;
  margin-bottom: var(--step-24);
}
.article__dek {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-2);
  font-style: italic;
  max-width: 52ch;
  margin-bottom: var(--step-24);
}
.article__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: var(--step-32);
}
.article__byline .sep { color: var(--line-strong); }
.article__byline .who { color: var(--ink); }

.article__figure { margin: 0 0 var(--step-32); }
.article__figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  filter: saturate(.92) contrast(1.03) sepia(.04);
}
.article__caption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.article__caption::before { content: "—"; color: var(--accent); }

.article__prose { max-width: 68ch; }
.article__prose p {
  font-size: clamp(1.05rem, 1.35vw, 1.17rem);
  line-height: 1.72;
  color: #241f18;
  margin-bottom: 1.35em;
}
.article__prose p:first-of-type::first-letter {
  float: left;
  font-size: 3.6em;
  line-height: .78;
  font-weight: 600;
  padding: .04em .1em 0 0;
  color: var(--accent-deep);
}
.article__end {
  margin-top: var(--step-48);
  display: flex;
  align-items: center;
  gap: var(--step-16);
}
.article__end .route--short { flex: none; }
.article__end .label { color: var(--ink-3); }
.article__next {
  margin-top: var(--step-64);
  border-top: 1px solid var(--line);
  padding-top: var(--step-24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article__next .label { color: var(--ink-3); }
.article__next button {
  align-self: flex-start;
  background: none; border: 0; padding: 0; cursor: pointer;
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.article__next button:hover { color: var(--accent-deep); border-color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--step-48) 0 var(--step-64);
  position: relative;
  z-index: 2;
}
.footer .route {
  background:
    radial-gradient(circle, var(--paper) 1.9px, transparent 2.4px) 0 50% / 40px 9px repeat-x,
    linear-gradient(rgba(242,236,225,.3), rgba(242,236,225,.3)) 0 50% / 100% 1px no-repeat;
  margin-bottom: var(--step-32);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: var(--step-32);
}
.footer__mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -.03em;
}
.footer__note { color: rgba(242,236,225,.66); font-size: .9rem; line-height: 1.6; max-width: 40ch; margin-top: 8px; }
.footer .label { color: rgba(242,236,225,.6); margin-bottom: 12px; }
.footer__list { display: flex; flex-wrap: wrap; gap: 8px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .toolbar { grid-template-columns: minmax(0,1fr) minmax(0,1fr); row-gap: var(--step-24); }
  .field--saved { grid-column: 1 / -1; align-items: flex-start; }
  .intro { grid-template-columns: 1fr; gap: var(--step-16); align-items: start; }
  .intro__title { max-width: 24ch; }
  .item--band .item__body { grid-template-columns: 1fr; }
  .item--band .item__title, .item--band .item__summary { grid-column: 1; }
}

@media (max-width: 820px) {
  .masthead__main { flex-direction: column; align-items: flex-start; gap: var(--step-16); padding-bottom: var(--step-24); }
  .masthead__tagline { text-align: left; padding-bottom: 0; }
  .item--half { grid-column: span 12; }
  .item--lead { grid-template-columns: 1fr; gap: var(--step-16); }
  .item--lead .item__media img { aspect-ratio: 16 / 10; }
  .brief.is-filtered .item { grid-column: span 12; }
  .brief.is-filtered .item:only-child { grid-template-columns: 1fr; }
  .item--band .item__media img { aspect-ratio: 16 / 9; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--step-24); }
}

@media (max-width: 560px) {
  :root { --step-96: 64px; }
  body { font-size: 16px; }
  .toolbar { gap: var(--step-16); }
  .wordmark { font-size: clamp(2.6rem, 17vw, 4rem); }
  .masthead__utility { flex-wrap: wrap; }
  .intro { padding-top: var(--step-48); padding-bottom: var(--step-32); }
  .browse__status { margin-bottom: var(--step-32); }
  .article { padding-top: var(--step-32); }
  .reader__progress { display: none; }
  .article__prose p:first-of-type::first-letter { font-size: 3em; }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .item__media:hover img, .item__media:focus-visible img { transform: none; }
}

/* Reader enter animation */
@media (prefers-reduced-motion: no-preference) {
  .reader.is-entering .reader__scroll { animation: readerIn .34s var(--ease) both; }
  @keyframes readerIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}
