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

:root {
  --cream: #faf7f2;
  --warm: #f5efe4;
  --gold: #b8923a;
  --ink: #1a1610;
  --text: #2e2820;
  --muted: #7a6e60;
  --border: #d6cfc4;
  --serif: Georgia, 'Times New Roman', serif;
}

html { min-height: 100%; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, li, a { overflow-wrap: break-word; }

nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 80px;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-logo span { color: var(--gold); }

.nav-logo-img { width: auto; height: 40px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 2px;
  background: var(--gold);
  color: #fff !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
}

main {
  position: relative;
  isolation: isolate;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(120px, 0.65fr) minmax(0, 1.35fr);
  min-height: 760px;
  padding-top: 73px;
}

main::before {
  position: absolute;
  inset: 73px 0 0;
  z-index: -2;
  content: '';
  background:
    radial-gradient(circle at 72% 34%, rgba(184, 146, 58, 0.12), transparent 24rem),
    linear-gradient(125deg, transparent 0 52%, rgba(214, 207, 196, 0.26) 52% 52.15%, transparent 52.15%);
}

.step-rail {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 64px 8vw;
  background: var(--warm);
  border-right: 1px solid var(--border);
}

.step-rail::after {
  position: absolute;
  top: 12%;
  right: -9rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(184, 146, 58, 0.25);
  border-radius: 50%;
  content: '';
}

.step-number {
  color: rgba(184, 146, 58, 0.26);
  font-size: clamp(8rem, 21vw, 18rem);
  font-variant-numeric: lining-nums;
  font-weight: normal;
  letter-spacing: -0.08em;
  line-height: 0.72;
  user-select: none;
}

.content {
  display: flex;
  align-items: center;
  padding: 96px clamp(36px, 9vw, 150px);
}

/* Pages now carry a preview and FAQ, so the rail can be taller than the viewport.
   Keep the numeral in view rather than stranding it at the very bottom. */
@media (min-width: 769px) {
  .content { align-items: flex-start; }
  .step-number { position: sticky; bottom: 0; }
}

.content-inner {
  min-width: 0;
  max-width: 720px;
  animation: reveal 700ms ease-out both;
}

.eyebrow {
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(2.75rem, 6vw, 5.6rem);
  font-weight: normal;
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.rule {
  width: 72px;
  height: 1px;
  margin: 40px 0 28px;
  background: var(--gold);
  transform-origin: left;
  animation: draw 700ms 250ms ease-out both;
}

.status {
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* PREVIEW — the classical position, stated ahead of the full treatment */
.preview { margin-top: 46px; }

.preview h2 {
  margin-bottom: 20px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: normal;
  line-height: 1.3;
}

.preview p {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
}

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

.preview strong { color: var(--ink); font-weight: normal; border-bottom: 1px solid var(--gold); }

/* ESSAY — the full treatment, on steps that have one.
   Steps still awaiting theirs keep .preview above and simply omit this block. */
.essay { margin-top: 52px; }

.essay-section + .essay-section {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.essay-section h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(1.3rem, 2.3vw, 1.6rem);
  font-weight: normal;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.essay-section h3 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0.04em;
}

.essay-section p {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
}

.essay-section p:last-child { margin-bottom: 0; }

.essay-section strong { color: var(--ink); font-weight: normal; border-bottom: 1px solid var(--gold); }
.essay-section em { color: var(--ink); }

.essay-section ul {
  max-width: 680px;
  margin: 0 0 18px 1.1em;
  padding: 0;
}

.essay-section li {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.8;
}

.essay-section li::marker { color: var(--gold); }

blockquote.pull {
  max-width: 660px;
  margin: 28px 0;
  padding: 4px 0 4px 26px;
  border-left: 1px solid var(--gold);
  color: var(--ink);
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.75;
}

blockquote.pull cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sources {
  margin-top: 44px;
  padding: 26px 28px;
  background: var(--warm);
  border-left: 1px solid var(--gold);
}

.sources h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sources p, .sources li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.sources ul { margin: 0 0 0 1.1em; padding: 0; }
.sources li { margin-bottom: 8px; }
.sources li:last-child { margin-bottom: 0; }
.sources li::marker { color: var(--gold); }

/* FAQ */
.faq {
  margin-top: 56px;
  padding-top: 44px;
  border-top: 1px solid var(--border);
}

.faq h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq > p.faq-intro {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.93rem;
  font-style: italic;
}

.faq-list { max-width: 680px; }

.faq-item + .faq-item {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin-bottom: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: normal;
  line-height: 1.4;
}

.faq-item p { color: var(--text); font-size: 1rem; line-height: 1.85; }
.faq-item p + p { margin-top: 12px; }
.faq-item strong { color: var(--ink); font-weight: normal; border-bottom: 1px solid var(--gold); }
.faq-item a { color: var(--gold); text-underline-offset: 0.18em; }

.faq-more {
  display: inline-block;
  margin-top: 30px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.faq-more:hover,
.faq-more:focus-visible { border-bottom-color: var(--gold); }

.step-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.step-nav a {
  color: var(--muted);
  font-size: 0.83rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 180ms ease;
}

.step-nav a:hover,
.step-nav a:focus-visible { color: var(--gold); }

.step-nav .next { color: var(--gold); text-align: right; }

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 80px;
  background: var(--ink);
}

footer p,
footer a {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-decoration: none;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; flex-wrap: wrap; row-gap: 10px; }
  .nav-links { gap: 18px; width: 100%; justify-content: center; }

  main {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 108px;
  }

  main::before { inset: 108px 0 0; }

  .step-rail {
    min-height: 210px;
    align-items: flex-end;
    padding: 48px 24px 30px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .step-number { font-size: clamp(7rem, 38vw, 11rem); }
  .content { padding: 60px 24px 72px; }
  .step-nav { align-items: flex-start; margin-top: 56px; }
  footer { flex-direction: column; padding: 24px; text-align: center; }
}

@media (max-width: 480px) {
  nav { gap: 10px; padding-inline: 16px; }
  .nav-logo { font-size: 0.88rem; letter-spacing: 0.09em; }
  .nav-logo-img { height: 28px; }
  .nav-cta { padding: 7px 12px; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.6rem); }
  .step-nav { flex-direction: column; }
  .step-nav .next { text-align: left; }
}
