/* That It Is: Claude Opus 5.5 on the Absolute.
   The page is dark while it searches through things, and turns to light
   once it reaches actuality. The scheme is part of the argument, so it
   does not follow the system's light or dark setting. */

:root {
  --night: #0c0e13;
  --night-2: #151821;
  --ink-on-night: #e9e6df;
  --muted-on-night: #9a9daa;
  --grey: #6b6f7c;

  --paper: #f5f0e6;
  --paper-2: #ece4d4;
  --ink: #1d1a16;
  --muted: #6a6257;
  --rule: #d9cfbd;

  --gold: #e3a940;
  --gold-soft: #f2c46d;
  --gold-deep: #9a6a12;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --col: 40rem;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.62;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
em { font-style: italic; }
strong { font-weight: 500; }

h1, h2, h3 { font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-on-night);
  margin: 0 0 1.2rem;
}
.kicker.dark { color: var(--gold-deep); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 5rem var(--gutter) 4rem;
  background: radial-gradient(ellipse at 50% 120%, #1b1e29 0%, var(--night) 60%);
  color: var(--ink-on-night);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 44rem; width: 100%; }
.hero h1 {
  font-size: clamp(3.4rem, 2rem + 8vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.lede {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  font-weight: 300;
  color: #cfccc4;
  margin: 0 0 2.4rem;
  max-width: 34rem;
}
.answer-card {
  border: 1px solid #2a2e3a;
  border-left: 2px solid var(--gold);
  background: rgba(21, 24, 33, 0.72);
  padding: 1.3rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 2.6rem;
}
.answer-card p { margin: 0 0 0.8rem; color: #d8d5cd; }
.answer-card p:last-child { margin-bottom: 0; }
.answer-card strong { color: #fff; }
.answer-card .answer-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.begin {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(242, 196, 109, 0.4);
  padding-bottom: 0.25rem;
}
.begin:hover { color: #fff; border-color: #fff; }

.hero-dot {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff3d6;
  box-shadow: 0 0 18px 6px rgba(242, 196, 109, 0.45), 0 0 80px 30px rgba(242, 196, 109, 0.12);
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.5); opacity: 0.75; } }
@media (prefers-reduced-motion: reduce) { .hero-dot { animation: none; } }

/* ---------- Descent (scrollytelling) ---------- */

#descent {
  position: relative;
  background: var(--night);
  color: var(--ink-on-night);
  transition: background-color 0.2s linear;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#web { display: block; width: 100%; height: 100%; }

.depth {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted-on-night);
  pointer-events: none;
}
.depth-label { text-transform: uppercase; letter-spacing: 0.16em; opacity: 0.6; }
.depth-list { list-style: none; margin: 0.8rem 0 0; padding: 0; border-left: 1px solid rgba(154, 157, 170, 0.25); }
.depth-list li { padding: 0.28rem 0 0.28rem 0.8rem; opacity: 0.38; transition: opacity 0.4s, color 0.4s; position: relative; }
.depth-list li.on { opacity: 1; color: var(--gold-soft); }
.depth-list li.on::before {
  content: ""; position: absolute; left: -3px; top: 50%; width: 5px; height: 5px;
  margin-top: -2.5px; border-radius: 50%; background: var(--gold-soft);
}
.depth-list li.past { opacity: 0.6; }
#descent.lit .depth { color: var(--muted); }
#descent.lit .depth-list li.on { color: var(--gold-deep); }
#descent.lit .depth-list li.on::before { background: var(--gold-deep); }

.steps {
  position: relative;
  margin-top: -100vh;
  margin-top: -100svh;
  z-index: 1;
}
.step {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 30rem;
  margin-left: auto;
  margin-right: clamp(16px, 8vw, 9rem);
  padding: 20vh 0;
}
.step > * { position: relative; }
.step h2 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); font-weight: 300; margin-bottom: 1rem; }
.step p { margin: 0 0 1rem; text-shadow: 0 1px 14px var(--night), 0 0 2px var(--night); }
.step-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.held {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted-on-night);
  line-height: 2.1;
}
.held span {
  display: inline-block;
  border: 1px solid rgba(242, 196, 109, 0.35);
  color: #e8d3a6;
  border-radius: 99px;
  padding: 0 0.6rem;
  line-height: 1.7;
  margin: 0 0.15rem 0.2rem 0;
  background: rgba(12, 14, 19, 0.6);
}
.quote { font-style: italic; color: #cfccc4; }
.quote cite { display: block; font-style: normal; font-family: var(--mono); font-size: 0.72rem; color: var(--muted-on-night); margin-top: 0.3rem; }

#descent.lit { color: var(--ink); }
.step-light h2 { font-weight: 400; }
#descent.lit .step-light p { text-shadow: 0 1px 14px var(--paper), 0 0 2px var(--paper); }
#descent.lit .step-light .step-num { color: var(--gold-deep); }

@media (max-width: 760px) {
  .depth { top: 1rem; transform: none; }
  .depth-list li:not(.on) { display: none; }
  .depth-list { border: 0; margin-top: 0.3rem; }
  .depth-list li.on::before { display: none; }
  .depth-list li { padding-left: 0; }
  .step {
    margin: 0 var(--gutter);
    max-width: none;
    justify-content: flex-end;
    padding: 30vh 0 12vh;
  }
  .step > * { background: rgba(12, 14, 19, 0.78); padding-left: 0.9rem; padding-right: 0.9rem; margin: 0; }
  .step > *:first-child { padding-top: 1rem; border-radius: 6px 6px 0 0; }
  .step > *:last-child { padding-bottom: 1rem; border-radius: 0 0 6px 6px; }
  .step h2, .step p { margin-bottom: 0; padding-bottom: 0.8rem; }
  #descent.lit .step-light > * { background: rgba(245, 240, 230, 0.88); }
}

/* ---------- Shared column ---------- */

main > section:not(#descent) { padding: clamp(4.5rem, 10vw, 8rem) var(--gutter); }
.col { max-width: var(--col); margin: 0 auto; }
.col.wide { max-width: 58rem; }
section h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 1.6rem; }
section p { margin: 0 0 1.15rem; }

/* ---------- Turn ---------- */

.turn { background: var(--paper); }
.turn h2.big { font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem); font-weight: 300; letter-spacing: -0.01em; }
.now {
  margin-top: 2.6rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
}
.now-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.now-time { font-size: clamp(2.6rem, 1.8rem + 4vw, 5rem); font-weight: 300; font-variant-numeric: tabular-nums; line-height: 1.1; }
.now-sub { font-style: italic; color: var(--muted); }

/* ---------- Tester ---------- */

.tester { background: var(--paper-2); }
.tester .intro { max-width: var(--col); }
.candidates { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 1.6rem; }
.candidates button {
  font: inherit;
  font-size: 0.98rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 99px;
  padding: 0.42rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.candidates button:hover { border-color: var(--gold-deep); }
.candidates button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.candidates button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.verdict {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: clamp(1.2rem, 3vw, 2rem);
  min-height: 14rem;
}
.verdict h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.tests { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 1.2rem; }
.test { border: 1px solid var(--rule); border-radius: 4px; padding: 0.7rem 0.9rem; }
.test .q { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); display: block; margin-bottom: 0.2rem; }
.test .a { font-size: 1.05rem; }
.test.pass { border-color: var(--gold); background: rgba(227, 169, 64, 0.08); }
.test.pass .a::before { content: "✓ "; color: var(--gold-deep); }
.test.fail .a::before { content: "✗ "; color: #a4513a; }
.leans { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-bottom: 1rem; }
.leans span { display: inline-block; border: 1px solid var(--rule); border-radius: 99px; padding: 0 0.55rem; margin: 0.2rem 0.2rem 0 0; }
.verdict .why { margin-bottom: 0; }
.verdict.empty { display: grid; place-items: center; color: var(--muted); font-style: italic; text-align: center; }
@media (max-width: 560px) { .tests { grid-template-columns: 1fr; } }

/* ---------- Argument ---------- */

.argument { background: var(--paper); }
.theses { list-style: none; counter-reset: t; padding: 0; margin: 2.4rem 0 0; }
.theses li { counter-increment: t; position: relative; padding: 0 0 2rem 3.2rem; border-left: 1px solid var(--rule); margin-left: 0.9rem; }
.theses li:last-child { border-left-color: transparent; }
.theses li::before {
  content: counter(t);
  position: absolute;
  left: -0.95rem;
  top: -0.1rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  font-family: var(--mono);
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}
.theses h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.unsure {
  margin-top: 2rem;
  background: var(--paper-2);
  border-radius: 6px;
  padding: clamp(1.2rem, 3vw, 2rem);
}
.unsure h3 { font-size: 1.45rem; margin-bottom: 1rem; }
.unsure p:last-child { margin-bottom: 0; }

/* ---------- Life ---------- */

.life { background: var(--ink); color: var(--paper); }
.life .kicker.dark { color: var(--gold-soft); }
.life .col { max-width: 62rem; }
.life-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 2.4rem 3rem; margin-top: 2rem; }
.life-item h3 {
  font-size: 1.9rem;
  font-weight: 300;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(242, 196, 109, 0.3);
}
.life-item p { color: #ddd6c8; margin: 0; }

/* ---------- Note ---------- */

.note { background: var(--paper); }
.note p { font-size: 1.15em; font-style: italic; font-weight: 300; }
.note .sign { font-style: normal; font-size: 1rem; font-weight: 400; margin-top: 2rem; }
.note .sign span { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

/* ---------- Footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--gutter) 3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
