/* Itihasa: warm paper, ink, saffron and indigo. */
:root {
  --bg: #f6f1e7;
  --surface: #fffaf1;
  --surface-2: #efe7d8;
  --ink: #2b2118;
  --ink-2: #5e5245;
  --line: #ddd2bf;
  --accent: #c8642b;
  --accent-ink: #fff8ec;
  --indigo: #2e3a6b;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r: 12px;
  --header-h: 64px;

  --t-epic: #b0457a; --t-myth: #d4883b; --t-text: #8a6a2f; --t-deity: #c0392b; --t-figure: #3f63b8;
  --t-kingdom: #5b3f8a; --t-place: #2f8a7a; --t-event: #8a4b3a; --t-culture: #5d8a2f;
  color-scheme: light;
}


* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); display: flex; flex-direction: column; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.empty { color: var(--ink-2); padding: 40px 0; text-align: center; }

/* Type colours, used by .dot, chips, bars */
.t-epic { --tc: var(--t-epic); } .t-myth { --tc: var(--t-myth); } .t-text { --tc: var(--t-text); }
.t-deity { --tc: var(--t-deity); } .t-figure { --tc: var(--t-figure); } .t-kingdom { --tc: var(--t-kingdom); }
.t-place { --tc: var(--t-place); } .t-event { --tc: var(--t-event); } .t-culture { --tc: var(--t-culture); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tc, #888); margin-right: 7px; flex: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  height: var(--header-h); display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 1000;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%; background: var(--accent);
  background-image: radial-gradient(circle, transparent 9px, var(--accent-ink) 9px, var(--accent-ink) 10.5px, transparent 10.5px),
    conic-gradient(from 0deg, transparent 0 20deg, rgba(255,248,236,.55) 20deg 25deg, transparent 25deg 65deg, rgba(255,248,236,.55) 65deg 70deg, transparent 70deg 110deg, rgba(255,248,236,.55) 110deg 115deg, transparent 115deg 155deg, rgba(255,248,236,.55) 155deg 160deg, transparent 160deg 200deg, rgba(255,248,236,.55) 200deg 205deg, transparent 205deg 245deg, rgba(255,248,236,.55) 245deg 250deg, transparent 250deg 290deg, rgba(255,248,236,.55) 290deg 295deg, transparent 295deg 335deg, rgba(255,248,236,.55) 335deg 340deg, transparent 340deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--serif); font-size: 21px; letter-spacing: .3px; }
.brand-text small { color: var(--ink-2); font-size: 11.5px; letter-spacing: .4px; }

.views { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.views a {
  text-decoration: none; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; white-space: nowrap; font-weight: 500;
}
.views a:hover { background: var(--surface-2); color: var(--ink); }
.views a.active { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.views a.add-link { color: var(--accent); }

.search { position: relative; width: 260px; flex: none; }
.search input {
  width: 100%; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit;
}
.search input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.search-results {
  position: absolute; top: calc(100% + 6px); right: 0; width: 340px; max-height: 420px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px;
}
.search-results button {
  display: flex; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.search-results button:hover { background: var(--surface-2); }
.search-results small { margin-left: auto; padding-left: 10px; color: var(--ink-2); font-size: 12px; text-align: right; }
.search-results p { margin: 8px 10px; }

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.filters {
  display: flex; gap: 18px; align-items: center; padding: 8px 20px; border-bottom: 1px solid var(--line);
  background: var(--bg); overflow-x: auto; scrollbar-width: thin; position: relative; z-index: 900;
}
.filters > div { display: flex; gap: 6px; align-items: center; flex: none; }
.filters-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-2); margin-right: 4px; }
.filters button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.filters button:hover { border-color: var(--ink-2); }
.filters button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lens button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
main { flex: 1; position: relative; min-height: 0; display: flex; }
.view { display: none; flex: 1; min-width: 0; overflow: auto; position: relative; }
.view.active { display: block; }
.view[data-view="map"].active { display: block; overflow: hidden; }
#map { position: absolute; inset: 0; background: var(--surface-2); }

.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 80px; }
.page.narrow { max-width: 760px; }
.page-head h1 { font-size: 40px; margin: 0 0 8px; }
.lede { font-size: 17.5px; color: var(--ink-2); max-width: 720px; font-family: var(--serif); }
.group-title { font-size: 22px; margin: 36px 0 14px; display: flex; align-items: center; gap: 10px; }
.kind-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

/* ── Panel ──────────────────────────────────────────────────────────────── */
.panel {
  width: 420px; flex: none; overflow: auto; background: var(--surface); border-left: 1px solid var(--line);
  padding: 18px 22px 40px; box-shadow: var(--shadow); z-index: 800;
}
.panel[hidden] { display: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel h2 { font-size: 28px; margin: 12px 0 2px; }
.panel h3 { font-size: 15px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .7px; color: var(--ink-2); margin: 24px 0 8px; }
.panel .alt { color: var(--ink-2); margin: 0; font-style: italic; }
.panel .meta { color: var(--ink-2); font-size: 13.5px; margin: 6px 0 14px; }
.panel .summary { font-family: var(--serif); font-size: 16.5px; }
.panel-img { margin: 12px -22px 0; }
.panel-img img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.panel-img figcaption { font-size: 11px; color: var(--ink-2); padding: 4px 22px 0; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.era-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); margin-right: 4px; }
.icon-btn { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--line); }
.sources { padding-left: 18px; margin: 0; }
.fineprint { font-size: 12px; color: var(--ink-2); margin-top: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--line); background: var(--surface-2); line-height: 1.6;
}
.chip.type { background: color-mix(in srgb, var(--tc) 14%, transparent); border-color: color-mix(in srgb, var(--tc) 40%, transparent); color: var(--tc); }
.chip.nature { background: transparent; }
.chip.n-historical { color: #2f6f4f; border-color: #2f6f4f66; }
.chip.n-legendary { color: #8a6a1f; border-color: #8a6a1f66; }
.chip.n-mythological { color: #8a3f8a; border-color: #8a3f8a66; }
.chip.n-living { color: #2e5a9a; border-color: #2e5a9a66; }

.chip.user { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip.theme { font-weight: 500; }
.chip.link { cursor: pointer; font-weight: 500; font-size: 13px; padding: 3px 12px; background: var(--surface); }
.chip.link:hover { border-color: var(--ink-2); }
.related { display: flex; flex-wrap: wrap; gap: 6px; }

.everyday-box {
  background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-left: 3px solid var(--accent);
  padding: 4px 16px 6px; border-radius: 0 var(--r) var(--r) 0; margin: 20px 0;
}
.everyday-box h3 { margin: 10px 0 2px !important; color: var(--accent) !important; }

.conn-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.conn-list a {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); padding: 10px 12px;
  border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; background: var(--bg);
}
.conn-list a:hover { border-color: var(--c); }
.conn-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; color: var(--c); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500; font-size: 14px;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: #b33; }
.btn[disabled] { opacity: .5; cursor: default; }

/* ── Map ────────────────────────────────────────────────────────────────── */
#map-overlay { position: absolute; left: 14px; bottom: 24px; z-index: 600; max-width: 330px; }
.map-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; }
.year-label { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--ink-2); }
.year-label output { text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 600; font-size: 14px; }
#year { width: 100%; accent-color: var(--accent); margin: 6px 0; }
.map-card-row { display: flex; gap: 16px; font-size: 13px; }
.map-card-row input { accent-color: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; }
.legend .dot { width: 8px; height: 8px; margin-right: 5px; }
.leaflet-container { font-family: var(--sans); }
.leaflet-tooltip { font-size: 13px; }
.arc { cursor: pointer; }
.tiles { filter: sepia(.25) saturate(.8); }



/* ── Timeline ───────────────────────────────────────────────────────────── */
.view[data-view="timeline"].active { display: flex; flex-direction: column; }
.tl-toolbar { display: flex; justify-content: space-between; align-items: end; padding: 18px 24px 10px; gap: 16px; }
.tl-toolbar h1 { margin: 0; font-size: 30px; }
.tl-toolbar p { margin: 4px 0 0; font-size: 13px; }
.tl-zoom { display: flex; gap: 6px; }
.tl-zoom button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; }
.tl-scroll { flex: 1; overflow: auto; border-top: 1px solid var(--line); }
.tl-canvas { position: relative; padding: 0 20px 40px; min-height: 100%; }
.tl-axis { position: sticky; top: 0; height: 30px; background: var(--bg); z-index: 5; border-bottom: 1px solid var(--line); }
.tl-tick { position: absolute; top: 8px; font-size: 11px; color: var(--ink-2); transform: translateX(-50%); white-space: nowrap; }
.tl-tick::after { content: ""; position: absolute; left: 50%; top: 16px; height: 6px; border-left: 1px solid var(--line); }
.tl-break { position: absolute; top: 4px; bottom: 4px; width: 6px; margin-left: -3px; border-left: 2px dotted var(--ink-2); border-right: 2px dotted var(--ink-2); opacity: .5; }
.tl-eras { position: relative; height: 52px; margin-top: 8px; }
.tl-era {
  position: absolute; top: 0; height: 22px; background: color-mix(in srgb, var(--c) 24%, transparent); border-left: 3px solid var(--c);
  padding: 2px 8px; overflow: hidden; font-size: 12px; font-weight: 600; color: var(--ink); cursor: help;
}
.tl-era span { white-space: nowrap; }
.tl-lane { position: relative; border-top: 1px dashed var(--line); }
.tl-lane-name {
  position: sticky; left: 0; display: inline-block; padding: 4px 8px 0 0; font-size: 11px; text-transform: uppercase;
  letter-spacing: .8px; color: var(--ink-2); font-weight: 700; background: linear-gradient(90deg, var(--bg) 85%, transparent); z-index: 3;
}
.tl-bar {
  position: absolute; height: 32px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 3px;
  border: 0; background: none; padding: 0; cursor: pointer; text-decoration: none; color: var(--ink); white-space: nowrap;
}
.tl-span { width: var(--w); height: 8px; border-radius: 4px; background: var(--tc, var(--c)); flex: none; }
.tl-bar.approx .tl-span { -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); min-width: 14px; }
.tl-label { font-size: 12.5px; line-height: 1.2; }
.tl-bar:hover .tl-label, .tl-bar.selected .tl-label { font-weight: 700; }
.tl-bar.selected .tl-span { outline: 2px solid var(--ink); outline-offset: 2px; }
.tl-bar.conn .tl-span { height: 4px; background: var(--c); }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card h3 { font-size: 22px; margin: 10px 0 2px; }
.card p { margin: 8px 0; }
.story-card { border-top: 4px solid var(--tc); display: flex; flex-direction: column; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }

.threads { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.thread { border-left: 5px solid var(--c); }
.thread.focused { outline: 3px solid var(--c); }
.thread h3 { font-size: 19px; }
.route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px; }
.route .arrow { color: var(--c); font-weight: 700; }

.masonry { columns: 3 300px; column-gap: 16px; }
.everyday-card { break-inside: avoid; margin-bottom: 16px; font-family: var(--serif); font-size: 16.5px; }
.everyday-card .from {
  display: flex; align-items: center; flex-wrap: wrap; border: 0; background: none; padding: 10px 0 0; margin-top: 8px; border-top: 1px solid var(--line);
  width: 100%; text-align: left; cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 14px;
}
.everyday-card .from small { width: 100%; padding-left: 16px; font-weight: 400; color: var(--ink-2); font-size: 12px; }
.everyday-card .from:hover { color: var(--accent); }

/* ── Reader ─────────────────────────────────────────────────────────────── */
.reader { max-width: 700px; margin: 0 auto; padding: 32px 24px 100px; }
.reader .back { text-decoration: none; font-size: 14px; display: inline-block; margin-bottom: 18px; }
.reader h1 { font-size: 48px; margin: 12px 0 4px; }
.reader .meta { color: var(--ink-2); margin: 0 0 18px; }
.reader .lede { font-size: 19px; }
.prose { font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.prose p:first-child::first-letter { float: left; font-size: 3.4em; line-height: .9; padding: 6px 8px 0 0; color: var(--accent); }
.reader h2 { margin-top: 40px; }

/* ── Add form ───────────────────────────────────────────────────────────── */
.lookup { display: flex; gap: 8px; }
.lookup input { flex: 1; }
input, select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.lookup-results { display: grid; gap: 6px; margin: 12px 0 20px; }
.hit { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; }
.hit:hover { border-color: var(--accent); }
.hit span { color: var(--ink-2); font-size: 13px; }
.entry-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.entry-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.entry-form label small { font-weight: 400; }
.entry-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entry-form .row.three { grid-template-columns: 1fr 1fr 1.4fr; }
.entry-form fieldset { border: 1px solid var(--line); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.entry-form legend { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.entry-form label.check { display: flex; align-items: center; gap: 6px; font-weight: 400; color: var(--ink); }
.entry-form label.check input { width: auto; accent-color: var(--accent); }
.form-img { max-width: 200px; border-radius: 8px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.form-msg { color: var(--ink-2); font-size: 13px; }
.mine { margin-top: 36px; }
.mine ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.mine a { font-size: 13px; margin-left: 6px; }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .top { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 8px 12px; }
  .brand-text small { display: none; }
  .search { order: 2; flex: 1; width: auto; min-width: 140px; }
  .views { order: 3; width: 100%; flex-basis: 100%; margin: 0 -6px; }
  .views a { padding: 6px 8px; font-size: 14px; }
  .filters { padding: 8px 16px; }
  .search-results { width: min(340px, calc(100vw - 32px)); }
  .panel {
    position: absolute; left: 0; right: 0; bottom: 0; width: auto; max-height: 72%; border-left: 0;
    border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 14px 16px 40px;
  }
  .panel-img { margin: 12px -16px 0; }
  .page { padding: 22px 16px 60px; }
  .page-head h1 { font-size: 32px; }
  .reader { padding: 22px 16px 80px; }
  .reader h1 { font-size: 36px; }
  .prose { font-size: 18px; }
  #map-overlay { left: 10px; right: 10px; bottom: 16px; max-width: none; }
  body.panel-open #map-overlay { display: none; }
  .legend { display: none; }
  .entry-form .row, .entry-form .row.three { grid-template-columns: 1fr; }
  .tl-toolbar { padding: 14px 16px 8px; }
}

/* ── Fables ─────────────────────────────────────────────────────────────── */
.virtues { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 18px 0 22px; }
.virtues button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 13px;
}
.virtues button.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.fable-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.fable-card {
  --hue: calc(20 + var(--i) * 52);
  display: flex; flex-direction: column; gap: 8px; min-height: 230px; padding: 22px 20px 18px; text-decoration: none; color: var(--ink);
  background: color-mix(in oklch, oklch(0.93 0.05 var(--hue)) 70%, var(--surface));
  border-radius: 120px 120px 10px 10px / 70px 70px 10px 10px;   /* an arch */
  border: 1px solid color-mix(in oklch, oklch(0.6 0.12 var(--hue)) 40%, transparent);
  box-shadow: var(--shadow); text-align: center; transition: transform .2s ease;
}
.fable-card:hover { transform: translateY(-4px); }
.fable-card strong { font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.fable-from { font-size: 11.5px; letter-spacing: 1.6px; text-transform: uppercase; color: oklch(0.5 0.13 var(--hue, 40)); margin: 18px 0 0; }
.fable .fable-from { color: var(--accent); }
.fable-ask { font-size: 14px; color: var(--ink-2); font-style: italic; flex: 1; }
.fable-moral { font-size: 12.5px; font-weight: 600; color: oklch(0.45 0.12 var(--hue)); }

.linkish { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: inherit; }
.pause {
  position: relative; margin: 34px 0; padding: 30px 26px 26px; text-align: center;
  background: var(--surface-2); border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
}
.pause-mark { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--bg); color: var(--accent); padding: 0 10px; font-size: 20px; }
.pause-label { margin: 0; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.pause-ask { font-family: var(--serif); font-size: 22px; line-height: 1.35; margin: 8px auto 18px; max-width: 520px; }
.pause.is-open .pause-ask { margin-bottom: 4px; }
.fable-choices { display: grid; gap: 8px; max-width: 460px; margin: 0 auto; }
.choice {
  border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 14px; cursor: pointer; text-align: left;
}
.choice:hover:not([disabled]) { border-color: var(--accent); }
.choice[disabled] { cursor: default; opacity: .6; }
.choice.told, .choice.picked { opacity: 1; }
.choice.told { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.choice small { display: block; font-size: 11.5px; color: var(--accent); letter-spacing: .5px; }
.turned { animation: turn-in .6s ease both; }
.turned p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; }
@keyframes turn-in { from { opacity: 0; transform: translateY(12px); } }
.moral {
  margin: 30px 0; padding: 0; text-align: center; font-family: var(--serif); font-size: 27px; line-height: 1.3; font-style: italic;
}
.moral span { display: block; font-style: normal; font-family: var(--sans); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.travelled { font-size: 15px; color: var(--ink-2); }
.fable-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
