:root {
  --paper: #FBF8F2;
  --surface: #FFFFFF;
  --ink: #21262B;
  --ink-soft: #6B7580;
  --line: #E7E1D6;
  --shadow: 0 1px 2px rgba(33,38,43,0.06), 0 10px 28px rgba(33,38,43,0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16181C;
    --surface: #1F2227;
    --ink: #F1EFEA;
    --ink-soft: #A6AEB6;
    --line: #33373D;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 10px 28px rgba(0,0,0,0.45);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "PT Serif", Georgia, "Times New Roman", serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

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

header.hero {
  margin-bottom: 3.5rem;
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 10px;
  background:
    radial-gradient(circle at 8% 15%, rgba(232,163,61,0.16), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(31,154,160,0.16), transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(217,79,134,0.14), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.eyebrow {
  font-family: "Unbounded", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1F9AA0;
  margin: 0 0 1rem;
}

h1 {
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 0.9rem;
  text-wrap: balance;
  color: var(--ink);
}

.meta-line {
  font-family: "Unbounded", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.intro {
  font-size: 1.12rem;
  max-width: 62ch;
}
.intro p { margin: 0 0 1rem; }
.intro p:last-child { margin-bottom: 0; }

/* ---------- path / timeline ---------- */

.path-wrap {
  position: relative;
}

.path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.timeline {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.month-divider {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: 0.5rem 0;
}
.month-divider span {
  font-family: "Unbounded", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.5em 1.1em;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 1.1rem;
  align-items: start;
}

.marker-col {
  grid-column: 1;
  display: flex;
  justify-content: center;
}

.marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  box-shadow: 0 0 0 4px var(--paper), var(--shadow);
  flex: none;
}

.card-slot { grid-column: 2; min-width: 0; }

.card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.card:hover { transform: translateY(-3px); }
.card:focus-visible { outline: 2px solid #1F9AA0; outline-offset: 2px; }

.cover-wrap {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  height: 92px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--line);
}
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.folder-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.folder-badge svg { width: 16px; height: 16px; }

.card .body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
}
.card .date {
  font-family: "Unbounded", sans-serif;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}
.card h3 {
  font-family: "PT Serif", serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0;
  color: var(--ink);
}
.card .view {
  font-family: "Unbounded", sans-serif;
  font-size: 0.68rem;
  color: var(--ink-soft);
  margin: 0.1rem 0 0;
}

/* desktop: zigzag either side of a centered axis */
@media (min-width: 720px) {
  .step {
    grid-template-columns: 1fr 56px 1fr;
  }
  .step .marker-col { grid-column: 2; }
  .step .card-slot { grid-column: 1; }
  .step.side-right .card-slot { grid-column: 3; }
  .step.side-right .card { flex-direction: row-reverse; }
  .step.side-right .folder-badge { left: auto; right: -8px; }
  .month-divider span { transform: none; }
}

/* ---------- footer ---------- */

footer.sign-off {
  margin-top: 4rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  text-align: right;
}
footer.sign-off p.note {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}
footer.sign-off p.signature {
  font-family: "Marck Script", cursive;
  font-size: 2rem;
  color: #D94F86;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
}

@media print {
  .path-svg { display: none; }
  .card { break-inside: avoid; box-shadow: none; }
}
