/* lander.css */

:root {
  --bg:        #0a0807;
  --bg-alt:    #0e0c0a;
  --bg-card:   rgba(232,228,221,0.012);
  --bg-card-hi: rgba(232,228,221,0.025);

  --fg:        #e8e4dd;
  --fg-mid:    #b0aba2;
  --fg-dim:    #837f78;
  --fg-faint:  #5d5953;
  --fg-min:    #322f2a;

  --rule:      rgba(232,228,221,0.06);
  --rule-hi:   rgba(232,228,221,0.12);

  --pad:       max(24px, 4vw);
  --max:       1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

::selection {
  background: rgba(232, 228, 221, 0.22);
  color: var(--bg);
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 120ms ease, color 120ms ease;
}
a:hover {
  border-bottom-color: var(--fg);
}
a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

code, pre, .mono {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* --- hero ----------------------------------------------------------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 14vh, 160px) var(--pad) clamp(48px, 10vh, 96px);
}
.hero--monolith {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 32px;
}
.monolith-block {}
h1.monolith-glyph {
  display: flex;
  /* flex-end matches the wordmark text-bottom to the mark's bottom edge. */
  align-items: flex-end;
  gap: 24px;
  margin: 0;
  font: inherit;
}
.monolith-mark {
  height: 120px;
  width: 120px;
  display: block;
}
.monolith-wordmark {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(64px, 9vw, 96px);
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 0.85;
  text-transform: lowercase;
}
.monolith-wordmark .g {
  display: inline-block;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .monolith-wordmark .g {
    transform: none !important;
  }
  .anchor-ticker .t-pulse {
    animation: none;
  }
  .anchor-ticker .t-rollover {
    animation: none;
  }
}
@media (max-width: 600px) {
  .monolith-glyph { gap: 16px; }
  .monolith-mark { height: 80px; width: 80px; }
}

/* --- thesis column (numbered prose, replaces card grid) ------------ */

.thesis-column {
  /* position:relative anchors the ::before spine. */
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--pad) 24px;
  position: relative;
}
.thesis-column::before {
  /* top:88px = column padding-top + first item padding-top.
     bottom:-36px overhangs into body's ticker-reserve padding so the
     spine terminates at the ticker's top edge. */
  content: '';
  position: absolute;
  left: var(--pad);
  top: 88px;
  bottom: -36px;
  width: 1px;
  background: var(--rule);
  pointer-events: none;
}
.thesis-item {
  max-width: 680px;
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 24px;
  padding: 32px 0 32px 20px;
  transition: opacity 280ms ease-out;
}
.thesis-num {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  padding-top: 4px;
  transition: color 280ms ease-out;
}
.thesis-lead {
  grid-column: 2;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}
.thesis-body {
  grid-column: 2;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-mid);
  margin: 0;
}
.thesis-body + .thesis-body {
  margin-top: 12px;
}
.thesis-body strong {
  color: var(--fg);
  font-weight: 600;
}
/* In-prose links: brighter underline than the global --rule (6% opacity
 * disappears against body text). */
.thesis-body a {
  color: var(--fg);
  border-bottom: 1px solid var(--fg-dim);
}
.thesis-body a:hover {
  border-bottom-color: var(--fg);
}

/* Sibling-dim on hover. :has() limits to modern browsers. */
.thesis-column:has(.thesis-item:hover) .thesis-item:not(:hover) {
  opacity: 0.65;
}
.thesis-item:hover .thesis-num {
  color: var(--fg);
}

@media (max-width: 600px) {
  .thesis-item { grid-template-columns: 32px 1fr; column-gap: 16px; }
  .thesis-num { font-size: 12px; }
  .thesis-body { font-size: 16px; }
}

/* --- live anchor ticker -------------------------------------------- */

.anchor-ticker {
  /* Outer is viewport-width; inner is constrained to var(--max) so
   * the pulse dot sits on the same x as the thesis spine. */
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--fg-dim);
  overflow: hidden;
  white-space: nowrap;
}
.anchor-ticker-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px var(--pad);
  display: flex;
  align-items: center;
  gap: 10px;
}
.anchor-ticker[hidden] { display: none; }
.anchor-ticker .t-pulse {
  /* margin-left:-2.5px centers the 6px dot on the 1px spine
     ((dotW - spineW) / 2). */
  width: 6px;
  height: 6px;
  background: var(--fg-mid);
  flex-shrink: 0;
  margin-left: -2.5px;
  animation: anchor-pulse 2.4s ease-in-out infinite;
}
@keyframes anchor-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.0); }
}
.anchor-ticker .t-sep { color: var(--fg-min); }
/* --rollover-base lets the shared .t-rollover keyframes decay each element
 * back to its own base color without per-element animations. */
.anchor-ticker .t-when {
  --rollover-base: var(--fg-mid);
  color: var(--rollover-base);
}
.anchor-ticker .t-stamp {
  --rollover-base: var(--fg-dim);
  color: var(--rollover-base);
}
.anchor-ticker .t-stamp.ok {
  --rollover-base: var(--fg-mid);
}
/* Submitted-but-not-confirmed (OTS awaiting blockchain confirmation, DSQ-716):
 * italic marks in-progress without the brightness that reads as attested. */
.anchor-ticker .t-stamp.pending {
  font-style: italic;
}
/* State-change flash. JS adds .t-rollover via remove+reflow+add to
 * restart the animation on each event. */
@keyframes t-rollover {
  0%   { color: var(--fg);              }
  100% { color: var(--rollover-base);   }
}
.anchor-ticker .t-rollover {
  animation: t-rollover 700ms ease-out;
}
/* Pushed to the far right of the bar; quiet until hover. */
.anchor-ticker .t-login {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 120ms ease-out;
}
.anchor-ticker .t-login:hover,
.anchor-ticker .t-login:focus-visible {
  color: var(--fg);
}
body {
  padding-bottom: 36px;        /* reserve for the fixed ticker */
  scrollbar-gutter: stable;
}
@media (max-width: 720px) {
  .anchor-ticker { font-size: 10px; }
  .anchor-ticker-inner {
    gap: 6px;
    padding: 7px 12px;
  }
  .anchor-ticker .t-sep { display: none; }
}

/* --- spine branch / outlink ---------------------------------------- */
/* Traveling pulse is JS-driven (lander.js initOutlinkPulse). */
.thesis-outlink {
  max-width: 680px;
  padding: 32px 0 24px 0;
  display: flex;
  align-items: center;
  gap: 14px;
}
.thesis-outlink-line {
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.thesis-outlink-target {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
  transition: color 200ms ease;
}
.thesis-outlink-target:hover {
  color: var(--fg);
  border-bottom: 0;
}
