/* mark · web v2 — Mark's cleaner write page, and dark / paper
 *
 * 2026-09-27 · Mark, on a mock: "here is a cleaner version -- write is another
 * option not a large orange button" · "the little arrows beside the date …
 * 'Writing back to Friday.' Then you can click back to today" · "I also like
 * that gradient, and there's an option for light and dark" · "add a drafts
 * under -- both for light theme and dark".
 *
 * Loaded last. Two jobs:
 *   1 · the two looks, as variables every other sheet already reads
 *       (reader.css / styles.css had their hard-coded greys turned into
 *       --well / --tile / --faint / rgb(var(--wash) / a) the same day);
 *   2 · the v2 layout: one rail for writing and reading, a quiet write page
 *       with one bar at the bottom, a drafts page, the lock screen's glow.
 * The ember stays the one accent: on "save", on today's date, on what's on.
 */

/* ── 1 · the looks ───────────────────────────────────────────────────────── */

html[data-look="dark"] body,
html[data-look="dark"] body.in-journal {
  /* 2026-10-22 · the website's dark (SITE-DESIGN "Chapters": dark-bg,
     dark-card, dark-ink, dark-line, dark-ember) — Mark: the journal gets
     "the same look n feel" as the site. Before: the 10-17 premium canvas's
     near-black (#08090A) and #E2724C. */
  --bg: #0F0E0C;
  --rail-bg: #0B0A09;
  --bg-elev: #16140F;
  --card: #1A1814;
  --card2: #13110E;
  --ink: #F6F4F0;
  --ink2: #B9B1A6;
  --ink3: #8C857B;
  --ink4: #6B655C;
  --line: #2A2622;
  --line-strong: #3A352F;
  --wash: 246 244 240;
  --well: #1A1814;
  --well-2: #24211C;
  --tile: #1E1B17;
  --faint: #3E3A34;
  --ember: #D9734F;
  --ember-deep: #E9906F;
  --on-ember: #0F0E0C;
  --on-photo: #FFFFFF;
  --up: #7FB08A;
  --down: #D98068;
  --accent-soft: #3A2318;
  --bar: rgb(26 24 20 / 0.92);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --glow: rgba(217, 115, 79, 0.13);
  color-scheme: dark;
}

html[data-look="paper"] body,
html[data-look="paper"] body.in-journal {
  /* 2026-10-22 · the website's paper and ember (SITE-DESIGN: bg, bg-soft,
     card, ink…ink-4, line, ember, ember-deep, ember-soft). */
  --bg: #F4EEE3;
  --rail-bg: #EDE5D8;
  --bg-elev: #FBF7EE;
  --card: #FCF8F0;
  --card2: #FBF7EE;
  --ink: #1B1916;
  --ink2: #5E554A;
  --ink3: #857B6F;
  --ink4: #ADA497;
  --line: #DED7CD;
  --line-strong: #CFC6B8;
  --wash: 27 25 22;
  --well: #EFE8DC;
  --well-2: #E3DACB;
  --tile: #E8E0D2;
  --faint: #CFC6B8;
  --ember: #C56248;
  --accent-soft: #EFDFD1;
  --bar: rgb(251 247 238 / 0.94);
  --shadow: 0 30px 80px -30px rgba(27, 25, 22, 0.45);
  --glow: rgba(197, 98, 72, 0.16);
  --ember-deep: #A9532E;
  --on-ember: #FFFFFF;
  --on-photo: #FFFFFF;
  --up: #4E8A5C;
  --down: #B85A3E;
  color-scheme: light;
}

/* Today's sky — 2026-10-22 · the website's, minute by minute: reader.js
   (`paintSky`) sets --sky-a / --sky-b on <body> from the same stops as the
   site's chapter 01, so the journal's home opens under the sky the site shows
   at this hour. The home paints it (§ 3). */
html[data-look="paper"] body { background: var(--bg); color: var(--ink); }
/* Selection and the caret follow the look. */
body.v2 ::selection { background: var(--accent-soft); }
body.v2 textarea, body.v2 input { caret-color: var(--ember); }

/* ── 2 · the rail: one for writing and reading ──────────────────────────── */
/* 2.3 · 2026-10-17 · the premium sidebar (Main.dc.html): iPad-like — the
   journal's name and its sync under the icon, "write today" as the one accent
   button, quiet rows, mono section heads, the threads in their colours, and
   at the foot a card for what only the iPhone does. */

body.v2 { --rail: 256px; }
body.v2 .rail { background: var(--rail-bg); border-right: 1px solid var(--line); }
body.v2 .rail__id { gap: 10px; justify-content: flex-start; padding: 22px 14px 18px 22px; }
body.v2 .rail__id .logo { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgb(var(--wash) / 0.08); }
body.v2 .jid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.v2 .jid__name { font-size: 0.875rem; font-weight: 600; color: var(--ink); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.v2 .jid__sync {
  display: flex; align-items: center; gap: 6px; min-width: 0; line-height: 1.3;
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.08em; color: var(--ink3); white-space: nowrap;
}
body.v2 .jid__sync span:last-child { overflow: hidden; text-overflow: ellipsis; }
body.v2 .jid__sync .jsync__dot { width: 6px; height: 6px; }
body.v2 .rail__id .jlock { margin-left: auto; margin-right: 0; width: 30px; height: 30px; flex: none; border-color: transparent; }
body.v2 .rail__id .jlock:hover { border-color: var(--line-strong); }

/* The whole sidebar scrolls, as an iPad's does — the iPhone card sits at its
   foot when there's room and after the threads when there isn't, so a short
   laptop screen never squeezes the journal's own rows into a slot. */
body.v2 .rail { overflow-y: auto; overscroll-behavior: contain; }
body.v2 .jrail { flex: 1 0 auto; min-height: 0; gap: 16px; padding: 0 14px 18px 16px; }
body.v2 .jnavwrap { flex: 1 0 auto; display: flex; flex-direction: column; gap: 18px; }
body.v2 .jnav__top { flex: none; display: flex; flex-direction: column; gap: 6px; }
body.v2 .jnav { flex: none; overflow: visible; gap: 2px; margin: 0 -4px; padding: 0 4px 6px; }
body.v2 .jnav__i { height: 36px; gap: 11px; padding: 0 10px; border-radius: 10px; color: var(--ink2); font-size: 0.875rem; }
body.v2 .jnav__i svg { width: 17px; height: 17px; color: currentColor; }
body.v2 .jnav__i:hover { background: rgb(var(--wash) / 0.04); color: var(--ink); }
body.v2 .jnav__i[aria-current] { background: rgb(var(--wash) / 0.07); color: var(--ink); font-weight: 500; box-shadow: none; border-radius: 10px; }
body.v2 .jnav__i[aria-current] svg { color: var(--ember); }
body.v2 .jnav__n { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink3); font-weight: 400; }
body.v2 .jnav__cover { width: 17px; height: 22px; border-radius: 3px; flex: none; background: var(--tile) center / cover no-repeat; }
/* write today — the one accent button */
body.v2 .jnav__i--write {
  height: 40px; border-radius: 20px; justify-content: center; gap: 5px; padding: 0 16px;
  background: var(--ember); color: var(--on-ember); font-weight: 600;
}
body.v2 .jnav__i--write .jnav__name { flex: none; }
body.v2 .jnav__i--write svg, body.v2 .jnav__i--write[aria-current] svg { width: 15px; height: 15px; margin-right: 3px; color: currentColor; }
body.v2 .jnav__i--write .jnav__when {
  font-family: var(--sans, var(--body)); font-style: normal; font-size: inherit; font-weight: 600; color: inherit;
}
body.v2 .jnav__i--write:hover, body.v2 .jnav__i--write[aria-current] { background: var(--ember); color: var(--on-ember); filter: brightness(1.06); }
body.v2 .jnav__i--write[aria-current] { box-shadow: 0 0 0 2px var(--rail-bg), 0 0 0 3.5px color-mix(in srgb, var(--ember) 55%, transparent); }
body.v2 .jnav__label {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 10px 6px; font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.2em; color: var(--ink4);
}
body.v2 .jnav > .jnav__label:first-child { margin-top: 2px; }
body.v2 .jnav__label--link span { margin-left: auto; color: var(--ink4); }
body.v2 .jnav__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--ink4); margin: 0 4px; }
body.v2 .jnav__i--thread { gap: 12px; }

/* the foot: what only the iPhone does, the photo count while photos come, settings */
body.v2 .jfoot { flex-direction: column; align-items: stretch; gap: 8px; margin-top: auto; padding-top: 0; border-top: 0; }
body.v2 .jphone {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line);
}
body.v2 .jphone__eyebrow {
  display: flex; align-items: center; gap: 8px; color: var(--ember);
  font-family: var(--mono); font-size: 0.625rem; letter-spacing: 0.18em; text-transform: uppercase;
}
body.v2 .jphone p { margin: 0; font-size: 0.8125rem; line-height: 1.45; color: var(--ink2); }
body.v2 .jsync { padding: 2px 10px; background: none; border: 0; border-radius: 0; gap: 6px; }
body.v2 .jfoot__gear { width: auto; height: 36px; padding: 0 10px; justify-content: flex-start; flex: none; }
body.v2 .jfoot__gear[aria-current] { color: var(--ink); }

/* ── the page's top line: search, dark / paper, help (and on a phone, the
   menu and the icon) ─────────────────────────────────────────────────────── */

body.v2 .page { position: relative; }
/* A row of its own at the top of the page, so nothing scrolls under it and
   the day page's sticky bar starts below it. Clear, so the home's sky runs
   up behind it. */
body.v2 .topline {
  position: relative; flex: none; z-index: 30; height: 64px;
  display: flex; align-items: center; justify-content: flex-end; gap: 10px;
  padding: 0 var(--gutter); background: transparent;
}
body.v2 .topline__menu,
body.v2 .jsearch__open {
  display: none; flex: none; width: 44px; height: 44px; border-radius: 22px; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink2);
}
body.v2 .topline__menu { margin-right: auto; }
body.v2 .topline__menu:hover, body.v2 .jsearch__open:hover { color: var(--ink); }
body.v2 .topline__logo { display: none; }
body.v2 .jsearch {
  display: flex; align-items: center; gap: 9px; width: 260px; max-width: 40vw; height: 36px; padding: 0 12px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink3); cursor: text;
}
body.v2 .jsearch:focus-within { border-color: color-mix(in srgb, var(--ember) 55%, transparent); }
body.v2 .jsearch svg { flex: none; }
body.v2 .jsearch input { font-size: 0.8125rem; }
body.v2 .jsearch input::-webkit-search-cancel-button { filter: grayscale(1); opacity: 0.6; }
body.v2 .jsearch kbd { font-family: var(--mono); font-size: 0.625rem; color: var(--ink4); }
body.v2 .jsearch__x { display: none; width: 30px; height: 30px; border-radius: 15px; place-items: center; color: var(--ink3); flex: none; }
/* dark / paper: one round button — the look you'd switch to */
body.v2 .look { display: flex; padding: 0; border: 0; background: none; }
body.v2 .look button {
  width: 36px; height: 36px; padding: 0; border-radius: 18px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); color: var(--ink2);
}
body.v2 .look button[aria-checked="true"] { display: none; }
body.v2 .look button:hover { color: var(--ink); }
body.v2 .look__word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.v2 .topline__help { position: static; flex: none; }
body.v2 .topline__help .railmenu { margin-left: 0; }
body.v2 .topline__help .railmenu__btn {
  width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  font-size: 0.8rem; font-weight: 600; color: var(--ink2); display: grid; place-items: center;
}
body.v2 .topline__help .railmenu__pop { right: 0; left: auto; top: calc(100% + 8px); background: var(--card); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
/* Pages start under the top line. */
body.v2 .jview { padding-top: 0; }

/* The home wears Today's sky — the site's (see § 1 and § 3). */

/* ── the write page ─────────────────────────────────────────────────────── */

body.v2 .blank { display: none !important; }
body.v2 .sheet {
  grid-template-columns: minmax(0, 640px) minmax(240px, 300px);
  justify-content: center;
  padding: 44px var(--gutter) 160px;
}
body.v2 .sheet > .side { top: 24px; }
body.v2 .sheet > .side:not(:has(.how:not([hidden]), .news:not([hidden]), .tool:not([hidden]))) { visibility: hidden; }
body.v2 .desk { max-width: 640px; }

body.v2 .hero { padding: 0 0 26px; }
body.v2 .hero__weekday { color: var(--ember); font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 12px; }
body.v2 .hero__row { display: flex; align-items: center; gap: 22px; }
body.v2 .hero__date, body.v2 button.hero__date {
  font-size: clamp(3.6rem, 6.2vw, 5.6rem); line-height: 0.9; color: var(--ink); text-align: left; padding: 0;
}
body.v2 .hero__steps { display: flex; gap: 8px; }
body.v2 .hero__step {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong);
  color: var(--ink3); display: grid; place-items: center;
}
body.v2 .hero__step:hover:not(:disabled) { color: var(--ink); border-color: rgb(var(--wash) / 0.3); }
body.v2 .hero__step:disabled { opacity: 0.3; cursor: default; }
body.v2 .hero__hint { display: none; }
body.v2 .hero__greet {
  margin-top: 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--sans); font-size: 1.15rem; color: var(--ink2);
}
body.v2 .hero__today { font-family: var(--sans, var(--body)); font-size: 0.8rem; color: var(--ember); }
body.v2 .hero__today:hover { text-decoration: underline; }

/* Today's prompt: in its own box, with a way out (Mark, 2026-10-02: "put it in
   a box so that people can exit out"). */
body.v2 .prompt {
  position: relative; border: 1px solid var(--line-strong); background: rgb(var(--wash) / 0.025);
  padding: 16px 48px 16px 20px; border-radius: 18px; margin: 4px 0 26px;
  display: flex; align-items: baseline; gap: 22px;
}
body.v2 .prompt__x {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; color: var(--ink3);
}
body.v2 .prompt__x:hover { color: var(--ink); background: rgb(var(--wash) / 0.06); }
body.v2 .prompt__eyebrow { display: none; }
body.v2 .prompt__q {
  flex: 1; margin: 0; font-family: var(--dface, "Playfair Display", Georgia, serif); font-style: italic;
  font-weight: 500; font-size: 1.4rem; line-height: 1.3; color: var(--ink);
}
body.v2 .prompt__q::before { content: "— "; color: var(--ember); }
body.v2 .prompt__row { gap: 16px; flex: none; }
body.v2 .prompt__use { border: 0; padding: 0; color: var(--ember); font-size: 0.84rem; border-radius: 0; background: none; }
body.v2 .prompt__use:hover { background: none; text-decoration: underline; }
body.v2 .prompt__next { font-family: inherit; text-transform: none; letter-spacing: 0; font-size: 0.84rem; color: var(--ink3); }
body.v2 .letterhead { font-family: var(--dface, "Playfair Display", Georgia, serif); font-style: italic; font-size: 1.3rem; color: var(--ink2); }

/* The writing sits on the page, not in a box. */
body.v2 .leaf { background: none; border: 0; border-radius: 0; padding: 0; min-height: 40vh; }
body.v2 .body {
  /* 2026-10-22 · Inter, as the site's running text (it was the display serif) */
  font-family: var(--sans); font-size: 1.2rem; line-height: 1.7; color: var(--ink);
}
body.v2 .body::placeholder { color: var(--ink4); }
/* 2.4 · 2026-10-31 · the title's own line, as on the phone: the display face as
   it is typed (serif italic unless the look says otherwise), the ask in the
   running face, a hairline, then the writing. Kept to a heading's size
   (2026-08-25: a title is not for the next table to read). */
body.v2 .title {
  font-family: var(--dface); font-style: var(--dstyle); font-weight: var(--dweight); letter-spacing: var(--dtrack);
  font-size: 1.65rem; line-height: 1.3; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 0 0 12px; margin: 0 0 18px; height: auto;
}
body.v2 .title::placeholder {
  font-family: var(--sans); font-style: normal; font-size: 1.35rem; letter-spacing: 0; color: var(--ink4); opacity: 1;
}

/* What the page carries: thread chips and the place, removable. */
body.v2 .attached { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
body.v2 .attached:not(:has(.tchip, .placechip:not([hidden]))) { display: none; }
body.v2 .attached .tchips { flex: 0 1 auto; min-height: 0; }
body.v2 .placechip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--ink);
  padding: 5px 10px 5px 11px; border-radius: 999px; border: 1px solid rgb(var(--wash) / 0.14);
}
body.v2 .placechip svg { color: var(--ember); }
body.v2 .shots { margin-top: 18px; }

/* The bar: mood · thread · place · photo · discard | state · keep · save. */
body.v2 .tool {
  position: fixed; z-index: 40; bottom: 22px;
  left: calc(var(--rail) + (100vw - var(--rail)) / 2); transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 10px; border-radius: 999px;
  background: var(--bar); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  max-width: calc(100vw - var(--rail) - 32px);
}
body.v2 .tool[hidden] { display: none; }
body.v2 .tool .moods { gap: 4px; display: flex; }
body.v2 .tool .mood { width: 38px; height: 38px; font-size: 1.25rem; border-radius: 10px; }
/* in the picker every face is a choice, so every face is in full colour */
body.v2 .tool .tpop--moods .mood { opacity: 1; filter: none; }
body.v2 .tool .tpop--moods .mood:hover { background: rgb(var(--wash) / 0.06); }
body.v2 .tool__mood #moodNow { display: grid; place-items: center; font-size: 1.15rem; line-height: 1; }
body.v2 .tool .tpop.tpop--moods { width: auto; padding: 6px; left: 0; transform: none; }   /* opens from its button, never off the page */
body.v2 .tool__sep { width: 1px; height: 22px; background: var(--line-strong); margin: 0 6px; flex: none; }
body.v2 .tool__b {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink3); flex: none;
}
body.v2 .tool__b:hover { color: var(--ink); background: rgb(var(--wash) / 0.06); }
body.v2 .tool__b.is-on { color: var(--ember); }
body.v2 .tool__b:disabled { opacity: 0.35; cursor: default; }
body.v2 .tool__b--quiet { color: var(--ink4); }
body.v2 .tool .tpop { top: auto; bottom: calc(100% + 12px); left: 0; transform: none; box-shadow: var(--shadow); }   /* from the button's left edge; app.js pulls it in at the right */
body.v2 .tool .sync {
  font-family: var(--sans, var(--body)); text-transform: none; letter-spacing: 0; font-size: 0.76rem;
  color: var(--ink3); padding: 0 8px; max-width: 220px; overflow: hidden; text-overflow: ellipsis;
}
body.v2 .tool__keep { font-size: 0.8rem; color: var(--ink2); padding: 0 10px; height: 34px; border-radius: 999px; white-space: nowrap; }
body.v2 .tool__keep:hover { color: var(--ink); background: rgb(var(--wash) / 0.06); }
body.v2 .tool__save {
  height: 36px; padding: 0 14px 0 16px; border-radius: 999px; white-space: nowrap;
  background: var(--ember); color: var(--on-ember); font-weight: 600; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 8px;
}
html[data-look="paper"] body.v2 .tool__save { color: #FFFFFF; }
body.v2 .tool__save:hover { filter: brightness(1.06); }
body.v2 .tool__save .kbd { background: rgb(0 0 0 / 0.14); border-color: transparent; color: inherit; opacity: 0.75; }

/* 2026-10-02 · on a computer the bar is a panel at the top of the side
   column (Mark: "not centered on the draft area… too low… on the side, so it
   doesn't impede long journal entries"). The column is sticky, so the tools
   ride along with a long entry and never sit over it.
   Rows: moods · thread place photo … discard · state · keep / save. */
@media (min-width: 861px) {
  body.v2 .side .tool {
    position: static; transform: none; left: auto; bottom: auto; max-width: none;
    flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 12px; border-radius: 22px; box-shadow: none;
  }
  /* above the help card under it, so its menus open over it, never through it */
  body.v2 .side .tool { position: relative; z-index: 80; }   /* the help card under it is a z-60 flex item */
  body.v2 .side .tool__sep { display: none; }
  body.v2 .side .tool #toolDiscard { margin-left: auto; }
  body.v2 .side .tool .sync {
    width: 100%; max-width: none; padding: 8px 4px 2px;
    border-top: 1px solid var(--line); margin-top: 4px;
  }
  body.v2 .side .tool__keep { flex: 1 1 auto; }
  body.v2 .side .tool__save { flex: 1 1 auto; justify-content: center; }
  body.v2 .side .tool .tpop { top: calc(100% + 8px); bottom: auto; left: 0; transform: none; }
}

/* ── the drafts page ────────────────────────────────────────────────────── */

body.v2 .dpage { flex: 1; overflow-y: auto; min-height: 0; padding: 40px var(--gutter) 80px; }
body.v2 .dpage > * { max-width: 760px; margin-left: auto; margin-right: auto; }
body.v2 .dpage__head { display: flex; align-items: baseline; gap: 12px; }
body.v2 .dpage__head h1 {
  margin: 0; font-family: var(--sans); font-weight: 800; letter-spacing: -0.035em;
  font-size: 3.2rem; line-height: 1; color: var(--ink);
}
body.v2 .dpage__sub { color: var(--ink3); font-size: 0.9rem; margin: 12px auto 26px; }
body.v2 .dpage__list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
body.v2 .dpage__row { display: flex; align-items: flex-start; border-bottom: 1px solid var(--line); }
body.v2 .dpage__open { flex: 1; min-width: 0; display: flex; gap: 22px; align-items: flex-start; text-align: left; padding: 18px 6px; }
body.v2 .dpage__open:hover .dpage__title { color: var(--ember); }
body.v2 .dpage__date {
  width: 64px; flex: none; font-family: var(--dface, "Playfair Display", Georgia, serif); font-style: italic;
  font-size: 1.15rem; color: var(--ink2); line-height: 1.2;
}
body.v2 .dpage__date b { font-weight: 400; color: var(--ember); }
body.v2 .dpage__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.v2 .dpage__title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 120ms ease; }
body.v2 .dpage__excerpt { color: var(--ink2); font-size: 0.92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.v2 .dpage__meta { font-family: var(--mono); font-size: 0.68rem; color: var(--ink3); }
body.v2 .dpage__x { width: 36px; height: 36px; margin: 16px 0 0; border-radius: 50%; color: var(--ink4); flex: none; }
body.v2 .dpage__x:hover { color: var(--ember); background: var(--accent-soft); }
body.v2 .dpage__none { color: var(--ink3); padding: 30px 0; }

/* ── the lock screen: the glow Mark liked ───────────────────────────────── */

body.v2 .veil {
  background:
    radial-gradient(ellipse 34% 30% at 50% 46%, var(--glow), transparent 70%),
    var(--bg);
}
/* v3 · 2026-09-27 · Mark: "I don't like the font … remove all the wording
   unless you can make it look striking, businesslike, and professional."
   The words go: the icon carries the brand, and the one line left is an
   instruction, set as a quiet label rather than as prose. */
body.v2 .veil__mark, body.v2 .veil__tag { display: none; }
body.v2 .veil__logo {
  width: 84px; height: 84px; margin-bottom: 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgb(var(--wash) / 0.06);
}
html[data-look="paper"] body.v2 .veil__logo { box-shadow: 0 22px 50px rgba(60, 40, 20, 0.22); }
body.v2 .veil__hint, body.v2 .veil__codelabel {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--ink3);
}
body.v2 .veil__code { flex-direction: column; margin-top: 0; }
body.v2 .veil__codelabel { order: 2; margin-top: 6px; }
body.v2 .veil__dots { order: 1; }
body.v2 .veil__err { order: 3; }
body.v2 .veil__forgot { position: fixed; left: 0; right: 0; bottom: 28px; order: 4; }
/* The look switch stays reachable over the cover (Mark's lock-screen mock). */
body.v2:has(.veil:not([hidden])) .topline { position: fixed; z-index: 1001; left: 0; right: 0; top: 0; background: transparent; }
body.v2:has(.veil:not([hidden])) .topline__help,
body.v2:has(.veil:not([hidden])) .topline__menu,
body.v2:has(.veil:not([hidden])) .topline__logo,
body.v2:has(.veil:not([hidden])) .jsearch,
body.v2:has(.veil:not([hidden])) .jsearch__open { display: none; }
body.v2:has(.veil:not([hidden])) .topline { justify-content: center; }

/* ── narrow: the rail is a drawer ───────────────────────────────────────── */

@media (max-width: 860px) {
  /* the top line, as Phone.dc.html: the menu, the icon in the middle, search */
  body.v2 .topline { height: 72px; padding: 0 16px; gap: 8px; }
  body.v2 .topline__menu, body.v2 .jsearch__open { display: grid; }
  body.v2 .topline__logo {
    display: block; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px;
    border-radius: 8px; box-shadow: 0 0 0 1px rgb(var(--wash) / 0.08);
  }
  body.v2 .jsearch { display: none; }
  body.v2 .jsearch.is-open {
    display: flex; position: absolute; z-index: 5; left: 16px; right: 16px; top: 14px;
    width: auto; max-width: none; height: 44px; border-radius: 22px; padding: 0 6px 0 14px; box-shadow: var(--shadow);
  }
  body.v2 .jsearch.is-open input { font-size: 1rem; }   /* 16px: a phone doesn't zoom into it */
  body.v2 .jsearch kbd { display: none; }
  body.v2 .jsearch.is-open .jsearch__x { display: grid; }
  body.v2 .jsearch input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }   /* one ✕ — the one that closes */
  body.v2 .app[data-rail="open"] { grid-template-columns: 1fr; }
  body.v2 .app[data-rail="open"] .rail { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 60; box-shadow: var(--shadow); overflow-y: auto; }
  body.v2 .app[data-rail="open"] .page { display: flex; }
  /* the page beside the open drawer dims, and a tap on it closes the drawer */
  body.v2 .app[data-rail="open"] .page::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / 0.45); }
  body.v2 .sheet { padding: 24px 16px 150px; grid-template-columns: minmax(0, 1fr); }
  /* the side column's notes stay off a phone; its bar floats at the bottom */
  body.v2 .sheet > .side { display: contents; }
  body.v2 .sheet > .side > :not(.tool) { display: none; }
  body.v2 .hero__date, body.v2 button.hero__date { font-size: 3.4rem; }
  body.v2 .hero__row { gap: 14px; }
  body.v2 .prompt { flex-direction: column; gap: 8px; }
  body.v2 .tool {
    left: 8px; right: 8px; transform: none; bottom: 10px; max-width: none;
    flex-wrap: wrap; justify-content: center; border-radius: 22px; padding: 6px;
  }
  body.v2 .tool .sync { order: 9; width: 100%; text-align: center; max-width: none; padding: 2px 0 0; }
  body.v2 .dpage { padding: 24px 16px 60px; }
  body.v2 .dpage__open { gap: 14px; }
}

@media (max-width: 380px) { body.v2 .topline__logo { display: none; } }

html[data-look="paper"] { background: #F4EEE3; }
html[data-look="dark"] { background: #0F0E0C; }

/* 2.3 · the pages pill: the top line's left on a computer — one place on every
   page — and under each page's head on a phone (Mark: it moved across the
   screen from page to page). */
body.v2 .topline__pages { display: flex; margin-right: auto; }
body.v2 .topline__pages:empty { display: none; }
body.v2 .jhome__head .jpill, body.v2 .jmonth__head .jpill, body.v2 .jlist__head .jpill { display: none; }
@media (max-width: 860px) {
  body.v2 .topline__pages { display: none; }
  body.v2 .jhome__head .jpill, body.v2 .jmonth__head .jpill, body.v2 .jlist__head .jpill { display: flex; }
}

/* ── 3 · the site's look (2026-10-22) ──────────────────────────────────────
   Mark: "make sure the journal gets the same treatment as the website — same
   look n feel." SITE-DESIGN "Chapters", brought in: lowercase Inter 800
   headlines with ONE Playfair Display italic keyword in the ember (the date's
   day, the month's year); mono eyebrows tracked wide behind a 26px hairline;
   ember pill buttons; the site's paper and dark (§ 1); and the home and the
   front door under the site's own sky, minute by minute (reader.js
   `paintSky`, the stops of home.js chapter 01). */

/* headlines */
body.v2 .jhome__date .jserif, body.v2 .jmonth__title .jserif, body.v2 .jday-head__date,
body.v2 .hero__date, body.v2 button.hero__date, body.v2 .jlist__head h1, body.v2 .jthread__text h1,
body.v2 .jsettings__nav h1, body.v2 .dpage__head h1, body.v2 .how__title, body.v2 .jbcover__name {
  font-family: var(--sans); font-style: normal; font-weight: 800; letter-spacing: -0.04em;
}
body.v2 .jlist__head h1, body.v2 .jsettings__nav h1 { font-size: 2.6rem; line-height: 1; }
body.v2 .jthread__text h1 { font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 0.98; }
body.v2 .how__title { font-size: 1.9rem; line-height: 1.02; }
/* the keyword */
body.v2 .jhome__date .jhome__n, body.v2 .jday-head__date span, body.v2 .hero__date span,
body.v2 .jmonth__year, body.v2 .l2 {
  font-family: var(--dface); font-style: var(--dstyle); font-weight: var(--dweight); letter-spacing: -0.01em; color: var(--ember);
}
body.v2 .jmonth__year { font-size: clamp(3rem, 5.6vw, 4.5rem); line-height: 0.9; }
@media (max-width: 860px) { body.v2 .jmonth__year { font-size: 3rem; } }

/* eyebrows: tracked wide; the ones over a headline lead with the hairline */
body.v2 .jeyebrow, body.v2 .jh__eyebrow, body.v2 .jhome__week, body.v2 .jside-label, body.v2 .jpart span,
body.v2 .how__eyebrow, body.v2 .jnav__label { letter-spacing: 0.24em; }
body.v2 .jhome__wd, body.v2 .hero__weekday, body.v2 .jside-label, body.v2 .pair .eyebrow {
  display: flex; align-items: center; gap: 12px; letter-spacing: 0.26em;
}
body.v2 .jhome__wd::before, body.v2 .hero__weekday::before, body.v2 .jside-label::before, body.v2 .pair .eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; opacity: 0.5; flex: none;
}

/* ember pills, as the site's buttons */
body.v2 .jwrite, body.v2 .tool__save {
  background: var(--ember); color: var(--on-ember);
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--ember) 70%, transparent);
}
body.v2 .jwrite:hover, body.v2 .tool__save:hover { background: var(--ember-deep); filter: none; }
body.v2 .jpill__b.is-on { background: var(--ember); color: var(--on-ember); }

/* the home, under the site's sky */
body.v2[data-jmode="journal"][data-jview="home"] .page {
  background:
    linear-gradient(180deg, var(--sky-a, #5FB8B0) 0, var(--sky-b, #4A6D8C) 200px,
      color-mix(in srgb, var(--sky-b, #4A6D8C) 28%, var(--bg)) 330px, var(--bg) 470px) no-repeat,
    var(--bg);
}
body.v2[data-jview="home"] .jhome__head, body.v2[data-jview="home"] .jhome__week { text-shadow: 0 1px 14px rgb(0 0 0 / 0.16); }
body.v2[data-jview="home"] .jhome__date .jserif { color: #FFFFFF; }
body.v2[data-jview="home"] .jhome__date .jhome__n, body.v2[data-jview="home"] .jhome__wd { color: #FFD9C7; }
body.v2[data-jview="home"] .jhome__week { color: rgb(255 255 255 / 0.74); }
/* the top line over the sky is the site's glass nav */
body.v2[data-jmode="journal"][data-jview="home"] .topline :is(.jsearch, .look button, .railmenu__btn, .topline__menu, .jsearch__open) {
  background: rgb(255 255 255 / 0.10); border-color: rgb(255 255 255 / 0.22); color: #FFFFFF;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
body.v2[data-jmode="journal"][data-jview="home"] .topline .jsearch input { color: #FFFFFF; }
body.v2[data-jmode="journal"][data-jview="home"] .topline .jsearch input::placeholder,
body.v2[data-jmode="journal"][data-jview="home"] .topline .jsearch kbd { color: rgb(255 255 255 / 0.62); }
body.v2[data-jmode="journal"][data-jview="home"] .topline .jpill { background: rgb(255 255 255 / 0.10); }
body.v2[data-jmode="journal"][data-jview="home"] .topline .jpill__b:not(.is-on) { color: rgb(255 255 255 / 0.78); }
body.v2[data-jmode="journal"][data-jview="home"] .topline .jpill__b:not(.is-on):hover { color: #FFFFFF; }
body.v2[data-jmode="journal"][data-jview="home"] .jhome__head .jpill { background: rgb(255 255 255 / 0.10); }
body.v2[data-jmode="journal"][data-jview="home"] .jhome__head .jpill__b:not(.is-on) { color: rgb(255 255 255 / 0.78); }

/* a thread's head: its words sit on the page's own ground, not on the photo
   (the line under the name was unreadable over a bright cover, paper or dark) */
body.v2 .jthread__head:not(.jthread__head--plain)::after {
  background: linear-gradient(to top, var(--bg) 0, color-mix(in srgb, var(--bg) 84%, transparent) 46%,
    color-mix(in srgb, var(--bg) 22%, transparent) 86%, transparent 100%);
}
body.v2 .jthread__eyebrow { color: var(--ember); }
body.v2 .jthread__text .jmono { color: var(--ink2); }

/* the front door: the site's first screen — its sky, its type, its buttons */
body.v2 .pair {
  min-height: 100dvh; color: #FFFFFF;
  padding: 20px clamp(16px, 5vw, 72px) 28px;
  background: linear-gradient(180deg, var(--sky-a, #5FB8B0) 0%, var(--sky-b, #4A6D8C) 46%, var(--sky-c, #0F1A2A) 100%);
}
body.v2 .pair__home { display: block; border-radius: 11px; }
body.v2 .pair__logo { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 6px 18px -6px rgb(0 0 0 / 0.6); }
body.v2 .pair__tag { font-family: var(--sans); font-style: normal; font-weight: 800; letter-spacing: -0.03em; font-size: 1.2rem; color: #FFFFFF; }
body.v2 .pair__tag .l2, body.v2 .pair h1 .l2 { color: #FFD9C7; }
body.v2 .pair__main { grid-template-columns: minmax(0, 34rem) 17rem; }
body.v2 .pair__card { background: none; border: 0; padding: 0; }
body.v2 .pair .eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: rgb(255 255 255 / 0.8); }
body.v2 .pair h1 {
  font-family: var(--sans); font-weight: 800; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 0.95;
  letter-spacing: -0.045em; margin: 20px 0 20px; color: #FFFFFF;
}
body.v2 .pair p { color: rgb(255 255 255 / 0.84); font-size: 1.06rem; line-height: 1.55; }
body.v2 .pair p em { color: #FFFFFF; }
body.v2 .pair__input {
  background: rgb(255 255 255 / 0.10); border: 1px solid rgb(255 255 255 / 0.24); color: #FFFFFF; border-radius: 20px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
body.v2 .pair__input::placeholder { color: rgb(255 255 255 / 0.4); }
body.v2 .pair__input:focus { border-color: #FFD9C7; outline: none; }
body.v2 .pair .btn {
  height: 54px; padding: 0 30px; font-size: 17px; font-weight: 600; border-radius: 999px;
  background: var(--ember); color: #FFFFFF; box-shadow: 0 12px 30px -12px rgb(197 98 72 / 0.7);
}
body.v2 .pair .btn:hover { background: var(--ember-deep); filter: none; }
body.v2 .pair__fine { color: rgb(255 255 255 / 0.62) !important; }
body.v2 .pair__err { color: #FFD9C7; }
body.v2 .pair__qrtitle { color: #FFFFFF; }
body.v2 .pair__qrnote { color: rgb(255 255 255 / 0.76); }
body.v2 .pair .qr { border-radius: 24px; box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.65); }
body.v2 .pair .qr--small { border-radius: 10px; box-shadow: none; }
body.v2 .getapp {
  background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.18); color: #FFFFFF; border-radius: 24px;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
body.v2 .getapp__link { color: #FFD9C7; }
@media (max-width: 860px) { body.v2 .pair__main { grid-template-columns: 1fr; } }

/* A phone-width window keeps the side column's notes off the writing, but one
   asked for from the ? menu (app.js `besideTheWriting`) rises as a sheet. */
@media (max-width: 860px) {
  body.v2 .sheet > .side > :is(.how, .news)[data-asked]:not([hidden]) {
    display: block; position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 60;
    max-height: 72vh; overflow-y: auto; padding: 20px 20px 24px; border-radius: 24px;
    background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  }
}
