@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("assets/work-sans.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #15181b;
  --paper: #f5f5ef;
  --white: #fffef8;
  --signal: #ff4f2e;
  --signal-text: #b82914;
  --blue: #9bc8ff;
  --acid: #d8ff53;
  --lavender: #c8b9ff;
  --line: #15181b;
  --muted: #656b6f;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-body: "Work Sans", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  cursor: pointer;
  touch-action: manipulation;
}

button:active,
a:active {
  opacity: 0.78;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.site-header {
  min-height: 88px;
  padding: 0 3.5vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--paper);
}

.brand {
  width: max-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--white);
}

.brand-mark span {
  border: 1px solid var(--white);
}

.brand-mark span:nth-child(1),
.brand-mark span:nth-child(4) {
  background: var(--signal);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.issue-label,
.header-link,
.eyebrow,
.coordinates,
.story-meta,
.image-label,
.story-number,
.detail-topbar,
.detail-category,
.detail-aside dt,
.detail-kicker,
.detail-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.issue-label {
  margin: 0;
  color: #b9bdc0;
}

.issue-label span {
  color: var(--acid);
}

.header-link {
  justify-self: end;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
  text-underline-offset: 0.3rem;
}

.hero {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.55fr);
  color: var(--white);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 7vw, 6.5rem) 3.5vw 3rem;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--blue);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(255, 79, 46, 0.17);
}

.hero h1 {
  max-width: 980px;
  margin: 2rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.9rem, 6.8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.075em;
}

.hero-note {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 2.4rem;
  color: var(--ink);
  background: var(--acid);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-note > p {
  max-width: 35rem;
  margin: 0 0 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
}

.coordinates {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.wayfinder {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.route,
.station,
.map-label {
  position: absolute;
  display: block;
}

.route-a {
  width: 62%;
  height: 3px;
  top: 39%;
  left: 25%;
  background: var(--signal);
  transform: rotate(-14deg);
}

.route-b {
  width: 50%;
  height: 2px;
  top: 45%;
  left: 2%;
  background: var(--blue);
  transform: rotate(28deg);
}

.route-c {
  width: 38%;
  height: 2px;
  top: 15%;
  right: 12%;
  background: var(--lavender);
  transform: rotate(75deg);
}

.route-d {
  width: 30%;
  height: 2px;
  bottom: 17%;
  left: 22%;
  background: var(--acid);
  transform: rotate(-58deg);
}

.station {
  width: 17px;
  height: 17px;
  background: var(--ink);
  border: 4px solid var(--white);
  border-radius: 50%;
}

.s1 { top: 20%; left: 61%; }
.s2 { top: 63%; left: 49%; border-color: var(--signal); }
.s3 { top: 31%; right: 13%; border-color: var(--acid); }
.s4 { bottom: 8%; left: 16%; border-color: var(--blue); }

.map-label {
  font: 0.58rem var(--font-mono);
  letter-spacing: 0.14em;
}

.m1 { top: 15%; left: 62.5%; }
.m2 { top: 65%; left: 51%; }
.m3 { bottom: 10%; left: 18%; }

.browse {
  padding: clamp(3rem, 4.5vw, 4.5rem) 3.5vw 7rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 28rem);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.3vw, 4.6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.section-note {
  max-width: 29rem;
  margin: 0;
  padding-left: 1rem;
  color: var(--muted);
  border-left: 4px solid var(--signal);
}

.control-panel {
  min-height: 110px;
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) minmax(180px, 0.8fr) minmax(190px, 0.7fr) 140px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 7px 7px 0 var(--ink);
}

.search-field,
.filter-field {
  min-width: 0;
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--line);
}

.search-field label,
.filter-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.input-wrap,
.select-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.input-wrap svg,
.select-wrap svg,
.saved-toggle svg,
.open-story svg,
.close-button svg,
.save-button svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.input-wrap input,
.select-wrap select {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
}

.input-wrap input::placeholder {
  color: #8a8f92;
}

.input-wrap input:focus,
.select-wrap select:focus {
  outline: 0;
}

.search-field:focus-within,
.filter-field:focus-within {
  box-shadow: inset 0 -5px 0 var(--signal);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 2.5rem;
}

.select-wrap svg {
  position: absolute;
  right: 0;
  pointer-events: none;
}

.saved-toggle {
  min-height: 108px;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 650;
  text-align: left;
  transition: background-color 160ms ease, color 160ms ease;
}

.saved-toggle:hover {
  background: var(--blue);
}

.saved-toggle[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
}

.saved-toggle[aria-pressed="true"] svg {
  fill: var(--acid);
}

.saved-count {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 0.72rem var(--font-mono);
}

.result-count {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  background: var(--signal);
}

.result-count strong {
  font: 600 2.8rem/1 var(--font-display);
  letter-spacing: -0.06em;
}

.result-count span {
  font: 0.62rem/1.3 var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 3.5rem;
}

.story-card {
  grid-column: span 4;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-card:nth-child(1),
.story-card:nth-child(6) {
  grid-column: span 8;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.story-card:nth-child(4),
.story-card:nth-child(8) {
  grid-column: span 5;
}

.story-card:nth-child(5),
.story-card:nth-child(7) {
  grid-column: span 7;
}

.story-visual {
  min-height: 260px;
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-bottom: 1px solid var(--line);
}

.story-card:nth-child(1) .story-visual,
.story-card:nth-child(6) .story-visual {
  min-height: 430px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.story-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, transparent 55%, rgba(21, 24, 27, 0.4));
  pointer-events: none;
}

.story-visual img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  filter: saturate(0.15) contrast(1.12);
  mix-blend-mode: multiply;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), filter 200ms ease;
}

.story-card:nth-child(3n + 2) .story-visual { background: var(--signal); }
.story-card:nth-child(3n + 3) .story-visual { background: var(--lavender); }

.story-card:hover .story-visual img {
  transform: scale(1.025);
  filter: saturate(0.4) contrast(1.08);
}

.image-label,
.story-number {
  position: absolute;
  z-index: 1;
  top: 0.8rem;
  padding: 0.35rem 0.5rem;
  color: var(--white);
  background: var(--ink);
}

.image-label { left: 0.8rem; }

.story-number {
  right: 0.8rem;
  color: var(--ink);
  background: var(--acid);
}

.story-content {
  min-height: 310px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}

.story-card:nth-child(1) .story-content,
.story-card:nth-child(6) .story-content {
  min-height: auto;
  justify-content: center;
  padding: clamp(1.5rem, 3vw, 3rem);
}

.story-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.story-category {
  color: var(--ink);
}

.story-content h3 {
  margin: 1.1rem 0 0.8rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.1vw, 2.35rem);
  font-weight: 630;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.story-summary {
  margin: 0;
  color: #4b5154;
  font-size: 0.96rem;
}

.story-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.story-author {
  font: 0.68rem var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.open-story {
  min-height: 44px;
  padding: 0.65rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-family: var(--font-display);
  font-weight: 650;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.open-story:hover {
  color: var(--ink);
  background: var(--acid);
}

.open-story svg {
  width: 18px;
  transition: transform 160ms ease;
}

.open-story:hover svg {
  transform: translateX(3px);
}

.empty-state {
  margin-top: 3.5rem;
  padding: clamp(2rem, 4vw, 4rem);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  background: var(--blue);
  border: 1px solid var(--line);
  box-shadow: 7px 7px 0 var(--ink);
}

.empty-state:not([hidden]) {
  display: grid;
}

.empty-symbol {
  font: 5rem/1 var(--font-display);
}

.empty-state .eyebrow,
.empty-state h3,
.empty-state p {
  margin: 0;
}

.empty-state h3 {
  font: 600 clamp(1.6rem, 3vw, 2.8rem)/1 var(--font-display);
  letter-spacing: -0.04em;
}

.empty-state p:last-child {
  margin-top: 0.6rem;
}

.empty-state button {
  min-height: 48px;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-weight: 650;
}

.site-footer {
  padding: 3rem 3.5vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 2rem;
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer p:nth-child(2) {
  color: #b9bdc0;
}

.site-footer p:last-child {
  justify-self: end;
  font: 0.7rem var(--font-mono);
}

.footer-brand {
  font: 650 1.6rem/1 var(--font-display);
  letter-spacing: -0.04em;
}

.detail-dialog {
  width: min(1120px, calc(100vw - 3rem));
  max-width: none;
  height: calc(100dvh - 3rem);
  max-height: none;
  margin: 1.5rem 1.5rem 1.5rem auto;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: -10px 10px 0 var(--signal);
  overflow: hidden;
}

.detail-dialog::backdrop {
  background: rgba(21, 24, 27, 0.76);
  backdrop-filter: blur(3px);
}

.detail-dialog[open] {
  animation: drawer-in 260ms cubic-bezier(.2,.8,.2,1) both;
}

@keyframes drawer-in {
  from { transform: translateX(35px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.detail-shell {
  height: 100%;
  overflow-y: auto;
}

.detail-topbar {
  min-height: 64px;
  position: sticky;
  z-index: 5;
  top: 0;
  padding-left: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  background: var(--ink);
}

.detail-topbar p {
  margin: 0;
}

.detail-topbar p span {
  color: var(--acid);
}

.close-button {
  align-self: stretch;
  min-width: 130px;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--ink);
  background: var(--signal);
  border: 0;
  font-weight: 650;
  transition: background-color 160ms ease;
}

.close-button:hover {
  background: var(--acid);
}

.detail-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.detail-aside {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--blue);
  border-right: 1px solid var(--line);
}

.detail-category {
  margin: 0 0 3rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.detail-aside dl,
.detail-aside dd {
  margin: 0;
}

.detail-aside dl > div {
  margin-bottom: 1.5rem;
}

.detail-aside dt {
  margin-bottom: 0.25rem;
  color: #4b5154;
}

.detail-aside dd {
  font-family: var(--font-display);
  font-weight: 600;
}

.save-button {
  width: 100%;
  min-height: 52px;
  position: sticky;
  top: 5.5rem;
  margin-top: 2rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  color: var(--white);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-weight: 650;
  transition: color 160ms ease, background-color 160ms ease;
}

.save-button:hover,
.save-button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--acid);
}

.save-button[aria-pressed="true"] svg {
  fill: var(--ink);
}

.detail-article {
  min-width: 0;
  padding: clamp(2rem, 6vw, 6.5rem) clamp(1.5rem, 6vw, 6.5rem) 6rem;
}

.detail-kicker {
  margin: 0 0 1.3rem;
  color: var(--signal-text);
}

.detail-article h2 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.detail-summary {
  max-width: 710px;
  margin: 2rem 0 3rem;
  padding-left: 1.2rem;
  border-left: 5px solid var(--signal);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 540;
  line-height: 1.35;
}

.detail-figure {
  margin: 0 0 3.5rem;
  background: var(--lavender);
  border: 1px solid var(--line);
}

.detail-figure img {
  width: 100%;
  height: clamp(280px, 42vw, 520px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  mix-blend-mode: multiply;
}

.detail-figure figcaption {
  padding: 0.8rem;
  border-top: 1px solid var(--line);
}

.article-body {
  max-width: 690px;
  margin: 0 auto;
  font-size: clamp(1.08rem, 1.4vw, 1.2rem);
  line-height: 1.8;
}

.article-body p {
  margin: 0 0 1.5rem;
}

.article-body p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--signal);
  font: 600 4.5rem/0.8 var(--font-display);
}

.article-end {
  max-width: 690px;
  margin: 4rem auto 0;
  display: flex;
  gap: 0.5rem;
}

.article-end span {
  width: 14px;
  height: 14px;
  background: var(--signal);
}

.article-end span:nth-child(2) { background: var(--blue); }
.article-end span:nth-child(3) { background: var(--acid); }

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

  .hero-note {
    width: min(580px, 72%);
    justify-self: end;
  }

  .control-panel {
    grid-template-columns: 1.3fr 1fr;
  }

  .filter-field,
  .saved-toggle {
    border-right: 0;
  }

  .search-field,
  .filter-field {
    border-bottom: 1px solid var(--line);
  }

  .search-field,
  .saved-toggle {
    border-right: 1px solid var(--line);
  }

  .saved-toggle {
    min-height: 76px;
  }

  .story-card,
  .story-card:nth-child(4),
  .story-card:nth-child(5),
  .story-card:nth-child(7),
  .story-card:nth-child(8) {
    grid-column: span 6;
  }

  .story-card:nth-child(1),
  .story-card:nth-child(6) {
    grid-column: span 12;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 74px;
    padding: 0 1rem;
    grid-template-columns: 1fr auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .issue-label {
    display: none;
  }

  .header-link {
    font-size: 0.62rem;
  }

  .hero {
    min-height: 520px;
  }

  .hero-copy {
    padding: 3rem 1rem 2.2rem;
  }

  .hero h1 {
    margin-top: 1.5rem;
    font-size: clamp(3rem, 12.5vw, 4rem);
  }

  .hero-note {
    width: calc(100% - 1rem);
    padding: 1.25rem;
  }

  .hero-note > p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  .coordinates {
    font-size: 0.58rem;
  }

  .browse {
    padding: 3.5rem 1rem 5rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 2rem;
  }

  .section-note {
    font-size: 0.9rem;
  }

  .control-panel {
    grid-template-columns: 1fr;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .search-field,
  .filter-field,
  .saved-toggle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .search-field,
  .filter-field {
    padding: 0.75rem 1rem;
  }

  .saved-toggle {
    min-height: 64px;
  }

  .result-count {
    min-height: 70px;
  }

  .story-grid {
    display: block;
    margin-top: 2.5rem;
    border-bottom: 0;
  }

  .story-card,
  .story-card:nth-child(1),
  .story-card:nth-child(6) {
    display: flex;
  }

  .story-card:nth-child(1) .story-visual,
  .story-card:nth-child(6) .story-visual,
  .story-visual {
    min-height: 255px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .story-content,
  .story-card:nth-child(1) .story-content,
  .story-card:nth-child(6) .story-content {
    min-height: 320px;
    padding: 1.3rem;
    justify-content: initial;
  }

  .story-content h3 {
    font-size: 1.85rem;
  }

  .story-footer {
    align-items: flex-end;
  }

  .empty-state:not([hidden]) {
    grid-template-columns: 1fr;
  }

  .empty-symbol {
    font-size: 3rem;
  }

  .empty-state button {
    width: 100%;
  }

  .site-footer {
    padding: 2.5rem 1rem;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .site-footer p:last-child {
    justify-self: start;
  }

  .detail-dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border: 0;
    box-shadow: none;
  }

  .detail-topbar {
    min-height: 58px;
    padding-left: 1rem;
  }

  .close-button {
    min-width: 108px;
  }

  .detail-layout {
    display: flex;
    flex-direction: column;
  }

  .detail-aside {
    padding: 1.2rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .detail-category {
    margin-bottom: 1rem;
  }

  .detail-aside dl {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.8rem;
  }

  .detail-aside dl > div {
    margin: 0;
  }

  .detail-aside dt {
    font-size: 0.58rem;
  }

  .detail-aside dd {
    font-size: 0.76rem;
  }

  .save-button {
    width: 100%;
    position: static;
    margin-top: 1rem;
  }

  .detail-article {
    padding: 2.5rem 1rem 4rem;
  }

  .detail-article h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .detail-summary {
    margin: 1.5rem 0 2.5rem;
  }

  .detail-figure {
    margin-bottom: 2.5rem;
  }

  .detail-figure img {
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
