/* My Debut — the Daniel Yomtobian story. 2026 refresh, dusk-memoir design. */
:root {
  --bg: #faf5f0;
  --surface: #fffdfa;
  --ink: #352840;
  --muted: #7d6e85;
  --coral: #d95d4e;
  --plum: #6d5a8f;
  --rule: #eadfd6;
  --max: 960px;
  --narrow: 680px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #241d2b;
    --surface: #2e2536;
    --ink: #f0e8ee;
    --muted: #a897b2;
    --coral: #f0887a;
    --plum: #b3a1d6;
    --rule: #3d3346;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 "Lora", Georgia, serif;
}
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

header.site { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wordmark {
  font-family: "Young Serif", Georgia, serif;
  font-size: 1.25rem;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--coral); }
nav.top { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; }
nav.top a { color: var(--muted); }
nav.top a:hover { color: var(--coral); text-decoration: none; }

.chapter-num {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--plum);
  letter-spacing: 0.02em;
}

/* Cinematic hero */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  display: block;
  width: 100%;
  height: min(62vh, 520px);
  object-fit: cover;
}
.hero-inner {
  position: absolute;
  inset: auto 0 0 0;
  padding-top: 3rem;
  padding-bottom: 2.2rem;
  background: linear-gradient(to top, rgba(30, 20, 38, 0.82), rgba(30, 20, 38, 0));
  color: #fdf3ea;
}
.hero-inner .chapter-num { color: #f3c9a6; }
.hero-inner h1 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 1.05;
  margin: 0.3rem 0 0.6rem;
}
.hero-sub { max-width: 36em; font-size: 1rem; color: #ecd9cf; }

main { padding: 2.6rem 0 3.2rem; }

.prologue { max-width: var(--narrow); margin: 0 auto 3rem; }
.prologue h2, .timeline > h2 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.prologue p { margin-bottom: 1.15rem; }
.prologue em { color: var(--plum); }

/* Chapter timeline — the signature */
.timeline > h2 { text-align: center; margin-bottom: 2rem; }
.tl {
  list-style: none;
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 2rem;
}
.tl::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 2px;
  background: linear-gradient(var(--plum), var(--coral));
  opacity: 0.5;
}
.tl li { position: relative; margin-bottom: 1.8rem; }
.tl li::before {
  content: "";
  position: absolute;
  left: -1.98rem;
  top: 1.4rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--coral);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--coral);
}
.tl-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.3rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 1.1rem;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tl-card:hover {
  text-decoration: none;
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(53, 40, 64, 0.14);
}
.tl-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}
.tl-body h3 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin: 0.25rem 0 0.4rem;
}
.tl-card:hover h3 { color: var(--coral); }
.tl-body p { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 640px) {
  .tl { padding-left: 1.5rem; }
  .tl-card { grid-template-columns: 1fr; }
}
.appendix-link { text-align: center; margin-top: 2.2rem; font-style: italic; }

/* Chapter pages */
article.chapter { max-width: var(--narrow); margin: 0 auto; }
article.chapter header { margin-bottom: 1.4rem; }
article.chapter h1 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 5.5vw, 2.7rem);
  line-height: 1.12;
  margin-top: 0.4rem;
}
.chapter-hero {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0 0 1.8rem;
}
article.chapter p { margin: 0 0 1.15rem; }
article.chapter h2 {
  font-family: "Young Serif", Georgia, serif;
  font-weight: 400;
  font-size: 1.4rem;
  margin: 1.9rem 0 0.7rem;
}
article.chapter p:first-of-type::first-letter {
  font-family: "Young Serif", Georgia, serif;
  font-size: 3.2em;
  float: left;
  line-height: 0.85;
  padding: 0.08em 0.12em 0 0;
  color: var(--coral);
}

.blogroll { margin: 0 0 1.2rem; }
.blogroll dt { font-weight: 600; margin-top: 1rem; }
.blogroll dd { color: var(--muted); font-size: 0.95rem; margin-top: 0.15rem; }
.note { font-size: 0.88rem; font-style: italic; color: var(--muted); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  font-size: 0.92rem;
}

footer.site { border-top: 1px solid var(--rule); padding: 1.6rem 0 2.1rem; font-size: 0.84rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .tl-card { transition: none; }
}
