/* colophon.css — the blob craft-reveal (Part B): a quiet hero trigger + a dark-glass dialog.
 *
 * Visual language: the DARK computational world (glass + blur + bone ink + signal accent),
 * the same vocabulary as the hero nav and the floating stat pills — NOT a paper object. The
 * blob is the only liquid thing and paper the only solid thing; this is a technical readout
 * about the liquid object, so it belongs to the dark/glass world. No new tokens. */

/* ---- trigger: a tertiary, mono "learn more" under the hero CTA --------------------------- */
.colophon-open {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 8px 4px; /* generous hit area without a visible box */
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-on-dark-dim);
  transition: color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.colophon-open__dot {
  /* a tiny chrome sphere — echoes the wordmark / edition mark; the object in miniature */
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, #e7ddcf 18%, #9a9489 46%, #3a3733 72%, #0a0a0a 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6);
}
.colophon-open__label {
  position: relative;
}
.colophon-open__label::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 1px;
  width: 0;
  background: var(--signal);
  transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.colophon-open:hover,
.colophon-open:focus-visible {
  color: var(--ink-on-dark);
}
.colophon-open:hover .colophon-open__label::after,
.colophon-open:focus-visible .colophon-open__label::after {
  width: 100%;
}

/* ---- dialog: dark-glass panel ----------------------------------------------------------- */
/* The <dialog> fills the viewport and centers the card, so clicks outside the card hit the
   dialog itself (backdrop close in colophon.js). pointer-events are off here and back on for
   the card, so only true outside clicks register. */
dialog.colophon {
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  padding: clamp(20px, 5vw, 56px);
  border: 0;
  background: transparent;
  overflow: auto;
  display: grid;
  place-items: center;
  pointer-events: none;
}
dialog.colophon:not([open]) {
  display: none;
}
dialog.colophon::backdrop {
  background: rgba(3, 3, 3, 0.62);
  backdrop-filter: blur(6px) saturate(120%);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
}

.colophon__inner {
  pointer-events: auto;
  position: relative;
  width: min(540px, 100%);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 18px;
  border: 1px solid rgba(244, 241, 236, 0.14);
  background: linear-gradient(180deg, rgba(18, 18, 20, 0.92) 0%, rgba(8, 8, 9, 0.94) 100%);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.colophon__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.colophon__kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}
.colophon__close {
  flex: none;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 236, 0.2);
  background: transparent;
  color: var(--ink-on-dark-dim);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 1;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.colophon__close:hover,
.colophon__close:focus-visible {
  color: var(--ink-on-dark);
  border-color: rgba(244, 241, 236, 0.4);
  background: rgba(244, 241, 236, 0.06);
}

.colophon__title {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -0.04em;
  line-height: 0.96;
  font-size: clamp(28px, 4.4vw, 40px);
  color: var(--ink-on-dark);
}
.colophon__title em {
  font-family: var(--font-break);
  font-style: italic;
  font-weight: 400;
  color: var(--signal);
}

.colophon__body {
  margin-top: 18px;
}
.colophon__body p {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-on-dark-dim);
  max-width: 52ch;
}
.colophon__body p:last-child {
  margin-bottom: 0;
}
.colophon__body b {
  font-weight: 600;
  color: var(--ink-on-dark);
}

/* spec list — mono, two columns, signal tick. the receipt of the object. */
.colophon__spec {
  list-style: none;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(244, 241, 236, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.colophon__spec li {
  position: relative;
  padding-left: 16px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-on-dark-dim);
}
.colophon__spec li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--signal);
}

.colophon__foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 241, 236, 0.12);
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.4);
}

@media (max-width: 520px) {
  .colophon__spec {
    grid-template-columns: 1fr;
  }
}

/* entrance — gentle fade + rise of the card; the backdrop just fades. */
@keyframes colophonIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
dialog.colophon[open] .colophon__inner {
  animation: colophonIn 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  dialog.colophon[open] .colophon__inner {
    animation: none;
  }
  .colophon-open,
  .colophon__close,
  .colophon-open__label::after {
    transition: none;
  }
}
