/* ==========================================================================
   Wenxuan Xu's Library — a quiet citation catalogue
   Palette and typography borrowed from www.wenxuanxu.uk, simplified.
   ========================================================================== */

:root {
  --font-latin: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-cjk: "Songti TC", "Songti SC", "Source Han Serif TC", "Noto Serif TC", "Noto Serif CJK TC", STSong, serif;
  --font-body: var(--font-latin);
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0c;
  --bg-2: #101014;
  --bg-3: #16161d;
  --bg-elevated: #14141a;
  --text: #ece9e4;
  --text-strong: #ffffff;
  --muted: #a09caa;
  --faint: #6f6b79;
  --line: rgba(236, 233, 228, 0.11);
  --line-strong: rgba(236, 233, 228, 0.22);
  --accent: #9a6bff;
  --accent-2: #c3a8ff;
  --accent-soft: rgba(154, 107, 255, 0.12);
  --emphasis: #e9c46a;
  --emphasis-soft: rgba(233, 196, 106, 0.12);
  --on-accent: #0a0a0c;
  --grid: rgba(255, 255, 255, 0.035);
  --glow: rgba(121, 79, 214, 0.2);
  --backdrop: rgba(4, 4, 7, 0.72);
  --shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5efe2;
  --bg-2: #efe7d6;
  --bg-3: #e8ddc8;
  --bg-elevated: #fbf7ee;
  --text: #191611;
  --text-strong: #000000;
  --muted: #5d5649;
  --faint: #8a8171;
  --line: rgba(25, 22, 17, 0.16);
  --line-strong: rgba(25, 22, 17, 0.3);
  --accent: #a87a13;
  --accent-2: #8a6208;
  --accent-soft: rgba(183, 139, 31, 0.14);
  --emphasis: #1d4ed8;
  --emphasis-soft: rgba(29, 78, 216, 0.1);
  --on-accent: #191307;
  --grid: rgba(25, 22, 17, 0.045);
  --glow: rgba(183, 139, 31, 0.16);
  --backdrop: rgba(32, 27, 18, 0.5);
  --shadow: 0 40px 120px rgba(60, 48, 25, 0.18);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

html[lang="zh-Hant"] body,
html[lang="zh-Hant"] input,
html[lang="zh-Hant"] button,
html[lang="zh-Hant"] select,
html[lang="zh-Hant"] textarea {
  font-family: var(--font-cjk);
  line-height: 1.85;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 70%);
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(820px 460px at 78% -8%, var(--glow), transparent 70%),
    radial-gradient(620px 380px at 4% 0%, var(--accent-soft), transparent 72%);
}

a { color: var(--accent-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

img { max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  color: var(--text-strong);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0.8rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1.12;
  flex: 0 0 auto;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.brand-text { display: grid; }
.brand-name {
  font-family: var(--font-latin);
  font-size: 1.02rem;
  letter-spacing: 0.045em;
  color: var(--text-strong);
}
.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--faint);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--text-strong); border-bottom-color: var(--accent); }

.header-controls { display: flex; align-items: center; gap: 0.4rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover { color: var(--text-strong); border-color: var(--line-strong); background: var(--bg-2); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.theme-icon-light { display: none; }
html[data-theme="light"] .theme-icon-dark { display: none; }
html[data-theme="light"] .theme-icon-light { display: block; }

/* ---------- hero & plaque ---------- */

main { display: block; }

.hero {
  position: relative;
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem);
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: 4%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow:
    0 0 0 70px color-mix(in srgb, var(--accent) 3.2%, transparent),
    0 0 0 140px color-mix(in srgb, var(--accent) 2%, transparent);
  pointer-events: none;
  z-index: -1;
}

.plaque {
  position: relative;
  width: min(620px, 100%);
  padding: 2rem 2.2rem 1.75rem;
  border: 1px solid var(--line-strong);
  outline: 1px solid var(--line);
  outline-offset: 5px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-elevated) 96%, transparent), var(--bg-2));
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.plaque-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  border: 1px solid var(--emphasis);
  opacity: 0.85;
}
.plaque-corner--tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.plaque-corner--tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.plaque-corner--bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.plaque-corner--br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.plaque-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--emphasis);
  box-shadow: 0 0 0 4px var(--emphasis-soft);
  margin-bottom: 0.55rem;
}

.plaque-line-one {
  font-family: var(--font-latin);
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  letter-spacing: 0.055em;
  color: var(--text-strong);
  line-height: 1.2;
}

.plaque-line-two {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-intro {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.8;
}
.hero-intro a { color: var(--text-strong); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.hero-stats > div {
  display: grid;
  gap: 0.1rem;
  padding: 0.2rem clamp(1rem, 3vw, 1.9rem);
  border-right: 1px solid var(--line);
}
.hero-stats > div:last-child { border-right: 0; }
.hero-stats strong {
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.1;
}
.hero-stats span {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- catalogue ---------- */

.catalogue {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1rem 0 clamp(2.5rem, 5vw, 4rem);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
  margin-bottom: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emphasis);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-latin);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-strong);
}

.section-hint { margin: 0; color: var(--faint); font-size: 0.78rem; }

.toolbar {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  padding: 0.85rem 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.type-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.tab {
  padding: 0.32rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.tab:hover { color: var(--text-strong); border-color: var(--line-strong); }
.tab.is-active { color: var(--text-strong); border-color: var(--accent); background: var(--accent-soft); }

.toolbar-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 260px;
  min-width: 200px;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: var(--radius);
}
.search-field:focus-within { border-color: var(--accent); }
.search-field svg { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-linecap: round; }
.search-field input {
  width: 100%;
  padding: 0.48rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}
.search-field input::placeholder { color: var(--faint); }

.select-field select {
  padding: 0.48rem 0.6rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  border-radius: var(--radius);
  max-width: 15rem;
}
.select-field select:focus { outline: 1px solid var(--accent); outline-offset: 1px; }

.result-count {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.cite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 0.85rem;
}

.cite-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  min-height: 10.5rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-2) 72%, transparent);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.cite-card:hover,
.cite-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  background: var(--bg-2);
  transform: translateY(-2px);
  outline: none;
}

.cite-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.type-chip {
  display: inline-block;
  padding: 0.08rem 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.cite-year {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.cite-title {
  margin: 0;
  font-family: var(--font-latin);
  font-size: 1.04rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--text-strong);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
html[lang="zh-Hant"] .cite-title { font-family: var(--font-cjk); font-size: 1rem; }

.cite-authors,
.cite-venue {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cite-venue { color: var(--faint); font-size: 0.75rem; }

.cite-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.cite-chips .tag {
  display: inline-block;
  padding: 0.04rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.64rem;
  color: var(--faint);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty {
  margin: 2.2rem 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.9rem;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  font-size: 0.74rem;
  color: var(--faint);
}

.btn {
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn:hover { color: var(--text-strong); border-color: var(--accent); background: var(--accent-soft); }

/* ---------- about ---------- */

.about {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.about-card {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  max-width: 46rem;
}
.about-card h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-latin);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--text-strong);
}
.about-card p { color: var(--muted); font-size: 0.92rem; }
.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.about-links a {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  text-decoration: none;
}
.about-links a:hover { color: var(--accent-2); }

/* ---------- footer ---------- */

.site-footer {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.2rem 0 1.8rem;
  border-top: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- modal ---------- */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: var(--backdrop);
  backdrop-filter: blur(6px);
}

.modal {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.modal-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem 0.8rem;
  background: linear-gradient(180deg, var(--bg-elevated) 70%, transparent);
  border-bottom: 1px solid var(--line);
}

.modal-kicker {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emphasis);
}

.modal-title {
  margin: 0;
  font-family: var(--font-latin);
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-strong);
}
html[lang="zh-Hant"] .modal-title { font-family: var(--font-cjk); }

.modal-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}
.modal-close:hover { color: var(--text-strong); border-color: var(--line-strong); }

.modal-body { padding: 1.1rem 1.3rem 1.4rem; }

.detail-subtitle { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.92rem; }
.detail-authors { margin: 0 0 0.2rem; color: var(--text); font-size: 0.9rem; }
.detail-venue { margin: 0 0 1rem; color: var(--faint); font-size: 0.82rem; }

.citation-box {
  position: relative;
  margin: 0 0 1rem;
  padding: 1rem 1.05rem;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-family: var(--font-latin);
  font-size: 0.95rem;
  line-height: 1.8;
}
html[lang="zh-Hant"] .citation-box { font-family: var(--font-cjk); }
.citation-box cite { font-style: italic; }

.citation-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: -0.45rem 0 1.2rem; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem 1.2rem;
  margin: 0 0 1.1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-grid dt {
  margin: 0 0 0.15rem;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.detail-grid dd { margin: 0; font-size: 0.86rem; color: var(--text); overflow-wrap: anywhere; }

.detail-section { margin-bottom: 1.1rem; }
.detail-section h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-latin);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-section p { margin: 0; font-size: 0.9rem; color: var(--text); line-height: 1.8; }

.detail-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.detail-chips .tag {
  display: inline-block;
  padding: 0.08rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.68rem;
  color: var(--muted);
}

.notes-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line-strong);
  background: color-mix(in srgb, var(--accent-soft) 40%, transparent);
  font-size: 0.84rem;
  color: var(--muted);
}
.notes-callout a { color: var(--accent-2); text-decoration: none; }
.notes-callout a:hover { text-decoration: underline; }

/* ---------- toast & misc ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 90;
  transform: translateX(-50%);
  padding: 0.55rem 1rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
}

.noscript {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 1rem auto;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .main-nav { display: none; }
  .toolbar { position: static; }
  .hero::before { display: none; }
}

@media (max-width: 620px) {
  .header-inner { width: calc(100% - 1.4rem); gap: 0.6rem; }
  .brand-name { font-size: 0.92rem; }
  .brand-domain { display: none; }
  .brand-icon { width: 34px; height: 34px; }
  .hero,
  .catalogue,
  .about,
  .site-footer { width: calc(100% - 1.4rem); }
  .plaque { padding: 1.5rem 1.2rem 1.3rem; }
  .plaque-line-one { font-size: 1.42rem; }
  .hero-stats { width: 100%; }
  .hero-stats > div { flex: 1 1 50%; border-right: 0; padding: 0.45rem 0.4rem; }
  .hero-stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .cite-grid { grid-template-columns: 1fr; }
  .modal-root { padding: 0.6rem; }
  .modal { max-height: 94vh; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition: none !important; scroll-behavior: auto !important; }
}
