:root {
  --font-body: "Noto Sans SC", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --font-display: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --paper: #f7faf2;
  --paper-ink: #123638;
  --paper-muted: #426264;
  --night: #17646d;
  --night-raised: #1e6c72;
  --night-ink: #fffdf3;
  --night-muted: #d8ece5;
  --accent: #ffd166;
  --accent-ink: #173538;
  --danger: #9e3b2b;
  --margin: clamp(1.25rem, 3vw, 3rem);
  --gutter: clamp(1rem, 2.2vw, 2.25rem);
  --section-space: clamp(4.5rem, 10vw, 9rem);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #277d80;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #277d80;
  color: var(--night-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.light-room {
  background: var(--paper);
  color: var(--paper-ink);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(100%, 94rem);
  margin-inline: auto;
  padding-inline: var(--margin);
}

.page-atmosphere {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #277d80;
  pointer-events: none;
}

.page-atmosphere .scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: saturate(1.34) brightness(1.16) contrast(1.02);
}

.page-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(4 40 42 / 10%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #0f4b54;
  color: var(--night-ink);
}

.nav-wrap {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.7rem;
  color: var(--night-ink);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-code {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.055em;
}

.wordmark-name {
  color: var(--night-muted);
  font-size: 0.86rem;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.8rem);
}

.nav-more {
  position: relative;
}

.nav-more summary,
.nav-link,
.tool-button {
  border: 0;
  background: none;
  color: var(--night-muted);
  cursor: pointer;
  font-size: 0.92rem;
  line-height: 1;
  list-style: none;
  text-decoration: none;
}

.nav-more summary::-webkit-details-marker {
  display: none;
}

.nav-link:hover,
.nav-more summary:hover,
.tool-button:hover,
.nav-link[aria-current="page"],
.nav-more a[aria-current="page"] {
  color: var(--night-ink);
}

.nav-more-panel {
  position: absolute;
  top: calc(100% + 1rem);
  left: -1rem;
  display: grid;
  min-width: 13rem;
  padding: 0.75rem;
  background: #123f46;
}

.nav-more-panel a {
  padding: 0.55rem 0.7rem;
  color: var(--night-muted);
  text-decoration: none;
}

.nav-more-panel a:hover {
  color: var(--night-ink);
}

.nav-tools {
  display: none;
  gap: 1rem;
}

.menu-button {
  display: none;
}

.mobile-nav {
  display: grid;
  gap: 1rem;
  padding: 1rem var(--margin) 1.5rem;
  background: #0d4048;
}

.mobile-nav a,
.mobile-nav button {
  padding-block: 0.65rem;
  color: var(--night-ink);
  text-decoration: none;
}

.mobile-group-label {
  margin: 0.6rem 0 0;
  color: var(--accent);
  font-size: 0.82rem;
}

.home-main {
  min-height: calc(100svh - 4.5rem);
}

.home-hero {
  display: grid;
  min-height: max(38rem, calc(100svh - 4.5rem));
  align-content: center;
  padding-block: clamp(5rem, 12vw, 11rem);
}

.home-title {
  max-width: 9ch;
  margin: 0;
  color: #fffef7;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 7.4vw, 8.2rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  word-break: keep-all;
}

.home-creed {
  max-width: 34ch;
  margin: clamp(1.6rem, 3vw, 2.8rem) 0 0;
  color: #fff9df;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2vw, 1.85rem);
  line-height: 1.55;
}

.home-timeline {
  min-height: 68svh;
  padding-block: clamp(4rem, 8vw, 7rem);
  background: var(--paper);
  color: var(--paper-ink);
}

.home-timeline-title {
  max-width: none;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

.site-map {
  padding-block: clamp(3.5rem, 7vw, 6.5rem) 2rem;
  background: #0e4148;
  color: var(--night-ink);
}

.site-map-head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: clamp(2.2rem, 4vw, 4rem);
}

.site-map-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 400;
  line-height: 1;
}

.site-map-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.map-group h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.35;
}

.map-group ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-group a {
  display: inline-block;
  padding-block: 0.32rem;
  color: var(--night-muted);
  text-decoration: none;
}

.map-group a:hover {
  color: var(--night-ink);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  align-items: baseline;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.4rem;
  background: transparent;
}

.quick-links a,
.quick-links button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 0;
  background: none;
  color: var(--night-ink);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.quick-links a:hover,
.quick-links button:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

.quick-links svg {
  width: 1.75rem;
  height: 1.75rem;
}

.quick-links img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  clip-path: circle(50%);
  object-fit: cover;
}

.quick-links a svg {
  fill: currentColor;
}

.quick-links button svg {
  fill: none;
  stroke: currentColor;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  margin-top: 2.3rem;
  color: var(--night-muted);
  font-size: 0.82rem;
}

.footer-meta a {
  text-decoration: none;
}

.page-hero {
  display: grid;
  min-height: min(66svh, 690px);
  align-content: end;
  padding-top: 8rem;
  padding-bottom: clamp(3.4rem, 7vw, 6.5rem);
}

.page-hero h1 {
  max-width: 18ch;
  margin: 0;
  color: var(--night-ink);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6.6vw, 7.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.page-lede {
  max-width: 34ch;
  margin: 1.3rem 0 0;
  color: var(--night-muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.page-content {
  min-height: 58svh;
  padding-block: var(--section-space);
  background: #f8fbf3;
  color: var(--paper-ink);
}

.construction {
  display: grid;
  min-height: 52svh;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.construction p {
  margin: 0;
}

.construction-zh {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 1.1;
}

.construction-en {
  margin-top: 0.8rem !important;
  color: var(--paper-muted);
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
}

.content-feed {
  display: grid;
  max-width: 62rem;
  margin-inline: auto;
  gap: 1rem;
}

.post-card {
  padding: clamp(1.35rem, 3vw, 2.4rem);
  background: #fff;
}

.post-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.5rem;
}

.post-title {
  max-width: 23ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.25rem);
  font-weight: 400;
  line-height: 1.35;
}

.post-title a,
.source-title a,
.journey-title a,
.constitution-title a {
  text-decoration: none;
}

.post-title a:hover,
.source-title a:hover,
.journey-title a:hover,
.constitution-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.post-summary,
.source-summary,
.journey-summary {
  max-width: 62ch;
  margin: 0.85rem 0 0;
  color: var(--paper-muted);
}

.post-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.post-media-compact {
  grid-template-columns: minmax(0, 0.78fr);
}

.post-media img,
.post-media video {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
  background: #dfe4df;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 1.15rem;
  color: var(--paper-muted);
  font-size: 0.82rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.18rem 0.48rem;
  background: #e9ede8;
  color: #334347;
  font-size: 0.78rem;
}

.source-list {
  display: grid;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0;
  gap: 0.8rem;
  list-style: none;
}

.source-row {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
}

.source-title {
  max-width: 45ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.05rem);
  font-weight: 400;
}

.journey-grid,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.journey-card {
  min-height: 18rem;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  background: #fff;
}

.item-kind {
  margin: 0 0 1.5rem;
  color: var(--paper-muted);
  font-size: 0.84rem;
}

.journey-title {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.35rem);
  font-weight: 400;
  line-height: 1.3;
}

.constitution-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
  gap: var(--gutter);
}

.constitution-current {
  padding: clamp(1.5rem, 4vw, 3.6rem);
  background: #fff;
}

.constitution-title,
.constitution-archive > h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  font-weight: 400;
  line-height: 1.22;
}

.constitution-explanation {
  max-width: 45ch;
  margin: 1.5rem 0 0;
}

.constitution-archive > h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.constitution-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.constitution-list li {
  margin-top: 0.75rem;
  padding: 1.15rem;
  background: #fff;
}

.constitution-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
}

.constitution-list p {
  margin: 0.45rem 0 0;
  color: var(--paper-muted);
}

.achievement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.achievement-card {
  min-width: 0;
}

.achievement-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--paper-ink);
  cursor: pointer;
  text-align: left;
}

.achievement-open img,
.achievement-monogram {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 5;
  place-items: center;
  object-fit: cover;
  background: #dce4dd;
}

.achievement-monogram {
  color: #66766d;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
}

.achievement-copy {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
}

.achievement-copy strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.achievement-copy > span {
  color: var(--paper-muted);
  font-size: 0.88rem;
}

.achievement-card > .content-meta {
  padding-inline: 1rem;
}

.timeline-vine {
  position: relative;
  display: grid;
  max-width: 64rem;
  margin: 0 auto;
  padding: 2rem 0;
  list-style: none;
}

.timeline-vine::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4.5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 1000' preserveAspectRatio='none'%3E%3Cpath d='M36 0 C10 90 62 150 36 245 C10 340 60 410 35 505 C10 600 62 670 36 760 C15 835 54 910 36 1000' fill='none' stroke='%238da296' stroke-width='2.4'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform: translateX(-50%);
}

.timeline-node {
  position: relative;
  width: calc(50% - 2.5rem);
  margin-block: 0.8rem;
  padding: 1.3rem;
  background: #fff;
}

.timeline-node:nth-child(even) {
  justify-self: end;
}

.timeline-node::after {
  content: "";
  position: absolute;
  top: 1.8rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #597667;
}

.timeline-node:nth-child(odd)::after {
  right: -2.85rem;
}

.timeline-node:nth-child(even)::after {
  left: -2.85rem;
}

.timeline-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 400;
}

.detail-main {
  min-height: 70svh;
  background: var(--paper);
  color: var(--paper-ink);
}

.detail-head {
  padding-block: clamp(5rem, 10vw, 9rem) 2rem;
}

.detail-head h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1.08;
}

.detail-body {
  max-width: 58rem;
  padding-block: 2rem var(--section-space);
}

.detail-lead {
  color: var(--paper-muted);
  font-size: 1.18rem;
}

.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-top: 1.4rem;
}

.arxiv-index-head,
.arxiv-daily-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: clamp(1.8rem, 4vw, 3.4rem);
}

.arxiv-index-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 3.2rem);
  font-weight: 400;
}

.arxiv-index-head p,
.arxiv-daily-head p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.86rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.category-card {
  display: grid;
  min-height: 10.5rem;
  align-content: space-between;
  padding: 1.15rem;
  background: #fff;
  text-decoration: none;
}

.category-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 400;
}

.category-label {
  color: var(--paper-muted);
}

.category-count {
  align-self: end;
  color: var(--paper-ink);
  font-size: 0.82rem;
}

.category-card:hover {
  background: #e8ede6;
}

.paper-list {
  display: grid;
  max-width: 72rem;
  margin-inline: auto;
  gap: 1rem;
}

.paper-card {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  background: #fff;
}

.paper-title {
  max-width: 31ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1.7vw, 1.38rem);
  font-weight: 400;
  line-height: 1.38;
}

.paper-title a {
  text-decoration: none;
}

.paper-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
}

.paper-abstract {
  max-width: 68ch;
  margin: 0.9rem 0 0;
  color: var(--paper-muted);
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border: 0;
  background: var(--paper-ink);
  color: #fff;
  cursor: pointer;
}

.load-more {
  margin-top: 1.4rem;
}

.privacy-copy {
  max-width: 56rem;
}

.privacy-copy p + p {
  margin-top: 1.1rem;
}

.text-link {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.18em;
}

.contact-dialog,
.content-dialog {
  width: min(34rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  background: var(--night-raised);
  color: var(--night-ink);
}

.content-dialog {
  width: min(52rem, calc(100vw - 2rem));
  max-height: min(82svh, 54rem);
  overflow: auto;
  background: #fff;
  color: var(--paper-ink);
}

.contact-dialog::backdrop,
.content-dialog::backdrop,
.search-dialog::backdrop {
  background: rgb(3 10 13 / 72%);
}

.dialog-shell {
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
}

.dialog-close {
  padding: 0.25rem;
  border: 0;
  background: none;
  cursor: pointer;
}

.email-address {
  margin: 1.5rem 0 0;
  overflow-wrap: anywhere;
  color: var(--accent);
  font-size: clamp(1.1rem, 2.8vw, 1.55rem);
}

.dialog-note {
  margin: 0.75rem 0 0;
  color: var(--night-muted);
}

.contact-dialog {
  width: min(28rem, calc(100vw - 2rem));
}

.contact-dialog .dialog-note {
  font-size: 1rem;
  line-height: 1.7;
}

.contact-dialog .dialog-note a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.search-dialog {
  width: min(42rem, calc(100vw - 2rem));
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--paper-ink);
}

.search-shell {
  padding: 1.4rem;
}

.search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}

.search-input {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.search-results {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.search-result {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  background: #edf1ec;
  text-decoration: none;
}

.search-result span,
.search-empty {
  color: var(--paper-muted);
}

body.home-page .site-header {
  position: fixed;
  right: 0;
  left: 0;
  background: rgb(15 75 84 / 90%);
}

body.home-page .site-footer {
  background: #0e4148;
}

body.home-page .site-footer .site-map {
  background: transparent;
}

body.home-page .home-main {
  padding-top: 4.5rem;
}

@media (min-width: 64rem) {
  .nav-tools {
    display: flex;
  }

  .menu-button {
    display: none;
  }
}

@media (max-width: 63.999rem) {
  .desktop-nav {
    display: none;
  }

  .nav-tools {
    display: flex;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-map-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem var(--gutter);
  }

  .home-hero {
    min-height: min(42rem, calc(100svh - 4rem));
  }

  .map-group h3 {
    min-height: 0;
  }
}

@media (max-width: 48rem) {
  body {
    font-size: 16px;
  }

  .nav-wrap {
    min-height: 4rem;
  }

  .wordmark-name {
    display: none;
  }

  .home-hero {
    min-height: min(38rem, calc(100svh - 4rem));
    padding-block: 4.5rem 6rem;
  }

  .home-title {
    max-width: 10ch;
    font-size: clamp(2.3rem, 9.2vw, 3.6rem);
  }

  .site-map-grid,
  .journey-grid,
  .constitution-layout,
  .achievement-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-map {
    padding-top: 3.5rem;
  }

  .page-hero {
    min-height: 46svh;
    padding-top: 5rem;
    padding-bottom: 3.5rem;
  }

  .page-content {
    padding-block: 3.5rem;
  }

  .construction {
    min-height: 38svh;
  }

  .post-media {
    grid-template-columns: 1fr;
  }

  .timeline-vine::before {
    left: 0;
    width: 2.5rem;
    transform: none;
  }

  .timeline-node,
  .timeline-node:nth-child(even) {
    width: calc(100% - 2rem);
    justify-self: end;
  }

  .timeline-node::after,
  .timeline-node:nth-child(odd)::after,
  .timeline-node:nth-child(even)::after {
    right: auto;
    left: -2.15rem;
  }
}

@media (max-width: 30rem) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

@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;
  }
}
