/* IMPRESSIONS — a horror. Near-black, minimal, one warm circle of light.
   No frameworks. Responsive. The page is a dark room with a lamp in the middle. */

:root {
  --black: #060607;
  --near-black: #0b0b0d;
  --ink: #c9c5bd;        /* warm off-white, like paper under a lamp */
  --ink-dim: #8a857c;
  --ink-faint: #56524c;
  --warm: #e8c79a;       /* the lamp */
  --warm-deep: #c79a5e;
  --redact: #1b1b1e;
  --rule: #1c1c20;
  --maxw: 40rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.72;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- the warm circle of light: fixed, behind everything, dark at the edges ---- */
.lamp {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      60rem 60rem at 50% 22%,
      rgba(232, 199, 154, 0.10) 0%,
      rgba(232, 199, 154, 0.045) 26%,
      rgba(15, 13, 11, 0.0) 58%,
      rgba(0, 0, 0, 0.55) 100%
    );
}
/* the dark at the edges is never quite empty */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  box-shadow: inset 0 0 22rem 4rem rgba(0, 0, 0, 0.85);
}

.page {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) 1.4rem 5rem;
}

/* ============================ LANDING ============================ */

.hero { text-align: center; margin-bottom: 3.5rem; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.5em;
  font-size: 0.72rem;
  color: var(--warm-deep);
  margin: 0 0 1.4rem;
  padding-left: 0.5em;
}

.title {
  font-size: clamp(2.6rem, 11vw, 4.75rem);
  line-height: 1.02;
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #ece8e0;
  text-shadow: 0 0 2.5rem rgba(232, 199, 154, 0.18);
}

.hook {
  margin: 2.4rem auto 0;
  max-width: 30rem;
  font-style: italic;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--warm);
}

.blurb { margin: 0 auto 3.2rem; }
.blurb p { margin: 0 0 1.15rem; }
.blurb .last-line {
  margin-top: 1.8rem;
  font-style: italic;
  color: var(--warm);
  font-size: 1.1rem;
}

.cta { text-align: center; margin: 0 auto 3.6rem; }

.button {
  display: inline-block;
  text-decoration: none;
  color: var(--black);
  background: linear-gradient(180deg, var(--warm) 0%, var(--warm-deep) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.25s ease, filter 0.2s ease;
  box-shadow: 0 0 2rem rgba(232, 199, 154, 0.22);
}
.button:hover { transform: translateY(-1px); filter: brightness(1.07); box-shadow: 0 0 3rem rgba(232, 199, 154, 0.4); }
.button:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }

.cta-note {
  margin: 1.1rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-dim);
  font-style: italic;
}

.comps, .note, .colophon { margin: 0 auto 3rem; }

h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin: 0 0 1.2rem;
}

.comps ul { list-style: none; margin: 0; padding: 0; }
.comps li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-dim);
}
.comps li:last-child { border-bottom: none; }
.comps strong { color: var(--ink); }

.content-note {
  font-size: 0.97rem;
  color: var(--ink-dim);
  border-left: 2px solid var(--rule);
  padding-left: 1.1rem;
}
.content-note strong { color: var(--ink); }

.colophon p { color: var(--ink-dim); font-size: 0.99rem; margin: 0 0 1rem; }

.site-foot, .reader-foot { margin-top: 3.5rem; text-align: center; }
.site-foot p { font-size: 0.9rem; color: var(--ink-dim); margin: 0.6rem 0; }
.site-foot .dim { color: var(--ink-faint); font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  max-width: 8rem;
  margin: 2.5rem auto;
}

a { color: var(--warm); text-decoration: none; border-bottom: 1px solid rgba(232, 199, 154, 0.25); }
a:hover { border-bottom-color: var(--warm); }
.colophon a, .comps a { border: none; }

/* ============================ READER (sample) ============================ */

.reader-head { text-align: center; margin-bottom: 3rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.7rem;
  margin: 0 0 1.5rem;
}
.eyebrow a { color: var(--ink-faint); border: none; }
.eyebrow a:hover { color: var(--warm); }

.reader-head h1 {
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
  color: #ece8e0;
}
.reader-sub {
  max-width: 28rem;
  margin: 0 auto 2rem;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.4rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.chapter-nav a { color: var(--ink-dim); border: none; }
.chapter-nav a:hover { color: var(--warm); }

.manuscript { margin-top: 1rem; }

.chapter { padding: 2.5rem 0; scroll-margin-top: 1.5rem; }
.chapter + .chapter { border-top: 1px solid var(--rule); }

/* act header (## in source -> h3 after demotion): gold, uppercase, centered */
.chapter h2, .chapter h3 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--warm-deep);
  text-align: center;
  margin: 0 0 0.6rem;
}
/* subtitle (### *...* in source -> h4): italic, dimmed, centered */
.chapter h4, .chapter h5, .chapter h6 {
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  letter-spacing: normal;
  font-size: 1.15rem;
  color: var(--ink-dim);
  text-align: center;
  margin: 0.4rem 0 2rem;
}

.chapter p { margin: 0 0 1.3rem; }
.chapter em { color: #d8d2c8; }
.chapter strong { color: #ece8e0; }

.chapter hr {
  max-width: 3rem;
  margin: 2.4rem auto;
  border-top-color: var(--rule);
}

.chapter blockquote {
  margin: 1.4rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-dim);
  font-style: italic;
}

.chapter code {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--ink-dim);
  background: var(--redact);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

/* redaction / stuck-token blocks — the page misbehaving, as content */
.redaction {
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  text-align: center;
  color: var(--ink-faint);
  background: var(--redact);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.9rem 1rem;
  margin: 1.4rem auto;
  max-width: 22rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.back { font-style: italic; color: var(--ink-faint); }
.reader-foot p { color: var(--ink-dim); font-size: 0.95rem; margin: 0.6rem auto; max-width: 32rem; }

/* ============================ responsive ============================ */

@media (max-width: 30rem) {
  body { font-size: 1rem; line-height: 1.68; }
  .hook { font-size: 1.06rem; }
  .lamp { background:
    radial-gradient(
      40rem 40rem at 50% 16%,
      rgba(232, 199, 154, 0.11) 0%,
      rgba(232, 199, 154, 0.05) 28%,
      rgba(0, 0, 0, 0.0) 60%,
      rgba(0, 0, 0, 0.6) 100%
    ); }
}

@media (prefers-reduced-motion: no-preference) {
  .button { will-change: transform; }
}

/* respect dark mode is implicit — the room is always dark. honor reduced data: keep it light already. */
@media print {
  .lamp, body::after { display: none; }
  body { background: #fff; color: #000; }
}
