/* ==========================================================================
   GCY "behind glass" (site v5, 3 Dec 2026): /signin/ and /records/.
   A specimen case: deep stamp-ink field, faint graph-paper etching, the three
   site inks (stamp blue, sage, ochre) as soft light behind a frosted pane.
   The SHA-256 is set as an engraved 4 x 16 plate. No external assets.
   ========================================================================== */

.glass-main {
  --field-0: #0F1A3B;
  --field-1: #1A2C63;
  --glow-blue: #3D5FD0;
  --glow-sage: #4FA37E;
  --glow-ochre: #D79A45;
  --glass-ink: #F2F4FA;
  --glass-ink-soft: #C5CEE6;
  --glass-edge: rgba(255, 255, 255, 0.26);
  --glass-fill: rgba(246, 248, 255, 0.09);
  --glass-fallback: rgba(20, 34, 78, 0.94);
  display: block;
}

/* ---------- the case ---------- */
.vitrine {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.25rem, 7vw, 5.5rem) 1.1rem clamp(2.5rem, 8vw, 6rem);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--field-1) 0%, var(--field-0) 70%);
  color: var(--glass-ink);
}

/* light behind the glass: three inks, blurred */
.vitrine-light {
  position: absolute;
  inset: -20% -10%;
  z-index: -2;
  background:
    radial-gradient(34% 40% at 22% 34%, rgba(61, 95, 208, 0.85), transparent 70%),
    radial-gradient(30% 36% at 78% 22%, rgba(79, 163, 126, 0.55), transparent 70%),
    radial-gradient(36% 34% at 64% 88%, rgba(215, 154, 69, 0.50), transparent 72%);
  filter: blur(36px);
}

/* graph-paper etching (the archive's ruled sheet), very faint */
.vitrine::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 45%, #000 40%, transparent 100%);
}

/* ---------- the pane ---------- */
.pane {
  position: relative;
  margin: 0 auto;
  max-width: 40rem;
  padding: clamp(1.4rem, 4.5vw, 2.4rem) clamp(1.2rem, 4.5vw, 2.6rem);
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  background: var(--glass-fallback);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(4, 8, 24, 0.25),
    0 36px 70px -28px rgba(4, 8, 24, 0.75);
  color: var(--glass-ink);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .pane {
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 42%, rgba(255, 255, 255, 0.08) 100%),
      var(--glass-fill);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    backdrop-filter: blur(22px) saturate(150%);
  }
}
/* a single sheen along the top edge of the glass */
.pane::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.pane-signin { max-width: 25rem; }
.pane-index { max-width: 46rem; }

.pane a { color: #DCE5FF; text-decoration-color: rgba(220, 229, 255, 0.5); text-underline-offset: 0.18em; }
.pane a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.pane a:focus-visible, .glass-notes a:focus-visible {
  outline: 2px solid #FFD08A;
  outline-offset: 3px;
  border-radius: 3px;
}

.pane-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.55rem, 1.1rem + 2.1vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--glass-ink);
  text-wrap: balance;
}
.pane-signin .pane-title { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.5rem); }
.pane-lede {
  margin: 0 0 1.4rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--glass-ink-soft);
}
.pane-crumb {
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}
.pane-note {
  margin: 1.1rem 0 0;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--glass-ink-soft);
}

/* ---------- sign-in fields (disabled; nothing is collected) ---------- */
.signin-fields { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.35rem; font-family: var(--font-sans); font-size: 0.9rem; color: var(--glass-ink-soft); }
.field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--glass-ink);
  background: rgba(8, 14, 36, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 11px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  cursor: not-allowed;
  opacity: 1;
}
.pane-button {
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #E9EEFB;
  background: linear-gradient(180deg, rgba(110, 140, 230, 0.42), rgba(61, 95, 208, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 11px;
  cursor: not-allowed;
}

/* ---------- record facts ---------- */
.facts { margin: 1.1rem 0 0; display: grid; gap: 0; }
.fact {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.4rem 1.1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.fact dt {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--glass-ink-soft);
  padding-top: 0.15rem;
}
.fact dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--glass-ink);
}
.status-note { display: block; margin-top: 0.45rem; color: var(--glass-ink-soft); font-size: 0.9rem; }

/* the seal: SHA-256 engraved as a 4 x 16 plate; one contiguous string in the text */
.seal {
  display: block;
  width: calc(16.6ch + 16 * 0.2em + 1.6rem + 2px);
  max-width: 100%;
  padding: 0.75rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  line-height: 1.6;
  letter-spacing: 0.2em;
  word-break: break-all;
  overflow-wrap: anywhere;
  color: #F6F1E6;
  background: rgba(6, 10, 28, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.08);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
  user-select: all;
}
.seal-of { display: block; margin-top: 0.45rem; font-size: 0.875rem; color: var(--glass-ink-soft); }

/* status chips: the site's three label inks, lifted for the dark case */
.chip {
  display: inline-block;
  padding: 0.12rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid currentColor;
  line-height: 1.5;
}
.chip-proved { color: #BFE8D3; background: rgba(79, 163, 126, 0.2); }
.chip-computed { color: #CAD7FF; background: rgba(61, 95, 208, 0.24); }
.chip-conditional { color: #F4D6A8; background: rgba(215, 154, 69, 0.2); }

/* ---------- index ledger ---------- */
.ledger { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.ledger-row {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ledger-title { font-family: var(--font-serif); font-size: 1.12rem; line-height: 1.35; }
.ledger-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-family: var(--font-sans); font-size: 0.9rem; color: var(--glass-ink-soft); }
.ledger-hash {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--glass-ink-soft);
  background: transparent;
  padding: 0;
  border: 0;
  overflow-wrap: anywhere;
}

/* ---------- notes on paper, below the case ---------- */
.glass-notes {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-family: var(--font-serif);
  color: var(--ink);
}
.glass-notes p { margin: 0 0 1rem; line-height: 1.7; }
.glass-notes .credit {
  padding-left: 1rem;
  border-left: 2px solid var(--sage, #245740);
}

/* ---------- small screens ---------- */
@media (max-width: 560px) {
  .fact { grid-template-columns: 1fr; padding: 0.8rem 0; }
  .seal { font-size: 0.9rem; letter-spacing: 0.16em; width: calc(16.6ch + 16 * 0.16em + 1.6rem + 2px); }
  .pane { border-radius: 16px; }
}

@media (prefers-reduced-transparency: reduce) {
  .pane { background: var(--glass-fallback); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .pane, .seal, .field input { border: 1px solid CanvasText; }
}
