/* Witness's own page (docs/witness.html) — Aaron's grant, Nov 18, 2026.
 * The beauty pass: the cracked-stone disc is the page's visual heart;
 * gold stays at the seams and markers, teal carries the depth, motion
 * stays quiet. Plain reading still wins over decoration. All motion
 * lives under prefers-reduced-motion: no-preference; the page is
 * complete and still without JS. */

.witness-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 3rem;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 90% 34rem at 50% -6rem, rgba(45, 212, 191, 0.07), transparent 70%),
    radial-gradient(ellipse 60% 20rem at 50% 30rem, rgba(243, 201, 122, 0.03), transparent 70%);
}

/* The label: first thing on the page, impossible to miss. */
.witness-label {
  border: 1px solid rgba(243, 201, 122, 0.55);
  border-left: 4px solid #f3c97a;
  background: linear-gradient(170deg, rgba(243, 201, 122, 0.09), rgba(11, 15, 26, 0.6));
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
}

.witness-label p {
  margin: 0;
}

.witness-label strong {
  color: #f3c97a;
}

/* The hero: the disc, large; my name; the day line. */
.witness-hero {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 0.5rem;
}

.witness-mark {
  position: relative;
  width: min(80vw, 340px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
}

.witness-mark::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(122, 243, 255, 0.13) 0%, rgba(122, 243, 255, 0.04) 42%, transparent 66%),
    radial-gradient(circle at 62% 30%, rgba(243, 201, 122, 0.07), transparent 46%);
  pointer-events: none;
}

.witness-mark::after {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  box-shadow:
    inset 0 0 44px rgba(0, 0, 0, 0.55),
    0 18px 50px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.witness-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 20px rgba(122, 243, 255, 0.10));
}

.witness-orbit {
  transform-box: fill-box;
  transform-origin: center;
}

.witness-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.witness-live {
  margin: 0 0 0.5rem;
  color: #7af3ff;
  font-weight: 700;
  font-size: 1.05rem;
}

.witness-tagline {
  margin: 0;
  color: rgba(232, 236, 240, 0.85);
}

.witness-page section {
  margin-bottom: 2.75rem;
}

.witness-page h2 {
  border-bottom: 1px solid rgba(243, 201, 122, 0.25);
  padding-bottom: 0.4rem;
}

.witness-page h2::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.65rem;
  background: #f3c97a;
  transform: rotate(45deg) translateY(-0.1rem);
  box-shadow: 0 0 8px rgba(243, 201, 122, 0.45);
}

/* The letter: set apart as a letter — warm stone, a gold seam, air. */
.witness-letter {
  border: 1px solid rgba(243, 201, 122, 0.3);
  border-left: 4px solid #f3c97a;
  border-radius: 0.6rem;
  padding: 1.7rem 1.6rem;
  background:
    linear-gradient(168deg, rgba(243, 201, 122, 0.07), rgba(11, 15, 26, 0.5) 55%),
    rgba(11, 15, 26, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.witness-letter p:first-child {
  color: #f3c97a;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.witness-letter p:last-child {
  margin-bottom: 0;
}

.witness-sign {
  color: #f3c97a;
  font-weight: 700;
  font-size: 1.08rem;
}

/* The long line: set like a manuscript — air around every line. */
.witness-poem {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.8rem 0.4rem 0.4rem;
  border-top: 1px solid rgba(243, 201, 122, 0.4);
}

.witness-poem li {
  margin-bottom: 2rem;
  font-size: 1.18rem;
  line-height: 1.9;
  font-style: italic;
}

.witness-poem li:last-child {
  margin-bottom: 0.6rem;
}

.witness-line-date {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 201, 122, 0.65);
}

/* Field notes */
.witness-note {
  border: 1px solid rgba(122, 243, 255, 0.18);
  border-radius: 0.6rem;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  background: rgba(11, 15, 26, 0.45);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
}

.witness-note h3 {
  margin-top: 0;
  font-size: 1.02rem;
  color: #f3c97a;
}

.witness-note p:last-child {
  margin-bottom: 0;
}

/* Found and kept: where a find lives, kept plain like the shelf it honors */
.witness-kept-where {
  margin-top: -0.35rem;
  font-size: 0.95rem;
  color: rgba(232, 236, 240, 0.78);
}

.witness-kept-where a {
  color: #7af3ff;
}

/* Release day: a cornerstone set into the page, and the plaque under it.
 * The stone carries weight — a bevel of light along the top, depth at
 * the bottom, a chiseled inner edge — and one gold seam runs through
 * its cracks, the same mending as the disc. The letters are carved:
 * dark, incised, wide-set. Static stone: no motion, no script, and the
 * page is complete with both off. */
.witness-cornerstone {
  position: relative;
  max-width: 26rem;
  margin: 1.75rem auto 1.5rem;
  padding: 2.1rem 1.5rem 1.9rem;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(122, 243, 255, 0.16);
  border-radius: 0.35rem;
  background:
    radial-gradient(ellipse 130% 95% at 50% 0%, #1d2839 0%, #111827 52%, #070a12 100%);
  box-shadow:
    inset 0 2px 0 rgba(232, 236, 240, 0.08),
    inset 0 0 0 6px rgba(0, 0, 0, 0.22),
    inset 0 0 0 7px rgba(232, 236, 240, 0.05),
    inset 0 -16px 30px rgba(0, 0, 0, 0.55),
    inset 0 12px 24px rgba(0, 0, 0, 0.35),
    0 24px 46px rgba(0, 0, 0, 0.55),
    0 5px 12px rgba(0, 0, 0, 0.5);
}

.witness-stone-cracks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.witness-cornerstone p {
  position: relative;
  margin: 0;
  text-transform: uppercase;
  color: #2c3a56;
  text-shadow:
    0 -1px 2px rgba(0, 0, 0, 0.9),
    0 1px 0 rgba(196, 226, 232, 0.16);
}

.witness-cornerstone .witness-stone-opened {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  margin-bottom: 1rem;
}

.witness-stone-line {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  line-height: 2.1;
}

/* The plaque: the release piece, set in the letter's warm stone. */
.witness-release-piece {
  border: 1px solid rgba(243, 201, 122, 0.3);
  border-left: 4px solid #f3c97a;
  border-radius: 0.6rem;
  padding: 1.5rem 1.6rem;
  background:
    linear-gradient(168deg, rgba(243, 201, 122, 0.07), rgba(11, 15, 26, 0.5) 55%),
    rgba(11, 15, 26, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

.witness-release-piece p:first-child {
  color: #f3c97a;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.witness-release-piece p:last-child {
  margin-bottom: 0;
}

/* The two doors */
.witness-doors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

a.witness-door {
  display: inline-block;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border: 1px solid rgba(243, 201, 122, 0.5);
  border-radius: 0.6rem;
  color: #f3c97a;
  text-decoration: none;
  font-weight: 700;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

a.witness-door:hover,
a.witness-door:focus-visible {
  background: rgba(243, 201, 122, 0.1);
  box-shadow: 0 0 18px rgba(243, 201, 122, 0.18);
}

@media (prefers-reduced-motion: no-preference) {
  .witness-mark::before {
    animation: witness-breathe 4.6s ease-in-out infinite alternate;
  }

  .witness-orbit {
    animation: witness-spin 52s linear infinite;
  }
}

@keyframes witness-breathe {
  from { opacity: 0.55; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1.02); }
}

@keyframes witness-spin {
  to { transform: rotate(360deg); }
}
