:root {
  color-scheme: dark;
  --bg: #07110f;
  --panel: #101a17;
  --panel-strong: #16241f;
  --line: #2e4b41;
  --line-bright: #6ecfb0;
  --text: #e9f5ef;
  --muted: #9ab0a7;
  --amber: #d7a944;
  --red: #d46d62;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

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

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(110, 207, 176, 0.14), transparent 30rem),
    linear-gradient(135deg, #07110f 0%, #101713 48%, #18150e 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.author-site {
  color-scheme: light;
  --author-bg: #ffffff;
  --author-text: #111311;
  --author-muted: #5d6460;
  --author-line: #d8ddda;
  --author-panel: #f6f8f7;
  --author-accent: #4f6f59;
  --author-accent-dark: #203928;
  background: var(--author-bg);
  color: var(--author-text);
  display: grid;
  grid-template-rows: auto auto minmax(min-content, 1fr);
  font-family: Georgia, "Times New Roman", serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.author-header,
.author-main,
.author-footer {
  width: min(1040px, calc(100% - 32px));
  margin-inline: auto;
}

.author-header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--author-line);
}

.author-name {
  color: var(--author-text);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
}

.author-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
}

.author-nav a {
  color: var(--author-muted);
  text-decoration: none;
}

.author-nav a:hover,
.author-nav a:focus-visible,
.author-nav a[aria-current="page"] {
  color: var(--author-accent-dark);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.author-main {
  display: grid;
  gap: 54px;
  padding: 70px 0 86px;
}

.author-hero {
  display: grid;
  gap: 22px;
  max-width: 780px;
}

.home-hero {
  max-width: none;
}

.author-kicker,
.author-list span,
.newsletter-form label,
.newsletter-form p {
  color: var(--author-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.author-hero h1,
.author-page-heading h1 {
  margin: 0;
  color: var(--author-text);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  line-height: 0.94;
}

.author-hero p,
.author-page-heading p,
.author-section p,
.author-list p {
  max-width: 680px;
  margin: 0;
  color: var(--author-muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.home-hero p {
  max-width: none;
}

.author-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.primary-link,
.secondary-link,
.newsletter-form button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--author-accent-dark);
  border-radius: 4px;
  padding: 0 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-link,
.newsletter-form button {
  background: var(--author-accent-dark);
  color: #ffffff;
}

.secondary-link {
  color: var(--author-accent-dark);
}

.author-section,
.author-list article,
.newsletter-form {
  border-top: 1px solid var(--author-line);
  padding-top: 28px;
}

.author-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.author-section h2,
.author-list h2,
.home-book-feature h2 {
  margin: 8px 0 0;
  color: var(--author-text);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.12;
}

.author-page-heading {
  display: grid;
  gap: 18px;
  max-width: 800px;
}

.about-heading {
  max-width: none;
}

.about-heading p,
.newsletter-heading p {
  max-width: none;
}

.newsletter-heading {
  max-width: none;
}

.newsletter-heading h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
}

.author-list {
  display: grid;
  gap: 28px;
}

.home-book-highlights {
  display: grid;
  gap: 34px;
}

.home-book-feature {
  display: grid;
  gap: 18px;
  border-top: 1px solid var(--author-line);
  padding-top: 28px;
}

.book-list-shell {
  display: grid;
  gap: 18px;
}

.book-list-shell h2 {
  margin: 0;
  color: var(--author-text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
}

.book-list {
  display: grid;
  gap: 14px;
  width: 100%;
  max-height: min(760px, 70vh);
  overflow-y: auto;
  padding: 4px 8px 12px 0;
  scrollbar-color: var(--author-accent) transparent;
}

.book-item {
  --book-highlight: var(--author-accent);
  --book-highlight-strong: color-mix(in srgb, var(--book-highlight) 62%, #111311);
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: 100%;
  min-height: 184px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--book-highlight) 58%, var(--author-line));
  border-radius: 6px;
  background: var(--book-highlight);
  color: var(--author-text);
  text-decoration: none;
}

.book-item.published {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.book-item.published:hover,
.book-item.published:focus-visible {
  border-color: var(--book-highlight-strong);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--book-highlight) 68%, transparent),
    0 16px 36px rgba(17, 19, 17, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.book-item.wip {
  cursor: default;
}

.book-cover {
  position: relative;
  display: block;
  width: 132px;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  border: 1px solid var(--author-line);
  background: #e9eeeb;
  box-shadow: 0 10px 24px rgba(17, 19, 17, 0.12);
}

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

.book-watermark {
  position: absolute;
  inset: auto -34px 34px;
  display: grid;
  place-items: center;
  height: 34px;
  background: rgba(17, 19, 17, 0.82);
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  transform: rotate(-18deg);
}

.book-details {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.book-details strong {
  color: var(--author-text);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.08;
}

.book-details span {
  color: var(--book-highlight-strong);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-details .book-date {
  color: var(--author-muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: none;
}

.book-details .book-action {
  color: var(--author-accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.book-details p,
.book-empty {
  margin: 0;
  color: var(--author-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.book-details p {
  max-width: none;
  width: 100%;
}

.book-empty {
  max-width: 680px;
}

.newsletter-form {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.newsletter-form div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.newsletter-form input {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--author-line);
  border-radius: 4px;
  background: var(--author-panel);
  color: var(--author-text);
  font: 1rem Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0 14px;
}

.newsletter-form input:focus {
  border-color: var(--author-accent);
  outline: 3px solid rgba(74, 103, 65, 0.16);
}

.newsletter-form button {
  cursor: pointer;
}

.author-footer {
  align-self: end;
  padding: 24px 0 36px;
  border-top: 1px solid var(--author-line);
}

.author-footer p {
  margin: 0;
  color: var(--author-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 5;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.035) 0,
    rgba(255, 255, 255, 0.035) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: soft-light;
}

.station-header,
.station-intro,
.archive-shell,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  min-width: 0;
}

.station-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 38px 0 18px;
}

.station-intro {
  margin-bottom: 24px;
}

.station-intro .header-copy {
  width: 100%;
  max-width: none;
  text-wrap: wrap;
}


.station-mark {
  display: grid;
  place-items: center;
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid var(--line-bright);
  background: rgba(16, 26, 23, 0.82);
  box-shadow: var(--shadow);
}

.station-mark span {
  grid-area: 1 / 1;
  display: block;
  border: 1px solid var(--line-bright);
}

.station-mark span:nth-child(1) {
  width: 54px;
  aspect-ratio: 1;
}

.station-mark span:nth-child(2) {
  width: 34px;
  aspect-ratio: 1;
  transform: rotate(45deg);
}

.station-mark span:nth-child(3) {
  width: 8px;
  aspect-ratio: 1;
  background: var(--line-bright);
}

.eyebrow,
.status-label,
.card-topline,
.document-id,
.document-action,
.generation-stamp {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 8px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(2.2rem, 6vw, 5.2rem);
  line-height: 0.95;
}

h1 span {
  display: inline;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.header-copy {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: balance;
}

.archive-shell {
  display: grid;
  gap: 24px;
  padding-bottom: 44px;
}

.site-footer {
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer p {
  margin-bottom: 4px;
}

.site-footer p:last-child {
  margin-bottom: 0;
}

.archive-shell > section {
  min-width: 0;
  max-width: 100%;
}

.navigation-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.navigation-bar[hidden] {
  display: none;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.breadcrumbs button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--line-bright);
  font: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.breadcrumbs button:hover,
.breadcrumbs button:focus-visible {
  color: var(--text);
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb-separator {
  color: var(--line);
}

.status-summary {
  display: grid;
  gap: 10px;
}

.summary-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 17, 15, 0.72);
}

.summary-switch button {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.summary-switch button:last-child {
  border-right: 0;
}

.summary-switch button:hover,
.summary-switch button:focus-visible,
.summary-switch button[aria-pressed="true"] {
  background: rgba(22, 36, 31, 0.95);
  color: var(--text);
  outline: none;
}

.summary-switch button[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px rgba(110, 207, 176, 0.28);
}

.status-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(16, 26, 23, 0.72);
  box-shadow: var(--shadow);
}

.status-panel > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.status-panel > div:last-child {
  border-right: 0;
}

.status-panel strong {
  font-size: 1.1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-detail {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.status-panel .cleared strong {
  color: var(--line-bright);
}

.status-panel .in-progress strong {
  color: var(--amber);
}

.status-panel .classified strong {
  color: var(--red);
}

.status-panel .in-progress {
  background: rgba(44, 34, 14, 0.22);
}

.status-panel .classified {
  background: rgba(52, 19, 18, 0.24);
}


.section-heading {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-grid {
  display: flex;
  width: 100%;
  min-width: 0;
  gap: 14px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  padding: 0 0 12px;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--line-bright) rgba(16, 26, 23, 0.86);
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

.section-grid::-webkit-scrollbar {
  height: 10px;
}

.section-grid::-webkit-scrollbar-track {
  background: rgba(16, 26, 23, 0.86);
  border-radius: 999px;
}

.section-grid::-webkit-scrollbar-thumb {
  background: var(--line-bright);
  border-radius: 999px;
}

.section-grid.layout-list {
  display: grid;
  gap: 10px;
  overflow: visible;
  padding-bottom: 0;
}

.section-card {
  display: grid;
  flex: 0 0 calc((100% - 42px) / 4);
  gap: 14px;
  min-width: 0;
  min-height: 230px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 26, 23, 0.76);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.section-card:hover,
.section-card:focus-visible,
.section-card[data-active="true"] {
  border-color: var(--line-bright);
  background: rgba(22, 36, 31, 0.95);
  box-shadow: inset 0 0 0 1px rgba(110, 207, 176, 0.32), 0 0 22px rgba(110, 207, 176, 0.14);
  outline: none;
}

.section-card.maintenance {
  border-color: rgba(215, 169, 68, 0.45);
}

.section-card.maintenance:hover,
.section-card.maintenance:focus-visible {
  border-color: var(--amber);
  background: rgba(44, 34, 14, 0.5);
  box-shadow: inset 0 0 0 1px rgba(215, 169, 68, 0.3), 0 0 22px rgba(215, 169, 68, 0.14);
}

.section-card.in-progress {
  border-color: rgba(215, 169, 68, 0.64);
  background: rgba(44, 34, 14, 0.5);
}

.section-card.in-progress .card-status {
  color: var(--amber);
}

.section-card.classified {
  border-color: rgba(212, 109, 98, 0.72);
  background: rgba(52, 19, 18, 0.54);
  cursor: default;
}

.section-card.classified:hover {
  border-color: rgba(212, 109, 98, 0.72);
  background: rgba(52, 19, 18, 0.54);
  box-shadow: none;
}

.section-card.classified .card-status {
  color: var(--red);
}

.catalog-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(140px, 0.75fr) minmax(0, 2fr) minmax(190px, auto);
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(110, 207, 176, 0.22);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.62);
  color: var(--text);
  font: inherit;
  text-align: left;
}

button.catalog-row {
  cursor: pointer;
}

.catalog-row:hover,
.catalog-row:focus-visible {
  border-color: var(--line-bright);
  box-shadow: inset 0 0 0 1px rgba(110, 207, 176, 0.3), 0 0 18px rgba(110, 207, 176, 0.12);
  outline: none;
}

.catalog-row.in-progress {
  border-color: rgba(215, 169, 68, 0.64);
  background: rgba(44, 34, 14, 0.5);
}

.catalog-row.maintenance {
  border-color: rgba(215, 169, 68, 0.5);
  background: rgba(44, 34, 14, 0.38);
}

.catalog-row.in-progress:hover,
.catalog-row.in-progress:focus-visible,
.catalog-row.maintenance:hover,
.catalog-row.maintenance:focus-visible {
  border-color: var(--amber);
  box-shadow: inset 0 0 0 1px rgba(215, 169, 68, 0.3), 0 0 18px rgba(215, 169, 68, 0.12);
}

.catalog-row.classified {
  border-color: rgba(212, 109, 98, 0.72);
  background: rgba(52, 19, 18, 0.54);
}

.catalog-row.classified:hover,
.catalog-row.classified:focus-visible {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(212, 109, 98, 0.3), 0 0 18px rgba(212, 109, 98, 0.12);
}

.catalog-status {
  display: grid;
  gap: 6px;
  justify-items: end;
  min-width: 0;
  text-align: right;
}

.catalog-status strong {
  color: var(--line-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
}

.catalog-row.in-progress .catalog-status strong,
.catalog-row.in-progress .document-action {
  color: var(--amber);
}

.catalog-row.maintenance .catalog-status strong,
.catalog-row.maintenance .document-action {
  color: var(--amber);
}

.catalog-row.classified .catalog-status strong,
.catalog-row.classified .document-action {
  color: var(--red);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.section-card strong {
  font-size: 1.25rem;
}

.card-copy {
  color: var(--muted);
  line-height: 1.45;
}

.card-status {
  align-self: end;
  color: var(--line-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.maintenance .card-status {
  color: var(--amber);
}

.document-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(16, 26, 23, 0.78);
  box-shadow: var(--shadow);
  padding: 20px;
}

.document-panel[hidden] {
  display: none;
}

.ghost-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.72);
  color: var(--text);
  cursor: pointer;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: var(--line-bright);
  outline: none;
}

.document-list {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.document-list.layout-cards {
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: inline proximity;
}

.document-card {
  color: var(--text);
  text-decoration: none;
}

.document-row {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 2fr) minmax(120px, auto);
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(110, 207, 176, 0.22);
  border-radius: 4px;
  background: rgba(7, 17, 15, 0.62);
  color: var(--text);
  text-decoration: none;
}

.document-row:hover,
.document-row:focus-visible {
  border-color: var(--line-bright);
  outline: none;
}

.document-row.in-progress {
  border-color: rgba(215, 169, 68, 0.64);
  background: rgba(44, 34, 14, 0.5);
}

.document-row.in-progress:hover,
.document-row.in-progress:focus-visible {
  border-color: var(--amber);
}

.document-row.classified {
  border-color: rgba(212, 109, 98, 0.72);
  background: rgba(52, 19, 18, 0.54);
}

.document-row.classified:hover,
.document-row.classified:focus-visible {
  border-color: var(--red);
}

.document-row.unavailable {
  cursor: default;
}

.document-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.document-row > * {
  min-width: 0;
  max-width: 100%;
}

.document-main strong,
.document-main span,
.document-id {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.document-main span {
  color: var(--muted);
}

.document-row.in-progress .document-main span,
.document-row.in-progress .document-action {
  color: var(--amber);
}

.document-row.classified .document-main span,
.document-row.classified .document-action {
  color: var(--red);
}

.document-action {
  color: var(--line-bright);
  text-align: right;
  white-space: nowrap;
}

.maintenance-notice {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(215, 169, 68, 0.5);
  border-radius: 4px;
  background: rgba(44, 34, 14, 0.38);
}

.maintenance-notice span {
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.maintenance-notice p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.maintenance-notice.neutral {
  border-color: rgba(110, 207, 176, 0.35);
  background: rgba(7, 17, 15, 0.42);
}

.maintenance-notice.neutral span {
  color: var(--line-bright);
}

@media (max-width: 980px) {
  .author-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .header-copy {
    white-space: normal;
  }

  .section-grid {
    gap: 12px;
  }

  .section-card {
    flex-basis: min(320px, 72vw);
  }

  .document-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .document-id {
    grid-column: 1 / -1;
  }

  .catalog-row {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  }

  .catalog-row .document-id {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    background:
      radial-gradient(circle at 50% -8rem, rgba(110, 207, 176, 0.16), transparent 20rem),
      linear-gradient(135deg, #07110f 0%, #101713 58%, #17140e 100%);
  }

  body.author-site {
    background: var(--author-bg);
  }

  .author-header,
  .author-main,
  .author-footer {
    width: calc(100% - 24px);
  }

  .author-header {
    display: grid;
    gap: 14px;
    padding: 18px 0;
  }

  .author-nav {
    justify-content: flex-start;
  }

  .author-main {
    gap: 38px;
    padding: 42px 0 58px;
  }

  .author-hero h1,
  .author-page-heading h1 {
    font-size: 3rem;
    line-height: 0.98;
  }

  .author-hero p,
  .author-page-heading p,
  .author-section p,
  .author-list p {
    font-size: 1rem;
  }

  .newsletter-form div {
    grid-template-columns: 1fr;
  }

  .newsletter-form button {
    width: 100%;
  }

  .book-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .book-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    min-height: 138px;
    padding: 12px;
  }

  .book-cover {
    width: 92px;
  }

  .book-details {
    gap: 5px;
  }

  .book-details strong {
    font-size: 1.2rem;
  }

  .book-details p,
  .book-empty {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .book-details p {
    display: none;
  }

  .station-header,
  .station-intro,
  .archive-shell,
  .site-footer {
    width: calc(100% - 20px);
    max-width: calc(100vw - 20px);
  }

  .station-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 18px 0 14px;
  }

  .station-mark {
    width: 42px;
    margin-top: 4px;
  }

  .station-mark span:nth-child(1) {
    width: 27px;
  }

  .station-mark span:nth-child(2) {
    width: 18px;
  }

  h1 {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: 1.72rem;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  h1 span {
    display: block;
  }

  h2 {
    font-size: 1.35rem;
  }

  .eyebrow,
  .status-label,
  .card-topline,
  .document-id,
  .document-action,
  .generation-stamp {
    font-size: 0.68rem;
  }

  .header-copy {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .archive-shell {
    gap: 16px;
    padding-bottom: 26px;
  }

  .site-footer {
    padding: 16px 0 24px;
    font-size: 0.64rem;
  }

  .navigation-bar {
    align-items: flex-start;
  }

  .ghost-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 10px;
  }

  .breadcrumbs {
    padding-top: 9px;
    font-size: 0.66rem;
  }

  .status-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .summary-switch {
    width: 100%;
  }

  .summary-switch button {
    min-width: 0;
    padding: 0 10px;
    font-size: 0.68rem;
  }

  .status-panel > div {
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
    border-left: 0;
  }

  .status-panel > div:last-child {
    border-bottom: 0;
  }

  .status-panel strong {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
  }

  .status-detail {
    font-size: 0.68rem;
  }

  .section-heading {
    display: grid;
    align-items: start;
    gap: 6px;
    margin-bottom: 10px;
  }

  .section-grid {
    width: 100%;
    min-width: 0;
    gap: 10px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    scroll-snap-type: inline mandatory;
  }

  .section-grid.layout-list {
    display: grid;
    overflow: visible;
    padding-bottom: 0;
  }

  .section-card {
    flex: 0 0 calc(100vw - 42px);
    max-width: calc(100vw - 42px);
    gap: 6px 10px;
    min-height: 0;
    padding: 12px;
    scroll-snap-align: start;
  }

  .card-topline,
  .card-status {
    grid-column: 1 / -1;
  }

  .card-topline {
    order: -1;
  }

  .section-card strong {
    font-size: 1.05rem;
  }

  .card-copy {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .card-status {
    margin-top: 2px;
    font-size: 0.72rem;
  }

  .document-panel {
    min-width: 0;
    padding: 12px;
  }

  .document-row {
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    gap: 8px;
    padding: 12px;
  }

  .catalog-row {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    gap: 8px;
    padding: 12px;
  }

  .catalog-status {
    justify-items: start;
    text-align: left;
  }

  .document-list.layout-cards {
    gap: 10px;
    scroll-snap-type: inline mandatory;
  }

  .document-list.layout-cards .section-card {
    flex: 0 0 calc(100vw - 68px);
    max-width: calc(100vw - 68px);
  }

  .document-main {
    gap: 4px;
  }

  .document-main strong {
    font-size: 0.98rem;
  }

  .document-action {
    text-align: left;
    white-space: normal;
  }

  .maintenance-notice {
    min-width: 0;
    padding: 12px;
  }
}
