/* Fonts, served from this site (no requests to Google):
   EB Garamond (regular 400–500, italic) and Inter (400–500),
   trimmed to Latin characters. Files in fonts/. */
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("../fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

/* ============================================================
   style.css — all the visual styling for the feed and the reader.

   Sections:
     1. Colours & fonts  (change the look here)
     2. Basics
     3. Top bar & buttons
     4. Feed cards
     5. Sliding panel (About / Saved / Settings / Contents)
     6. Reader
   ============================================================ */


/* ---------- 1. Colours & fonts ----------
   Each theme is a set of colour variables. The rest of the file
   only uses these variables, so editing a theme changes everything. */
:root,
[data-theme="light"] {
  --paper: #f5f0e6;        /* background */
  --paper-2: #ece5d8;      /* panels, subtle fills */
  --ink: #1f1c18;          /* main text */
  --ink-2: #6b645a;        /* secondary text */
  --line: #d9d0c1;         /* thin borders */
  --accent: #8b3a2b;       /* buttons, highlights */
  --accent-ink: #fbf7f0;   /* text on accent */
  --highlight: #ecdcb8;    /* the "passage that brought you here" */
}
[data-theme="sepia"] {
  --paper: #efe2c8;
  --paper-2: #e4d4b4;
  --ink: #3b2f22;
  --ink-2: #7a6a55;
  --line: #d3c09c;
  --accent: #8b4a24;
  --accent-ink: #fbf3e4;
  --highlight: #e2c98f;
}
[data-theme="dark"] {
  --paper: #171614;
  --paper-2: #23211e;
  --ink: #e8e2d6;
  --ink-2: #9a9286;
  --line: #34312c;
  --accent: #d09a6a;
  --accent-ink: #171614;
  --highlight: #3a3226;
}
:root {
  --serif: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;        /* max line length for reading */
  --reader-scale: 1;       /* text size in the reader (set from the Aa menu) */
  --bar-h: 3.25rem;        /* top bar height */
}


/* ---------- 2. Basics ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  transition: background .2s, color .2s;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
.loading { font-family: var(--serif); font-style: italic; color: var(--ink-2); text-align: center; padding: 40vh 2rem 0; margin: 0; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }


/* ---------- 3. Top bar & buttons ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: calc(var(--bar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) .75rem 0;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  background: linear-gradient(var(--paper) 60%, transparent);
}
.wordmark {
  font-family: var(--serif); font-size: 1.35rem; letter-spacing: .02em;
  padding-left: .4rem; text-decoration: none;
}
/* The clay full stop after "Passages" (the wordmark) */
.share-preview { margin: 1rem 0 1.25rem; min-height: 6rem; display: grid; place-items: center; }
.share-preview img { width: min(15rem, 60%); border-radius: .75rem; box-shadow: 0 6px 24px rgba(0,0,0,.15); }
.wordmark-dot {
  display: inline-block; width: .17em; height: .17em; border-radius: 50%;
  background: var(--accent); margin-left: .05em;
}
/* The drawn pilcrow (¶): marks where a passage begins. Takes the text colour. */
.pilcrow { width: 1.8rem; height: 1.8rem; min-height: 1.8rem; flex: none; fill: var(--accent); display: block; margin: 0 0 .6rem -.4rem; }
.topbar-actions { display: flex; gap: .15rem; }

.icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: inline-grid; place-items: center; color: var(--ink-2);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.icon-btn svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.on { color: var(--accent); }
.icon-btn.on svg { fill: currentColor; }
.text-btn { font-family: var(--serif); font-size: 1.15rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0 1.4rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-size: .95rem; font-weight: 500; text-decoration: none;
}
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn:active { transform: scale(.98); }


/* ---------- 4. Feed cards ---------- */
/* The feed is a vertical list where each card fills the screen and "snaps" into place. */
.feed {
  height: 100dvh; overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.card {
  height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column;
  padding: calc(var(--bar-h) + env(safe-area-inset-top)) 1.6rem calc(1rem + env(safe-area-inset-bottom));
  cursor: pointer;
}
.card-inner {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: var(--measure); margin: 0 auto;
  overflow: hidden;
}

/* The passage text. Three sizes depending on length (set in feed.js). */
.passage {
  margin: 0; font-family: var(--serif); font-weight: 400;
  line-height: 1.45; text-wrap: pretty; hyphens: manual;
}
.passage.size-l { font-size: clamp(1.6rem, 5.6vw, 2.25rem); line-height: 1.3; }
.passage.size-m { font-size: clamp(1.3rem, 4.6vw, 1.75rem); }
.passage.size-s { font-size: clamp(1.12rem, 4vw, 1.45rem); }
.passage.centered { text-align: center; }
.passage.centered .line { padding-left: 0; text-indent: 0; }
.passage.verse .line { display: block; padding-left: 1.2em; text-indent: -1.2em; text-wrap: wrap; }

.tr-row { display: flex; align-items: baseline; gap: .75rem; margin-top: 1.4rem; }
.tr-toggle {
  font-size: .8rem; letter-spacing: .04em; color: var(--accent);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}
.tr-note { margin: 0; font-size: .75rem; color: var(--ink-2); }

.card-foot {
  width: 100%; max-width: var(--measure); margin: 0 auto;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  border-top: 1px solid var(--line); padding-top: .9rem;
}
.work { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.work-title { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.work-author { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.card-actions { display: flex; flex-shrink: 0; margin-right: -.5rem; }

/* "What caught you?" — a small floating box after a save */
.why {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 30;
  width: min(22rem, calc(100% - 2rem)); transform: translate(-50%, 1rem); opacity: 0;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); border-radius: 1rem;
  padding: .9rem 1rem .8rem; box-shadow: 0 8px 30px rgba(0,0,0,.12);
  transition: opacity .2s, transform .2s;
}
.why.show { opacity: 1; transform: translate(-50%, 0); }
.why.inline { position: static; transform: none; width: auto; margin: 1.25rem 0 0; box-shadow: none; }
.why-head { display: flex; justify-content: space-between; align-items: center; }
.why-title { margin: 0; font-family: var(--serif); font-size: 1.1rem; }
.why-close { font-size: 1.3rem; line-height: 1; color: var(--ink-2); padding: 0 .2rem; }
.why-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0 .6rem; }
.chip {
  font-size: .85rem; padding: .4rem .8rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
}
.chip:active { background: var(--line); }
.chip.quiet { color: var(--ink-2); }
#open-saved.pulse svg { animation: pulse .9s ease-out 2; }
@keyframes pulse { 0% { transform: scale(1); } 35% { transform: scale(1.3); color: var(--accent); } 100% { transform: scale(1); } }
.read-mark { text-transform: none; letter-spacing: 0; color: var(--accent); }
.finished-note { color: var(--accent) !important; font-style: italic; }
.daily-label { margin: 0 0 1.2rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.comeback { margin-top: 1rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.comeback-q { margin: 0; font-family: var(--sans); font-size: .9rem; color: var(--ink-2); }
.comeback .why-chips { justify-content: center; }
.home-tip-text { margin: .5rem 0; font-size: .9rem; line-height: 1.45; }
.home-tip .chip { margin-top: .3rem; }
.why-note { margin: 0; font-size: .72rem; color: var(--ink-2); }

.hint-swipe { display: inline-block; margin-top: .4rem; animation: nudge 1.6s ease-in-out 3 .8s; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hint { margin: 2.5rem 0 0; font-size: .8rem; color: var(--ink-2); text-align: center; }

/* The welcome card: short, centred, one screen */
.card.welcome { cursor: default; }
.card.welcome .card-inner { justify-content: center; text-align: left; font-family: var(--serif); }
.welcome p { margin: 0 0 1.1rem; }
.welcome-title { margin: 0 0 .6rem; font-weight: 400; font-size: 2.8rem; line-height: 1.1; }
.welcome-lede { font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink-2); }
.welcome-how { font-size: 1.15rem; line-height: 1.5; }
.welcome-go { align-self: center; margin: 1.4rem 0 1.2rem; }
.welcome-go .hint-swipe { margin: 0 0 0 .35em; }
.welcome-links { text-align: center; font-family: var(--sans); font-size: .8rem !important; color: var(--ink-2); }
.welcome-links a { color: var(--ink-2); }

/* Tutorial, second card: labels over the buttons, fading out */
.btn-label {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: .68rem; color: var(--accent); white-space: nowrap;
  opacity: 0; transition: opacity .6s; pointer-events: none;
}
.card-actions .icon-btn { position: relative; }
.show-labels .btn-label { opacity: 1; }

.settings-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; font-size: .85rem; }
.settings-links a, .linklike { color: var(--accent); text-decoration: underline; font-size: .85rem; }

/* Editor mode: the Keep / Maybe / Cut / Note bar under each card */
.review-bar {
  width: 100%; max-width: var(--measure); margin: .7rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem;
}
.review-btn {
  min-height: 2.4rem; border-radius: 999px; font-size: .85rem; font-weight: 500;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
}
.review-btn.keep.on  { background: #3f7a4f; color: #fff; box-shadow: none; }
.review-btn.maybe.on { background: #b38a2e; color: #fff; box-shadow: none; }
.review-btn.cut.on   { background: #9b3b2e; color: #fff; box-shadow: none; }
.review-btn.note.on  { box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); }
.editor-settings { margin-top: 1rem; }
body.editor .card-inner { overflow-y: auto; }

.end-card .card-inner, .pause-card .card-inner { align-items: center; text-align: center; gap: 1.5rem; }
.pause-card { cursor: default; }
.pause-card .about-text { margin: 0; }
.pause-link { color: var(--accent); font-size: .95rem; }
.pause-choices { display: flex; gap: 1.75rem; justify-content: center; margin: .5rem 0 0; }
.pause-choices .linklike { font-size: .95rem; }
.end-title { font-family: var(--serif); font-size: 1.5rem; font-style: italic; margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: calc(5.5rem + env(safe-area-inset-bottom)); z-index: 30;
  transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--paper);
  padding: .55rem 1rem; border-radius: 999px; font-size: .85rem;
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.has-action.show { pointer-events: auto; display: flex; align-items: center; gap: 1rem; }
.toast-action { color: inherit; font: inherit; font-weight: 600; text-decoration: underline; padding: 0; }


/* ---------- 5. Sliding panel ----------
   Slides up from the bottom on phones; a centred card on wider screens. */
.sheet { position: fixed; inset: 0; z-index: 20; }
.sheet-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .35); opacity: 0; transition: opacity .25s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88dvh; overflow-y: auto;
  background: var(--paper); border-radius: 1.25rem 1.25rem 0 0;
  padding: 2rem 1.6rem calc(2rem + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .25s ease;
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-close { position: absolute; top: .75rem; right: .75rem; }
.sheet-content { max-width: var(--measure); margin: 0 auto; }

@media (min-width: 720px) {
  .sheet-panel {
    left: 50%; bottom: auto; top: 50%; width: min(36rem, 92vw); max-height: 85dvh;
    border-radius: 1.25rem; transform: translate(-50%, -45%); opacity: 0;
    transition: transform .25s ease, opacity .25s;
  }
  .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
}

.eyebrow { margin: 0 0 .5rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.about-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 2rem; line-height: 1.15; }
.about-author { margin: .3rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-2); }
.about-label {
  margin: 1.75rem 0 .4rem; font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.about-text { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }
.about-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.jump-link { display: inline-block; margin-top: 1.1rem; font-size: .85rem; color: var(--ink-2); }
.panel-small-links { display: flex; gap: 1.5rem; margin-top: 1.4rem; }
.panel-small-links a, .panel-small-links .linklike { font-size: .8rem; color: var(--ink-2); }
.report-link { text-align: center; margin: 1.5rem 0 0; font-family: var(--sans); font-size: .78rem; }
.report-link a { color: var(--ink-2); }
.reset-note { margin-top: .6rem !important; }

.saved-list, .toc { list-style: none; margin: 1.25rem 0 0; padding: 0; }
.saved-row { display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--line); }
.saved-row .saved-item { border-bottom: 0; flex: 1; min-width: 0; }
.remove-btn {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  font-size: 1.35rem; line-height: 1; color: var(--ink-2);
}
.remove-btn:hover, .remove-btn:focus-visible { background: var(--line); color: var(--ink); }
.saved-item { display: block; width: 100%; text-align: left; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.saved-text {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--serif); font-size: 1.1rem; line-height: 1.4;
}
.reading-title { display: block; font-family: var(--serif); font-style: italic; font-size: 1.15rem; }
.reading-list .saved-item { text-decoration: none; }
.saved-work { display: block; margin-top: .35rem; font-size: .78rem; color: var(--ink-2); }

.checks { display: flex; flex-direction: column; gap: .6rem; }
.check { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.15rem; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.swatches, .size-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.theme-swatch {
  padding: .6rem 1.1rem; border-radius: 999px; font-size: .9rem;
  box-shadow: inset 0 0 0 1px var(--line);
}
.theme-swatch[data-swatch="light"] { background: #f5f0e6; color: #1f1c18; }
.theme-swatch[data-swatch="sepia"] { background: #efe2c8; color: #3b2f22; }
.theme-swatch[data-swatch="dark"]  { background: #171614; color: #e8e2d6; }
.theme-swatch.on { box-shadow: inset 0 0 0 2px var(--accent); }
.reset-btn { margin-top: .9rem; min-height: 2.4rem; font-size: .85rem; }
.muted.small { margin-top: 2rem; font-family: var(--sans); font-size: .8rem; }


/* ---------- 6. Reader ---------- */
.reader-page { padding-top: calc(var(--bar-h) + env(safe-area-inset-top)); }
.reader-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.reader-heading { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.reader-book { font-family: var(--serif); font-style: italic; font-size: 1rem; }
.reader-chapter { font-size: .7rem; color: var(--ink-2); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.reader {
  max-width: var(--measure); margin: 0 auto;
  padding: 2.5rem 1.4rem calc(4rem + env(safe-area-inset-bottom));
  font-family: var(--serif);
  font-size: calc(1.2rem * var(--reader-scale));
  line-height: 1.6;
}
.reader .loading { padding-top: 30vh; }
.chapter-title { margin: 1rem 0 .5rem; font-weight: 400; font-size: 1.7em; line-height: 1.2; text-align: center; text-wrap: balance; }
.chapter-byline { margin: 0 0 2.5rem; text-align: center; font-style: italic; color: var(--ink-2); }
.chapter-title + p:not(.chapter-byline) { margin-top: 2.5rem; }
.chapter-byline + p { text-indent: 0 !important; }
/* short front-matter pages (dedications, epigraphs) are centred */
.reader.centered p { text-align: center; text-indent: 0 !important; margin: .4em 0; }
.reader p { margin: 0; text-wrap: pretty; hyphens: auto; }
.reader p + p { text-indent: 1.5em; }
.reader p.verse { text-indent: 0; margin: 1em 0 1em .5em; hyphens: manual; font-size: .95em; }
.reader p.verse .line { display: block; padding-left: 1.5em; text-indent: -1.5em; }
.reader.centered p.verse .line { padding-left: 0; text-indent: 0; }
.reader p.verse + p:not(.verse) { text-indent: 0; }
.scene-break { text-align: center; color: var(--ink-2); margin: 1.5em 0 !important; text-indent: 0 !important; }
.scene-break + p { text-indent: 0 !important; }

/* The passage from the feed */
.reader .origin-label {
  margin-top: 1.5em; text-indent: 0; font-family: var(--sans);
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.reader p.origin { text-indent: 0; margin-top: .3em; margin-bottom: 1.2em; }
.reader mark {
  background: var(--highlight); color: inherit;
  padding: .08em 0; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.reader p.origin.whole { background: var(--highlight); padding: .5em .6em; margin-inline: -.6em; border-radius: .4em; }
.reader .origin + p { text-indent: 0; }

.chapter-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem;
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line);
  font-family: var(--sans); font-size: 1rem;
}
.chapter-nav .progress { width: 100%; text-align: center; font-size: .8rem; color: var(--ink-2); text-indent: 0; }
.the-end { width: 100%; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.3rem; text-indent: 0; }

.toc-item {
  display: block; width: 100%; text-align: left; padding: .7rem 0;
  font-family: var(--serif); font-size: 1.05rem; border-bottom: 1px solid var(--line);
}
.toc-item.on { color: var(--accent); }


/* ---------- 7. About page ---------- */
.about-page { padding-top: calc(var(--bar-h) + env(safe-area-inset-top)); }
.page {
  max-width: var(--measure); margin: 0 auto;
  padding: 2.5rem 1.4rem calc(4rem + env(safe-area-inset-bottom));
  font-family: var(--serif); font-size: 1.15rem; line-height: 1.6;
}
.page-title { margin: .5rem 0 .3rem; font-weight: 400; font-size: 2.6rem; line-height: 1.1; }
.page-lede { margin: 0 0 2rem; font-style: italic; color: var(--ink-2); font-size: 1.25rem; line-height: 1.4; }
.page h2 {
  margin: 2.4rem 0 .7rem; font-family: var(--sans); font-weight: 500;
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.page h3 { margin: 1.4rem 0 .3rem; font-weight: 500; font-size: 1.1rem; }
.page p { margin: 0 0 1em; text-wrap: pretty; }
.page ul, .page ol { margin: 0 0 1em; padding-left: 1.2em; }
.page li { margin-bottom: .5em; }
.page strong { font-weight: 500; }
.page a { color: var(--accent); }
.page .btn { color: var(--accent-ink); }
.library h2 { margin-top: 2.2rem; }
.page .library-list { list-style: none; padding: 0; margin: 0; }
.library-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.library-title { font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--ink); text-decoration: none; }
.library-mark { font-family: var(--sans); font-size: .8rem; color: var(--accent); }
.library-meta { display: block; margin-top: .15rem; font-family: var(--sans); font-size: .82rem; color: var(--ink-2); }
.contact { font-size: 1.2rem; }
.page-closing { margin-top: 2.5rem !important; font-style: italic; font-size: 1.25rem; line-height: 1.45; text-align: center; color: var(--ink-2); }
.page-back { margin-top: 3rem !important; text-align: center; }

/* Reader ⓘ panel: the passage that brought you here */
.origin-quote { margin: .25rem 0 .5rem; padding-left: .9rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; color: var(--ink); white-space: pre-line; }
.linklike.jump-link { padding: 0; background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* "One of each" (tonight.html) */
.tonight-slot { padding: .5rem 0 1.5rem; border-bottom: 1px solid var(--line); }
.tonight-title { font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: var(--ink); text-decoration: none; }
.tonight-premise { margin: .8rem 0; }
.tonight-taste { margin: .5rem 0 1rem; padding-left: .9rem; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; white-space: pre-line; color: var(--ink-2); }
.tonight-actions { display: flex; align-items: center; gap: 1.2rem; }
.tonight-soon p { color: var(--ink-2); font-style: italic; }

/* Editor mode: editing "Why this passage" and "About the book" in place */
.edit-links { display: flex; align-items: center; gap: 1rem; margin: .2rem 0 .9rem; font-family: var(--sans); font-size: .8rem; }
.edited-mark { color: var(--accent); }
.edit-area {
  width: 100%; box-sizing: border-box; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--paper-2); color: var(--ink); font-family: var(--serif); font-size: 1.05rem; line-height: 1.5; resize: vertical;
}
.btn.small { padding: .45rem .9rem; font-size: .85rem; }

/* "Prefer paper or an e-reader?" (js/elsewhere.js) */
.elsewhere { margin: .6rem 0 .2rem; }
.elsewhere-open { font-family: var(--sans); font-size: .85rem; color: var(--ink-2); }
.elsewhere-list { list-style: none; padding: 0; margin: .3rem 0 .6rem; }
.elsewhere-list li { margin: 0 0 .55rem; font-size: 1rem; line-height: 1.4; }
.elsewhere-list a { color: var(--accent); }
.elsewhere-detail { color: var(--ink-2); font-size: .9rem; }
.elsewhere-note { font-size: .9rem; color: var(--ink-2); font-style: italic; margin: .2rem 0; }

/* "Today's passage" at the top of Your reading */
.today-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; width: 100%;
  margin: .2rem 0 1rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper-2); color: var(--ink); text-align: left; cursor: pointer;
}
.today-label { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.today-work { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

/* "Read it elsewhere": where you are */
.elsewhere-places { display: flex; flex-wrap: wrap; gap: .4rem; margin: .1rem 0 .7rem; }
.elsewhere-places button {
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: none;
  font-family: var(--sans); font-size: .78rem; color: var(--ink-2); cursor: pointer;
}
.elsewhere-places button.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- calendar line and coming back ---------- */
.daily-label:has(+ .daily-line) { margin-bottom: .35rem; }
.daily-line { margin: 0 0 1.2rem; font-family: var(--sans); font-size: .8rem; line-height: 1.4; color: var(--ink-2); }
.tomorrow-line { margin-top: 1rem; }
.tomorrow-line em { font-style: italic; color: var(--ink); }
.home-offer { margin: 1rem 0 .4rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.home-offer-title { margin: 0 0 .3rem; font-family: var(--sans); font-size: .78rem; font-weight: 500; letter-spacing: .04em; }
.home-offer .about-text { margin: .2rem 0 .5rem; font-family: var(--sans); font-size: .88rem; line-height: 1.5; color: var(--ink); }
.home-offer .home-btn { margin: .3rem 0 0; }
.home-steps { margin: .2rem 0 0; padding-left: 1.2rem; font-size: .88rem; line-height: 1.5; }
.home-steps li { margin: .15rem 0; }
.share-glyph { width: 1em; height: 1em; vertical-align: -.15em; }
