/* Reading-page styles for about.html (and the 404 page), kept out of the
   HTML so the CSP can forbid inline styles. Loaded after style.css. */

/* ---- Page shell -------------------------------------------------
   style.css locks the body to a non-scrolling flex viewport for the
   monitor. A reading page needs the opposite. */
body {
  display: block;
  width: auto;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 40px) 64px;
}

.sheet {
  max-width: 780px;
  margin: 0 auto;
  /* Data/utility face: system mono, so the page adds no font request. */
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  /* --text-muted is 4.3:1 on this background. Small type that carries meaning
     (captions, field notes, the colophon) uses this slightly lifted tone at
     5.6:1 instead, and stays dimmer than --text-secondary to keep hierarchy. */
  --text-note: #808b88;
}

/* ---- Back link --------------------------------------------------- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.back-btn:hover,
.back-btn:focus-visible {
  color: var(--accent-color);
  border-color: rgba(143, 227, 196, 0.4);
  background: rgba(143, 227, 196, 0.07);
}

/* ---- Masthead ---------------------------------------------------- */
.masthead {
  margin: clamp(40px, 8vw, 72px) 0 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-color);
  margin-bottom: 18px;
}

.masthead h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.tagline {
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 30ch;
}

/* ---- Sections ---------------------------------------------------- */
.block {
  margin-top: clamp(44px, 7vw, 64px);
  padding-top: clamp(28px, 4vw, 36px);
  border-top: 1px solid var(--panel-border);
}

.block h2 {
  /* .eyebrow carries the type; this only resets the heading defaults. */
  font-size: 0.68rem;
  font-weight: 500;
}

.block p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 62ch;
}

.block p + p {
  margin-top: 14px;
}

.block strong {
  color: var(--text-primary);
  font-weight: 500;
}

.block a {
  color: var(--accent-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 227, 196, 0.28);
  transition: border-color 0.3s ease;
}

.block a:hover,
.block a:focus-visible {
  border-bottom-color: var(--accent-color);
}

/* ---- Signature: the specimen label ------------------------------- */
.specimen {
  margin: 28px 0 18px;
  background: rgba(10, 15, 22, 0.55);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.specimen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--panel-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--text-note);
}

.specimen-tag {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--accent-purple);
}

.specimen-rows {
  padding: 6px 0;
}

.row {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: baseline;
  padding: 9px 22px;
}

.row dt {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--accent-purple);
  padding-right: 18px;
  word-break: break-word;
}

.row dd {
  overflow-wrap: break-word;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-primary);
  border-left: 1px solid var(--panel-border);
  padding-left: 20px;
}

.row dd .muted {
  color: var(--text-muted);
}

.row dd .note {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: var(--text-note);
}

.v-sci {
  font-family: var(--font-display);
  font-size: 1.05rem !important;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.v-license {
  font-family: var(--font-mono);
  font-size: 0.82rem !important;
  color: var(--accent-color) !important;
}

.caption {
  font-size: 0.82rem !important;
  line-height: 1.65;
  color: var(--text-note) !important;
  max-width: 62ch;
}

/* ---- Fact list --------------------------------------------------- */
.facts {
  list-style: none;
  margin-top: 22px;
}

.facts li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 13px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 62ch;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-glow);
}

.facts strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ---- Colophon ---------------------------------------------------- */
.colophon {
  margin-top: clamp(44px, 7vw, 64px);
  padding-top: 22px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: var(--text-note);
}

.colophon a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--panel-border);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.colophon a:hover,
.colophon a:focus-visible {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

.colophon strong {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ---- Focus ring -------------------------------------------------- */
a:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}

/* ---- Entrance ---------------------------------------------------- */
.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rise:nth-child(2) { animation-delay: 0.06s; }
.rise:nth-child(3) { animation-delay: 0.12s; }
.rise:nth-child(4) { animation-delay: 0.18s; }
.rise:nth-child(5) { animation-delay: 0.24s; }
.rise:nth-child(6) { animation-delay: 0.30s; }
.rise:nth-child(7) { animation-delay: 0.36s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive -------------------------------------------------- */
@media (max-width: 620px) {
  .row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 11px 18px;
  }

  .row dd {
    border-left: 0;
    padding-left: 0;
  }

  .specimen-head {
    padding: 13px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise {
    opacity: 1;
    transform: none;
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
