/* =============================================================
   Işığım — Web components (lighthouse edition)
   Depends on: fonts.css (from the base kit) + tokens-isigim.css
   Reuses the songbook anatomy; swaps daisy furniture for the
   lighthouse / raven / book motif system.
   ============================================================= */

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

body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Sheet ------------------------------------------------- */
.sheet {
  position: relative; max-width: var(--sheet-max); margin: 40px auto;
  padding: var(--sheet-pad); background: var(--cream); border-radius: 4px;
  box-shadow: 0 10px 40px rgba(74, 68, 60, 0.08);
}
.sheet--cover {
  background: radial-gradient(120% 85% at 50% 12%, #FFFDF7 0%, var(--cream) 48%, var(--cream-2) 100%);
}
.sheet .frame { position: absolute; inset: var(--frame-inset); border: 1px solid var(--line);
  border-radius: 3px; pointer-events: none; }
.sheet .frame.double::after { content: ""; position: absolute; inset: 7px;
  border: 0.6px solid var(--rule-soft); border-radius: 2px; }
.sheet .corner { position: absolute; width: 120px; height: 120px;
  background: no-repeat center / contain; opacity: 0.9; pointer-events: none;
  background-image: url(../svg/isigim/corner-waves.svg); }
.sheet .corner.tl { top: 10px; left: 10px; }
.sheet .corner.br { bottom: 10px; right: 10px; transform: rotate(180deg); }
.sheet__body { position: relative; z-index: 1; }

/* ---- Lighthouse divider ------------------------------------ */
.lh-divider { display: block; width: 300px; max-width: 70%; height: auto; margin: 18px auto 26px; }

/* ---- Poem header ------------------------------------------- */
.poem-head { text-align: center; }
.number-word { font-family: var(--font-script); font-size: var(--fs-numberword);
  color: var(--sea); line-height: 1; margin-bottom: 4px; }
.label-word { font-family: var(--font-script); font-size: 26px; color: var(--sea);
  line-height: 1; margin-bottom: 4px; }
.poem-title { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-title);
  color: var(--ink); letter-spacing: .4px; margin: 2px 0 8px; }
.gloss { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-credit);
  letter-spacing: var(--credit-track); text-transform: uppercase; color: var(--ink-soft); }
/* untitled interlude: a small lighthouse stands in for the title */
.interlude-mark { width: 46px; height: auto; margin: 0 auto; display: block; }

/* ---- Verse ------------------------------------------------- */
.verse { text-align: center; }
.stanza { font-family: var(--font-body); font-size: var(--fs-verse); line-height: var(--lh-verse);
  color: var(--verse-color); margin: 0; }
.stanza + .stanza { margin-top: var(--stanza-gap); }
.stanza.refrain { font-style: italic; color: var(--sea-deep); }

/* ---- Foot: book cue + folio -------------------------------- */
.foot { text-align: center; margin-top: 40px; }
.foot .cue { margin-bottom: 22px; }
.foot .cue img { width: 26px; height: 26px; }
.foot .cue .hair { width: var(--cue-hair-w); height: 1px; background: var(--hair); margin: 8px auto 0; }
.foot .folio { font-family: var(--font-sans); font-weight: 300; font-size: var(--fs-folio);
  letter-spacing: var(--folio-track); color: var(--ink-soft); }
/* the book cue shows ONLY on a sheet that continues */
.sheet:not(.continues) .foot .cue { display: none; }

/* ---- Cover ------------------------------------------------- */
.cover { text-align: center; padding: 30px 12px; }
.cover .kicker { font-family: var(--font-sans); font-size: 10px; letter-spacing: 6px;
  text-transform: uppercase; color: var(--ink-soft); }
.cover h1 { font-family: var(--font-script); font-weight: 400; font-size: var(--fs-cover-title);
  line-height: 1; color: var(--ink); margin: 20px 0 0; }
.cover .sub { font-family: var(--font-display); font-weight: 500; font-style: italic;
  font-size: var(--fs-cover-sub); color: var(--sea-deep); margin: 12px auto 0; max-width: 30em; }
.cover .scene { width: 330px; max-width: 82%; height: auto; margin: 18px auto 0; display: block; }
.cover .rule { width: 120px; height: 1px; background: var(--line); margin: 16px auto; }
.cover .author { font-family: var(--font-sans); font-weight: 300; font-size: 13px; letter-spacing: 6px;
  text-transform: uppercase; color: var(--ink-soft); }

/* ---- Dedication -------------------------------------------- */
.dedication { text-align: center; padding: 90px 12px; }
.dedication .lines { font-family: var(--font-display); font-style: italic; font-size: 27px;
  line-height: 1.8; color: var(--ink); }
.dedication .book { width: 34px; height: auto; margin: 26px auto 0; display: block; }

/* ---- Section divider --------------------------------------- */
.section { text-align: center; padding: 70px 12px; }
.section .scene { width: 300px; max-width: 78%; height: auto; margin: 0 auto 22px; display: block; }
.section h2 { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-section);
  color: var(--ink); margin: 0; letter-spacing: .5px; }
.section .gloss { font-family: var(--font-sans); font-size: 9.5px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* ---- Table of contents ------------------------------------- */
.toc .kick { font-family: var(--font-script); font-size: 22px; text-align: center; color: var(--sea-deep); }
.toc h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; text-align: center;
  color: var(--ink); margin: 2px 0 0; letter-spacing: .5px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { display: flex; align-items: baseline; gap: 12px; padding: 6.5px 2px; }
.toc .num { font-family: var(--font-sans); font-weight: 500; font-size: 11px; color: var(--gold);
  flex: 0 0 26px; letter-spacing: 1px; }
.toc .tt { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); white-space: nowrap; }
.toc .dots { flex: 1 1 auto; border-bottom: 1px dotted #D8CBAD; transform: translateY(-4px); margin: 0 4px; min-width: 12px; }
.toc .oo { font-family: var(--font-serif-2); font-style: italic; font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.toc .grp { font-family: var(--font-display); font-style: italic; font-size: 15px; color: var(--sea-deep);
  text-align: center; margin: 16px 0 4px; letter-spacing: .5px; }

/* ---- Closing ----------------------------------------------- */
.closing { text-align: center; padding: 90px 12px; }
.closing .scene { width: 200px; height: auto; margin: 0 auto; display: block; }
.closing .line { font-family: var(--font-display); font-style: italic; font-size: 22px;
  color: var(--sea-deep); margin-top: 20px; }
.closing .sign { font-family: var(--font-script); font-size: 34px; color: var(--ink); margin-top: 8px; }

@media (max-width: 720px) {
  :root { --sheet-pad: 34px; --fs-cover-title: 66px; --fs-section: 34px; }
  .sheet { margin: 18px 12px; }
  .sheet .corner { width: 84px; height: 84px; }
}
