/* THE MERCY OF THE FUTURE — site styles */

:root {
  --ink: #e8e6e1;
  --ink-dim: #9a978f;
  --ink-faint: #6b6860;
  --bg: #0c0d0f;
  --bg-raise: #131418;
  --grey: #b9bcc2;       /* the dream-grey */
  --accent: #c9a86a;     /* a single warm light in a window */
  --rule: #26272b;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', Palatino, serif;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.72;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- shared shell ---- */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 28px; }

/* ---- hero ---- */
.hero {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201,168,106,0.06), transparent 60%),
    var(--bg);
}

.kicker {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 2rem;
}

.hero h1 {
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.hero .epigraph {
  margin-top: 2.4rem;
  font-style: italic;
  color: var(--grey);
  font-size: 1.15rem;
}

.hero .by {
  margin-top: 2.6rem;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cta {
  margin-top: 3rem;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: var(--bg-raise);
  transition: border-color .2s, color .2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn.primary { border-color: var(--accent); color: var(--accent); }

/* ---- sections ---- */
section { padding: 5.5rem 0; border-bottom: 1px solid var(--rule); }

h2.section-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.8rem;
}

section p { margin-bottom: 1.3rem; color: var(--ink); }
section p.lead { font-size: 1.2rem; color: var(--grey); }

blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 1.4rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--grey);
}

/* ---- parts list ---- */
.parts { list-style: none; }
.parts li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
}
.parts li:last-child { border-bottom: none; }
.parts .pt { font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.parts .pd { color: var(--ink-dim); font-size: 0.96rem; }

/* ---- excerpt ---- */
.excerpt {
  background: var(--bg-raise);
  border: 1px solid var(--rule);
  padding: 2.4rem;
  font-size: 1.05rem;
}
.excerpt p { color: var(--grey); }

/* ---- footer ---- */
footer {
  padding: 3rem 0 4rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}
footer p { margin-bottom: 0.6rem; }

/* ---- manuscript reading view ---- */
.reader { max-width: 680px; margin: 0 auto; padding: 4rem 28px 6rem; }
.reader .topbar {
  position: sticky; top: 0; background: rgba(12,13,15,0.92);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule);
  padding: 14px 0; margin: -4rem -28px 3rem; text-align: center;
}
.reader .topbar a { font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; }
.reader h1 {
  font-weight: 400; font-size: 2rem; line-height: 1.2;
  margin: 4.5rem 0 0.4rem; padding-top: 3rem; border-top: 1px solid var(--rule);
}
.reader h1:first-of-type { border-top: none; padding-top: 0; margin-top: 1rem; }
.reader h3 { font-weight: 400; font-style: italic; color: var(--accent);
  font-size: 1.1rem; margin: 1.5rem 0; }
.reader h2 { font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint);
  margin: 2rem 0 1rem; }
.reader p { margin-bottom: 1.25rem; }
.reader em { color: var(--grey); }
.reader hr { border: none; text-align: center; margin: 2.4rem 0; }
.reader hr::after { content: "❖"; color: var(--ink-faint); font-size: 0.9rem; }
.reader blockquote { font-size: 1.05rem; }

@media (max-width: 560px) {
  body { font-size: 18px; }
  section { padding: 4rem 0; }
}
