:root {
  --bg: #0d1623;
  --bg-strong: #162131;
  --panel: rgba(20, 31, 46, 0.86);
  --panel-strong: rgba(24, 37, 55, 0.94);
  --text: #eef4ff;
  --muted: #8fa3bd;
  --line: rgba(144, 177, 220, 0.16);
  --accent: #67a6ff;
  --accent-strong: #d6e6ff;
  --accent-soft: rgba(103, 166, 255, 0.14);
  --ink: #d5e1f3;
  --public: #7ab3ff;
  --private: #efc86f;
  --lantern-warm: #ffb168;
  --blossom: #ff8eb7;
  --moon: #b8d7ff;
  --kind: #8cc0ff;
  --level: #9ed8ff;
  --tag: #9aaec9;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --radius: 24px;
  --radius-sm: 16px;
  --content-width: 1200px;
  --mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  --serif: "IBM Plex Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lantern-desktop: url("/assets/images/lantern-night-desktop.jpg");
  --lantern-mobile: url("/assets/images/lantern-night-mobile.jpg");
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(103, 166, 255, 0.16), transparent 24%),
    radial-gradient(circle at right 10%, rgba(81, 118, 199, 0.18), transparent 30%),
    linear-gradient(180deg, #0a1220 0%, #0e1724 38%, var(--bg) 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

a {
  color: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(188, 214, 255, 0.03), transparent 32%),
    linear-gradient(300deg, rgba(255, 255, 255, 0.02), transparent 28%);
  transition: opacity 280ms ease, transform 280ms ease;
}

body.archive-page:not(.home-page) {
  --page-backdrop-shift: 0px;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 142, 183, 0.1), transparent 18%),
    radial-gradient(circle at 82% 14%, rgba(184, 215, 255, 0.08), transparent 20%),
    linear-gradient(180deg, #070a0f 0%, #0a0e15 42%, #111826 100%);
}

body.archive-page:not(.home-page) .backdrop {
  opacity: 0.58;
  background:
    linear-gradient(180deg, rgba(4, 5, 9, 0.24), rgba(7, 10, 17, 0.56)),
    linear-gradient(110deg, rgba(255, 177, 104, 0.11), transparent 24%),
    linear-gradient(290deg, rgba(184, 215, 255, 0.1), transparent 28%),
    var(--lantern-desktop);
  background-size: cover;
  background-position: 42% 16%;
  filter: saturate(1.08) brightness(0.84) contrast(1.03);
  transform: translate3d(0, var(--page-backdrop-shift), 0) scale(1.05);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 13, 22, 0.8);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

.brand {
  display: inline-flex;
  gap: 0.8rem;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
}

.top-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nav-link {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  font-size: 0.92rem;
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-soft);
  color: #f2f6fb;
  transform: translateY(-1px);
}

.nav-link:focus-visible,
.button:focus-visible,
.route-line-link:focus-visible,
.drawer-link:focus-visible,
.admin-subnav-link:focus-visible,
.admin-list-item:focus-visible {
  outline: 2px solid rgba(184, 215, 255, 0.72);
  outline-offset: 3px;
}

.mode-pill {
  display: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(103, 166, 255, 0.1);
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 1.5rem;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 1.5rem auto 4rem;
}

.shell.no-sidebar {
  grid-template-columns: 1fr;
}

.sidebar {
  position: sticky;
  top: 6.4rem;
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 22, 31, 0.95), rgba(12, 18, 26, 0.94));
  box-shadow: var(--shadow);
}

.sidebar-block + .sidebar-block {
  margin-top: 1rem;
}

.sidebar-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sidebar-link {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(76, 57, 34, 0.08);
  text-decoration: none;
}

.sidebar-link:last-child {
  border-bottom: 0;
}

.sidebar-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-link:hover {
  color: #f2f6fb;
}

.content {
  min-width: 0;
}

.hero,
.page-header,
.panel,
.doc-page,
.feature-card,
.route-card,
.card,
.stat-card,
.search-panel,
.topic-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero,
.page-header,
.panel,
.doc-page,
.search-panel,
.topic-section {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.hero {
  display: block;
}

.hero h1,
.page-header h1,
.doc-header h1,
.section-head h2,
.topic-section h2 {
  margin: 0.35rem 0 0.8rem;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.page-header h1,
.doc-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head h2,
.topic-section h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.hero p,
.page-header p,
.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.25rem;
  border-radius: calc(var(--radius) - 8px);
  background: linear-gradient(180deg, rgba(20, 30, 43, 0.88), rgba(14, 21, 30, 0.86));
}

.hero-panel ul,
.doc-body ul,
.doc-body ol,
.meta-panel ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.button:active {
  transform: translateY(0) scale(0.982);
}

.button-primary {
  background: linear-gradient(135deg, #12243b, var(--accent));
  color: #fcfffe;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #dfe7ef;
  box-shadow: inset 0 0 0 1px rgba(125, 162, 255, 0.12);
}

.button-ghost {
  background: rgba(6, 11, 18, 0.34);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(214, 230, 255, 0.16);
}

.stats-grid,
.card-grid,
.meta-panel-grid,
.ai-grid,
.route-grid,
.workflow-strip,
.collection-intro-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.meta-panel-grid,
.ai-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.route-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.workflow-strip {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.collection-intro-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stat-card {
  padding: 1rem 1.1rem;
}

.stat-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.stat-card strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 2.4rem;
  font-family: var(--serif);
}

.feature-card,
.route-card,
.card {
  padding: 1.15rem;
}

.feature-card h3,
.route-card h3,
.card h3 {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

.feature-card p,
.route-card p,
.card p,
.microcopy,
.empty-state {
  color: var(--muted);
}

.feature-card a,
.route-card a,
.card a,
.doc-body a,
.sidebar-link:hover {
  color: var(--accent-strong);
}

.feature-card,
.route-card,
.card {
  background: linear-gradient(180deg, rgba(17, 25, 35, 0.98), rgba(12, 18, 26, 0.96));
}

.route-card {
  position: relative;
  overflow: hidden;
}

.route-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--accent), #7da2ff);
}

.route-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.workflow-step {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 22, 31, 0.97), rgba(10, 15, 22, 0.95));
  box-shadow: var(--shadow);
}

.workflow-index {
  display: inline-flex;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: rgba(103, 166, 255, 0.12);
  color: var(--accent-strong);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.workflow-step h3 {
  margin: 0.9rem 0 0.45rem;
  font-size: 1.15rem;
}

.workflow-step p {
  margin: 0;
  color: var(--muted);
}

.route-mini-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.route-mini-item {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(125, 162, 255, 0.08);
}

.route-mini-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.card-meta,
.doc-meta,
.tag-row,
.section-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-kind {
  background: rgba(125, 162, 255, 0.16);
  color: var(--kind);
}

.badge-public {
  background: rgba(58, 165, 143, 0.16);
  color: var(--public);
}

.badge-private {
  background: rgba(213, 164, 95, 0.16);
  color: var(--private);
}

.badge-level {
  background: rgba(116, 192, 163, 0.14);
  color: var(--level);
}

.badge-tag {
  background: rgba(146, 161, 180, 0.08);
  color: var(--tag);
}

.card-foot,
.doc-meta {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-top: 2rem;
}

.section-head.compact {
  margin-top: 0;
  margin-bottom: 1rem;
}

.compact-panel {
  padding: 1rem 1.1rem;
}

.compact-panel p {
  margin: 0.4rem 0 0;
}

.doc-header {
  margin-bottom: 1.5rem;
}

.doc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.doc-breadcrumb span::before {
  content: "·";
  margin-right: 0.5rem;
  color: rgba(100, 87, 72, 0.7);
}

.doc-body {
  display: grid;
  gap: 1rem;
}

.doc-body p,
.doc-body li,
.doc-body blockquote {
  font-size: 1.02rem;
}

.doc-body h2,
.doc-body h3,
.doc-body h4 {
  margin: 1.8rem 0 0.6rem;
  font-family: var(--serif);
  line-height: 1.18;
}

.doc-body pre,
.panel pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #111827;
  color: #ecfeff;
}

.doc-body code,
.panel code {
  font-family: var(--mono);
}

.doc-body p code,
.doc-body li code,
.sidebar code,
.microcopy code {
  padding: 0.16rem 0.4rem;
  border-radius: 8px;
  background: rgba(103, 166, 255, 0.12);
  color: var(--accent-strong);
}

.doc-body blockquote {
  margin: 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid rgba(103, 166, 255, 0.35);
  background: rgba(103, 166, 255, 0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.meta-panel {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(18, 27, 38, 0.98), rgba(12, 19, 27, 0.95));
}

.meta-panel h2,
.panel h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.panel label {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.panel input,
.panel textarea,
.panel select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(125, 162, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.panel textarea {
  resize: vertical;
}

.search-input {
  display: grid;
  gap: 0.5rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.archive-page .shell,
.archive-page .shell.no-sidebar {
  grid-template-columns: 1fr;
}

.masthead,
.module-hero,
.entry-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 1.5rem;
  min-height: 22rem;
  padding: clamp(1.4rem, 2.5vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(11, 16, 23, 0.96), rgba(16, 24, 35, 0.94)),
    radial-gradient(circle at top right, rgba(58, 165, 143, 0.12), transparent 28%);
  box-shadow: var(--shadow);
}

.masthead h1,
.module-hero h1,
.entry-hero h1 {
  margin: 0.4rem 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.masthead-copy,
.module-hero-copy,
.entry-hero-copy {
  max-width: 52rem;
}

.manifesto-panel,
.module-manifesto,
.entry-context {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid rgba(125, 162, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.manifesto-panel h2,
.module-manifesto h2,
.entry-context h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
}

.manifesto-stats {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.manifesto-stats div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(125, 162, 255, 0.1);
}

.manifesto-stats dt {
  color: var(--muted);
}

.manifesto-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.editorial-band,
.signal-grid,
.module-grid,
.entry-chain,
.entry-notes,
.quiet-links,
.module-stage {
  margin-top: 1.5rem;
}

.module-stage,
.signal-grid,
.entry-notes {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.module-tile,
.signal-card,
.note-block,
.course-teaser,
.chain-card,
.quiet-link {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 23, 32, 0.95), rgba(10, 15, 22, 0.95));
  box-shadow: var(--shadow);
  text-decoration: none;
}

.module-tile h3,
.signal-card h3,
.note-block h3,
.course-teaser h3,
.chain-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.module-kicker,
.section-nav-label {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.module-chip-row,
.section-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  margin: 1rem 0 1.2rem;
  border-top: 1px solid rgba(125, 162, 255, 0.12);
  border-bottom: 1px solid rgba(125, 162, 255, 0.12);
}

.section-nav-link {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.section-nav-link.active,
.section-nav-link:hover {
  color: #f4f8fc;
  background: rgba(58, 165, 143, 0.12);
}

.module-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.course-teaser-head {
  display: grid;
  gap: 0.4rem;
}

.chain-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.chain-card {
  position: relative;
  padding-left: 1.2rem;
}

.chain-card::before {
  content: "";
  position: absolute;
  inset: 1.25rem auto 1.25rem 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), #7da2ff);
}

.quiet-links {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quiet-link strong {
  font-size: 1.05rem;
}

.quiet-link span {
  color: var(--muted);
}

.private-capability-list {
  margin: 0;
  padding-left: 1.1rem;
}

.private-capability-list li + li {
  margin-top: 0.45rem;
}

.mermaid-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
}

[data-reveal] {
  opacity: 1;
  transform: translateY(0);
}

body.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

body.has-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

body.home-page {
  --hero-shift: 0px;
}

body.home-page .site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  width: min(calc(100% - 2rem), 1320px);
  margin: 0;
  transform: translateX(-50%);
  background: rgba(11, 18, 29, 0.22);
  border-color: rgba(214, 230, 255, 0.16);
  box-shadow: none;
}

body.home-page.page-scrolled .site-header {
  background: rgba(16, 24, 38, 0.74);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

body.home-page .shell {
  width: 100%;
  margin: 0 0 4rem;
}

body.home-page .content {
  width: 100%;
}

.poster-hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 100svh;
  padding: clamp(7rem, 16vh, 10rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 4.5rem);
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.poster-hero::before,
.poster-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.poster-hero::before {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 10, 16, 0.14) 0%, rgba(9, 10, 16, 0.22) 18%, rgba(9, 11, 18, 0.46) 58%, rgba(10, 14, 23, 0.72) 100%),
    linear-gradient(90deg, rgba(8, 10, 18, 0.44) 0%, rgba(8, 10, 18, 0.16) 40%, rgba(8, 10, 18, 0.02) 68%, rgba(8, 10, 18, 0) 100%);
}

.poster-hero::after {
  z-index: -2;
  background-image: var(--hero-desktop);
  background-size: cover;
  background-position: center 22%;
  transform: translate3d(0, var(--hero-shift), 0) scale(1.05);
  transform-origin: center;
  transition: transform 220ms linear;
}

.poster-copy {
  display: grid;
  gap: 0.9rem;
  width: min(100%, 40rem);
  padding-bottom: 1rem;
}

.poster-brand {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.poster-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.poster-subtitle {
  margin: 0;
  color: rgba(238, 244, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.poster-meta {
  margin: 0.35rem 0 0;
  color: rgba(214, 230, 255, 0.66);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-route-band,
.drawer-band,
.photo-credit {
  width: min(calc(100% - 2rem), var(--content-width));
  margin-left: auto;
  margin-right: auto;
}

.home-route-band {
  margin-top: 1.5rem;
}

.route-stack {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.route-stack-page {
  margin-top: 1.2rem;
}

.route-line {
  margin: 0;
}

.route-line-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.2rem;
  border: 1px solid rgba(214, 230, 255, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 29, 43, 0.9), rgba(13, 21, 32, 0.88));
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.route-line-link:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 230, 255, 0.34);
  background: linear-gradient(180deg, rgba(24, 36, 52, 0.95), rgba(15, 24, 36, 0.92));
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.2);
}

.route-line-static .route-line-link:hover {
  transform: none;
}

.route-line-index {
  display: inline-flex;
  justify-content: center;
  min-width: 2.2rem;
  color: rgba(214, 230, 255, 0.56);
  font-family: var(--mono);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
}

.route-line-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.route-line-eyebrow {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-line-copy strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.route-line-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.route-line-meta,
.route-line-arrow {
  color: rgba(214, 230, 255, 0.68);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.info-drawer {
  border: 1px solid rgba(214, 230, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 28, 41, 0.92), rgba(12, 19, 29, 0.9));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.info-drawer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.info-drawer summary::-webkit-details-marker {
  display: none;
}

.info-drawer summary::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1.2rem;
  line-height: 1;
}

.info-drawer[open] summary::after {
  content: "−";
}

.info-drawer-body {
  display: grid;
  gap: 0.9rem;
  padding: 0 1.2rem 1.2rem;
  color: var(--muted);
}

.info-drawer-body p {
  margin: 0;
}

.drawer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.drawer-link {
  display: grid;
  gap: 0.28rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(214, 230, 255, 0.08);
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.drawer-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(214, 230, 255, 0.14), 0 20px 40px rgba(0, 0, 0, 0.18);
}

.drawer-link strong {
  font-size: 0.98rem;
  color: var(--text);
}

.drawer-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

.photo-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  border: 1px solid rgba(214, 230, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(61, 30, 23, 0.7), rgba(25, 17, 27, 0.76));
  color: rgba(226, 236, 252, 0.88);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.photo-credit strong {
  color: #ffe8d6;
  font-size: 1.08em;
}

.route-page .shell,
.route-page .shell.no-sidebar {
  grid-template-columns: 1fr;
}

.route-hero,
.private-hub {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.6vw, 2.4rem);
  border: 1px solid rgba(214, 230, 255, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(184, 215, 255, 0.16), transparent 24%),
    radial-gradient(circle at top left, rgba(255, 142, 183, 0.11), transparent 22%),
    linear-gradient(180deg, rgba(15, 12, 20, 0.68), rgba(12, 18, 28, 0.76));
  box-shadow: var(--shadow);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.route-hero::before,
.private-hub::before,
.doc-page::before,
.workbench-card::before,
.workbench-panel::before,
.admin-shell .admin-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--lantern-desktop);
  background-size: cover;
  background-position: 40% 20%;
  opacity: 0.26;
  filter: saturate(1.08) blur(0.45px) brightness(0.98);
  transform: scale(1.04);
}

body.archive-page:not(.home-page) .page-header,
body.archive-page:not(.home-page) .panel,
body.archive-page:not(.home-page) .doc-page,
body.archive-page:not(.home-page) .topic-section,
body.archive-page:not(.home-page) .route-card,
body.archive-page:not(.home-page) .feature-card,
body.archive-page:not(.home-page) .card,
body.archive-page:not(.home-page) .search-panel,
body.archive-page:not(.home-page) .workbench-summary,
body.archive-page:not(.home-page) .workbench-card,
body.archive-page:not(.home-page) .workbench-panel,
body.archive-page:not(.home-page) .admin-shell .admin-panel {
  background: linear-gradient(180deg, rgba(23, 17, 28, 0.78), rgba(16, 22, 34, 0.84));
}

body.archive-page:not(.home-page) .route-line-link {
  background: linear-gradient(180deg, rgba(20, 23, 34, 0.74), rgba(13, 19, 30, 0.7));
}

body.archive-page:not(.home-page) .route-line-link:hover {
  background: linear-gradient(180deg, rgba(25, 30, 43, 0.82), rgba(16, 22, 34, 0.78));
}

.route-hero-copy {
  max-width: 46rem;
}

.route-hero h1,
.private-hub h1 {
  margin: 0.35rem 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.route-hero p,
.private-hub p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.route-page .section-nav {
  justify-content: start;
  gap: 1.25rem;
  margin: 1rem 0 0;
  padding: 0.95rem 0;
}

.route-page .section-nav-links {
  gap: 1rem;
}

.route-page .section-nav-link {
  padding: 0 0 0.2rem;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.route-page .section-nav-link.active,
.route-page .section-nav-link:hover {
  background: transparent;
  color: #f4f8fc;
  border-color: rgba(214, 230, 255, 0.52);
}

.private-hub {
  margin-top: 1.2rem;
}

.workbench-summary,
.workbench-panel,
.workbench-card {
  border: 1px solid rgba(214, 230, 255, 0.18);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(23, 19, 27, 0.82), rgba(15, 21, 33, 0.88));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.doc-page {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.workbench-summary {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.4rem;
  margin-top: 1.5rem;
}

.workbench-summary-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.workbench-summary-grid p {
  margin: 0;
  color: var(--muted);
}

.workbench-grid,
.workbench-bottom {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.workbench-card,
.workbench-panel {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.workbench-card:hover,
.workbench-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 230, 255, 0.24);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
}

.workbench-eyebrow {
  color: var(--accent-strong);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workbench-card h3,
.workbench-panel h3 {
  margin: 0;
  font-size: 1.24rem;
}

.workbench-card p,
.workbench-panel p {
  margin: 0;
  color: var(--muted);
}

.workbench-card-link a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}

.workbench-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.workbench-command {
  margin: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(214, 230, 255, 0.1);
  border-radius: 18px;
  background: rgba(8, 13, 20, 0.48);
  color: var(--ink);
  overflow-x: auto;
}

.workbench-command code {
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.65;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 1.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(214, 230, 255, 0.12);
}

.admin-subnav-link {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), background 220ms cubic-bezier(0.2, 0.8, 0.2, 1), color 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-subnav-link.active,
.admin-subnav-link:hover {
  color: var(--text);
  background: rgba(103, 166, 255, 0.16);
  transform: translateY(-1px);
}

.admin-shell-copy {
  display: grid;
  gap: 1rem;
}

.admin-shell .admin-panel {
  border: 1px solid rgba(214, 230, 255, 0.16);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 14, 23, 0.82), rgba(14, 21, 33, 0.88));
  padding: 1.2rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.admin-view-content .admin-shell-copy {
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.admin-panel-list,
.admin-panel-editor {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.admin-field {
  display: grid;
  gap: 0.35rem;
}

.admin-field span {
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-field input,
.admin-field select,
.admin-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(214, 230, 255, 0.14);
  border-radius: 16px;
  background: rgba(7, 12, 20, 0.55);
  color: var(--text);
  font: inherit;
}

.admin-field textarea {
  resize: vertical;
}

.admin-form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.admin-field-body {
  margin-top: 0.25rem;
}

.admin-list,
.admin-log-list {
  display: grid;
  gap: 0.65rem;
}

.admin-list-item,
.admin-list-card,
.admin-log-item {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(214, 230, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  color: inherit;
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1), background 200ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-list-item {
  cursor: pointer;
}

.admin-list-item:hover,
.admin-list-card:hover,
.admin-log-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(214, 230, 255, 0.18);
}

.admin-list-item strong,
.admin-list-card strong,
.admin-log-item strong {
  font-size: 1rem;
}

.admin-list-item span,
.admin-list-card span,
.admin-log-item span,
.admin-log-item p,
.admin-save-status,
.admin-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-editor-header {
  display: grid;
  gap: 0.3rem;
}

.admin-editor-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.admin-editor-header p {
  margin: 0;
  color: var(--muted);
}

.admin-editor-form {
  display: grid;
  gap: 1rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.toolbar-button,
.asset-card-actions button,
.asset-chip button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0.55rem 0.85rem;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.toolbar-button:hover,
.asset-card-actions button:hover,
.asset-chip button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.rich-editor {
  min-height: 12rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(214, 230, 255, 0.14);
  border-radius: 18px;
  background: rgba(9, 13, 20, 0.54);
  color: var(--text);
  outline: none;
}

.rich-editor:empty::before {
  content: attr(data-placeholder);
  color: rgba(214, 230, 255, 0.42);
}

.asset-strip {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.asset-chip {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(214, 230, 255, 0.08);
}

.asset-chip.readonly {
  text-decoration: none;
  color: inherit;
}

.asset-chip img,
.asset-library-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
}

.asset-chip strong,
.asset-library-card strong {
  display: block;
  font-size: 0.95rem;
}

.asset-chip span,
.asset-library-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.asset-chip-icon,
.asset-card-file {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.asset-library-card {
  gap: 0.6rem;
}

.asset-card-actions {
  display: flex;
  justify-content: flex-start;
}

.journal-body,
.moment-card .moment-body {
  color: var(--ink);
}

.journal-body p,
.moment-card .moment-body p {
  margin: 0.4rem 0 0;
}

.moment-feed-shell {
  margin-top: 1.4rem;
}

.moment-feed {
  display: grid;
  gap: 1rem;
}

.moment-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
  border: 1px solid rgba(214, 230, 255, 0.14);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(24, 17, 28, 0.8), rgba(15, 21, 33, 0.84));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.moment-card.compact {
  padding: 1rem 1.05rem;
}

.moment-meta,
.moment-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.moment-foot a {
  color: var(--accent-strong);
  text-decoration: none;
}

.moment-media-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.moment-media-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.moment-media-item {
  display: block;
  overflow: hidden;
  border-radius: 16px;
}

.moment-media-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
}

.moment-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.moment-file-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-strong);
  text-decoration: none;
}

.admin-metrics {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.admin-metric {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(214, 230, 255, 0.08);
}

.admin-metric span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-metric strong {
  font-size: 1.6rem;
  font-family: var(--serif);
}

.admin-sync-item.tone-ok strong {
  color: #d7f5e9;
}

.admin-sync-item.tone-warn strong {
  color: #ffe3b8;
}

.admin-sync-item.tone-danger strong {
  color: #ffc7cd;
}

body.has-view-transition::view-transition-old(root),
body.has-view-transition::view-transition-new(root) {
  animation-duration: 340ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.has-view-transition::view-transition-old(root) {
  animation-name: page-fade-out;
}

body.has-view-transition::view-transition-new(root) {
  animation-name: page-fade-in;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.995);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes page-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  to {
    opacity: 0;
    transform: translateY(-6px) scale(1.002);
    filter: blur(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 960px) {
  body.archive-page:not(.home-page) .backdrop,
  .route-hero::before,
  .private-hub::before,
  .doc-page::before,
  .workbench-card::before,
  .workbench-panel::before,
  .admin-shell .admin-panel::before {
    background-image: var(--lantern-mobile);
  }

  .site-header,
  .shell,
  .hero,
  .ai-grid,
  .masthead,
  .module-hero,
  .entry-hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    border-radius: 24px;
  }

  .sidebar {
    position: static;
  }

  .section-nav {
    flex-direction: column;
    align-items: start;
  }

  .card-foot,
  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    margin-top: 0.75rem;
    padding: 1rem;
  }

  .brand {
    align-items: start;
  }

  .hero h1,
  .page-header h1,
  .doc-header h1 {
    letter-spacing: -0.04em;
  }
}

@media (max-width: 960px) {
  body.home-page .site-header {
    top: 0.75rem;
    width: min(calc(100% - 1rem), 1320px);
  }

  .poster-hero::after {
    background-image: var(--hero-mobile);
    background-position: 56% center;
  }

  .poster-hero {
    min-height: auto;
    padding-top: 8rem;
    padding-bottom: 2.5rem;
  }

  .route-line-link {
    grid-template-columns: auto 1fr;
  }

  .route-line-meta,
  .route-line-arrow {
    grid-column: 2;
    justify-self: start;
  }

  .drawer-links {
    grid-template-columns: 1fr;
  }

  .route-page .section-nav-links {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.home-page .site-header {
    top: 0.5rem;
  }

  .poster-copy {
    width: 100%;
  }

  .poster-hero h1 {
    max-width: 12ch;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .button,
  .button-primary,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }

  .route-line-link {
    gap: 0.75rem;
    padding: 1rem;
  }

  .route-page .section-nav {
    gap: 0.85rem;
  }
}
