/* ============================================================
   Paper — the 2026-11 "love letter" redesign.

   Loaded LAST, after styles.css / money.css / giftpage.css, and
   every rule is scoped under html[data-theme] so it outranks the
   old dark and light themes without !important. The theme is
   pinned to "paper" in index.html.

   Look: cream paper, ink brown, wax-seal red. Shrikhand for
   headlines, Nunito for everything you tap, Caveat for the brand
   and little handwritten notes. Cards are "stickers": flat paper
   with a hard 3px tan shadow, never a soft blur.
   Spec: docs/superpowers/specs/2026-11-21-redesign-design.md
   ============================================================ */

:root[data-theme] {
  --paper: #f3e9d8; --paper-2: #efe1c8; --card: #fffaf0; --tan: #e2cba6; --tan-fill: #e9d3b0; --tan-2: #f1dfc2;
  --ink: #3b2a22; --ink-2: #6b5040; --ink-3: #8a6d5c;
  --seal: #8c1d2a; --seal-dark: #5c0f19; --seal-bright: #c2384a; --blush: #f6e3d3;

  --bg: var(--paper); --surface: var(--card); --surface-2: var(--tan-2); --border: var(--tan);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3);
  --primary: var(--seal); --primary-dark: var(--seal-dark); --primary-soft: var(--blush);
  --accent: var(--seal); --accent-2: var(--seal-bright); --accent-soft: var(--blush);
  --good: #3f8f5b; --good-soft: #e3efdf; --warn: #b7791f; --warn-soft: #f7ead2;
  --bad: #c2384a; --bad-soft: #f6dcd8; --info: #5b6b8c; --info-soft: #e7eaf1;
  --radius: 16px; --radius-sm: 12px;
  --shadow: 0 3px 0 var(--tan);
  --shadow-lg: 0 6px 0 var(--tan), 0 18px 40px -22px rgba(80, 50, 20, .35);
  --ring: 0 0 0 2px rgba(140, 29, 42, .18);
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;
  color-scheme: light;
}

/* ---------- page ---------- */
/* the html colour shows wherever the body gradient stops (tall pages,
   overscroll bounce), so it must be paper too, never white */
html[data-theme] { background: var(--paper-2); }
html[data-theme] body {
  background: radial-gradient(1200px 760px at 12% -8%, #fbf4e6, transparent 60%),
              radial-gradient(900px 700px at 100% 100%, #ead7b8, transparent 60%),
              linear-gradient(180deg, #f5ecdc, var(--paper-2));
  background-attachment: fixed;
  color: var(--ink);
  font-weight: 600;
}
/* paper fibre instead of film grain */
html[data-theme] body::after { opacity: .07; mix-blend-mode: multiply; }

html[data-theme] h1, html[data-theme] h2 {
  font-family: var(--font-display); font-weight: 400; color: var(--seal);
  letter-spacing: 0; line-height: 1.12;
}
html[data-theme] h1 { font-size: 30px; }
html[data-theme] h2 { font-size: 22px; }
html[data-theme] h3 { font-weight: 900; color: var(--ink); }
html[data-theme] .muted { color: var(--ink-2); }
html[data-theme] a { color: inherit; }
html[data-theme] .disclosure { color: var(--ink-3); }

/* ---------- top bar ---------- */
html[data-theme] #topbar {
  background: rgba(243, 233, 216, .9); border-bottom: 1.5px solid var(--tan);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
html[data-theme] .brand-mark { display: none; }
html[data-theme] .brand-name { font-family: var(--font-hand); font-weight: 700; font-size: 34px; color: var(--seal); line-height: 1; }
html[data-theme] .profile-chip {
  background: var(--card); color: var(--seal); border: 1.5px solid var(--tan);
  box-shadow: 0 2px 0 var(--tan); font-weight: 800;
}

/* a switched-off destination (e.g. Letters while giftPages.enabled is
   false) must stay hidden even where the sidebar forces display:flex */
#mainnav a[hidden] { display: none !important; }

/* ---------- bottom bar + More sheet ---------- */
html[data-theme] #mainnav {
  background: var(--card); border-top: 1.5px solid var(--tan);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-theme] #mainnav a { color: var(--ink-3); font-weight: 800; letter-spacing: 0; font-size: 11px; }
html[data-theme] #mainnav a.active { color: var(--seal); }
html[data-theme] #mainnav a.active svg { filter: none; }
html[data-theme] .more-grid a {
  background: var(--card); border: 1.5px solid var(--tan); box-shadow: 0 3px 0 var(--tan);
  color: var(--ink); font-weight: 800;
}
html[data-theme] .more-grid a:hover, html[data-theme] .more-grid a:focus-visible { background: var(--blush); border-color: var(--tan); color: var(--seal); }
html[data-theme] .more-grid a.active { color: var(--seal); border-color: var(--seal); }

/* ---------- desktop sidebar ---------- */
@media (min-width: 960px) {
  html[data-theme] #mainnav {
    background: var(--card); border-right: 1.5px solid var(--tan); border-top: none;
  }
  html[data-theme] #mainnav a { font-size: 15px; font-weight: 800; color: var(--ink-2); }
  html[data-theme] #mainnav a::after { display: none; }
  html[data-theme] #mainnav a.active {
    background: var(--seal); color: #fdf0e0; box-shadow: 0 4px 0 var(--seal-dark);
  }
  html[data-theme] #mainnav a:hover:not(.active) {
    background: var(--blush); border-color: transparent; color: var(--seal); box-shadow: none;
  }
}

/* ---------- cards, rows ---------- */
html[data-theme] .card {
  background: var(--card); border: 1.5px solid var(--tan); box-shadow: var(--shadow);
}
html[data-theme] .list-row,
html[data-theme] .weekly-card,
html[data-theme] .otd-card,
html[data-theme] .book-card,
html[data-theme] .promo-card,
html[data-theme] .install-card {
  background: var(--card); border: 1.5px solid var(--tan); box-shadow: var(--shadow); color: var(--ink);
}
html[data-theme] .list-row:hover, html[data-theme] .weekly-card:hover { background: #fffdf6; border-color: var(--tan); }
html[data-theme] .row-list .list-row { box-shadow: none; }
html[data-theme] .row-thumb, html[data-theme] .wc-left, html[data-theme] .otd-photo.ph {
  background: var(--tan-2); border: none; box-shadow: none;
}
html[data-theme] .row-main .title, html[data-theme] .wc-theme { color: var(--ink); font-weight: 900; }
html[data-theme] .row-main .sub, html[data-theme] .wc-sub { color: var(--ink-2); }
html[data-theme] .rec-arrow { color: var(--seal); }
html[data-theme] .section-label, html[data-theme] .wc-kicker, html[data-theme] .otd-kicker, html[data-theme] .book-kicker {
  color: var(--seal); font-weight: 900; letter-spacing: .02em; text-transform: none; font-size: 13px;
}
html[data-theme] .badge { background: var(--tan-2); color: var(--ink-2); border: none; }
html[data-theme] .price-pill { background: var(--blush); color: var(--seal); border: none; font-weight: 900; }
html[data-theme] .given-pill { background: var(--good-soft); color: var(--good); }
html[data-theme] .heart-btn, html[data-theme] .give-btn { color: var(--ink-3); background: transparent; border: none; }
html[data-theme] .heart-btn.saved { color: var(--seal-bright); }
html[data-theme] .count-pill { background: var(--blush); color: var(--seal); border: none; }

/* ---------- buttons ---------- */
html[data-theme] .btn {
  font-family: var(--font); font-weight: 900; border-radius: 999px; letter-spacing: 0;
  background: var(--seal); color: #fdf0e0; border: none; box-shadow: 0 4px 0 var(--seal-dark);
  transition: transform .12s ease, box-shadow .12s ease;
}
html[data-theme] .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--seal-dark); }
html[data-theme] .btn-primary, html[data-theme] .btn-accent { background: var(--seal); color: #fdf0e0; box-shadow: 0 4px 0 var(--seal-dark); }
html[data-theme] .btn-secondary, html[data-theme] .btn-ghost {
  background: var(--card); color: var(--seal); border: 1.5px solid var(--tan); box-shadow: 0 4px 0 var(--tan);
}
html[data-theme] .btn-secondary:active, html[data-theme] .btn-ghost:active { box-shadow: 0 1px 0 var(--tan); }
html[data-theme] .btn-danger { background: var(--card); color: var(--seal-bright); border: 1.5px solid #e9b8b0; box-shadow: 0 4px 0 #e9b8b0; }
html[data-theme] .linklike { color: var(--seal); font-weight: 800; }

/* ---------- chips ---------- */
html[data-theme] .chip, html[data-theme] .pp-chip, html[data-theme] .pp-add {
  background: var(--card); color: var(--ink); border: 1.5px solid var(--tan);
  box-shadow: 0 2px 0 var(--tan); font-weight: 800;
}
html[data-theme] .chip.selected, html[data-theme] .pp-chip.on {
  background: var(--seal); color: #fdf0e0; border-color: var(--seal); box-shadow: 0 2px 0 var(--seal-dark);
}

/* one swipeable line of filter chips instead of seven wrapped rows */
html[data-theme] .chip-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-left: -2px; margin-right: -2px; }
html[data-theme] .chip-scroll::-webkit-scrollbar { display: none; }
html[data-theme] .chip-scroll .chip { flex: none; white-space: nowrap; }
/* a list whose rows are each their own paper card (no box-in-a-box) */
html[data-theme] .paper-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
html[data-theme] .paper-rows .list-row { box-shadow: var(--shadow); margin: 0; }

/* the old two-way toggle (hints) and the hint list rows */
html[data-theme] .seg-toggle { background: var(--tan-fill); border: none; border-radius: 999px; padding: 4px; }
html[data-theme] .seg-toggle button { background: transparent; color: var(--ink-2); font-weight: 900; border: none; border-radius: 999px; }
html[data-theme] .seg-toggle button.active { background: var(--card); color: var(--seal); box-shadow: 0 2px 0 var(--tan); }
html[data-theme] .hint-row { border-color: #efe3cc; }
html[data-theme] .hint-tick { border-color: var(--tan); background: var(--card); color: var(--good); }
html[data-theme] .card-title h3 { color: var(--ink); }

/* ---------- forms ---------- */
html[data-theme] .input, html[data-theme] .wk-input, html[data-theme] .wk-textarea,
html[data-theme] input[type="text"], html[data-theme] input[type="date"], html[data-theme] input[type="email"],
html[data-theme] select, html[data-theme] textarea {
  background: var(--card); color: var(--ink); border: 1.5px solid var(--tan); border-radius: 12px;
  font-weight: 700;
}
html[data-theme] .input:focus, html[data-theme] .wk-input:focus, html[data-theme] textarea:focus, html[data-theme] select:focus {
  border-color: var(--seal); box-shadow: var(--ring); outline: none;
}
html[data-theme] ::placeholder { color: #a8907c; font-weight: 600; }
html[data-theme] .field label { color: var(--ink); font-weight: 900; }
html[data-theme] .hint { color: var(--ink-3); }

/* ---------- modal, toast, empty ---------- */
html[data-theme] .modal-overlay { background: rgba(59, 42, 34, .45); }
html[data-theme] .modal { background: var(--card); border: 1.5px solid var(--tan); box-shadow: var(--shadow-lg); color: var(--ink); }
html[data-theme] .modal h3 { font-family: var(--font-display); font-weight: 400; color: var(--seal); font-size: 22px; }
html[data-theme] .toast { background: var(--ink); color: #fdf0e0; font-weight: 800; border: none; }
html[data-theme] .empty { padding: 18px 8px; }
html[data-theme] .empty .empty-emoji { font-size: 40px; margin-bottom: 6px; }
html[data-theme] .empty h3 { color: var(--ink); }
html[data-theme] .empty p { color: var(--ink-2); }

/* ---------- splash ---------- */
html[data-theme] #splash { background: var(--paper); }
html[data-theme] .splash-name { font-family: var(--font-hand); color: var(--seal); font-weight: 700; }
html[data-theme] .splash-tag { color: var(--ink-2); font-weight: 800; }
html[data-theme] .splash-line { background: var(--tan); }

/* ---------- old hero (still used until Home is rebuilt) ---------- */
html[data-theme] .hero-cta { background: var(--tan-fill); border: none; box-shadow: var(--shadow); color: var(--ink); }
html[data-theme] .hero-cta h2 { color: var(--seal); }
html[data-theme] .hero-cta p { color: var(--ink-2); }
html[data-theme] .hero-hearts { display: none; }

/* ---------- quiz ---------- */
html[data-theme] .opt-card {
  background: var(--card); border: 1.5px solid var(--tan); box-shadow: 0 3px 0 var(--tan); color: var(--ink);
}
html[data-theme] .opt-card:hover { border-color: var(--seal); }
html[data-theme] .opt-card.selected, html[data-theme] .opt-card[aria-pressed="true"] {
  background: var(--blush); border-color: var(--seal); box-shadow: 0 3px 0 var(--seal);
}
html[data-theme] .q-title { font-family: var(--font-display); font-weight: 400; color: var(--seal); }
html[data-theme] .q-count { color: var(--seal); font-weight: 900; letter-spacing: .04em; }
html[data-theme] .q-sub { color: var(--ink-2); }
html[data-theme] .quiz-progress { background: var(--tan-fill); }
html[data-theme] .quiz-progress > * { background: var(--seal); }

/* ---------- leftovers that hard-coded the dark theme ---------- */
html[data-theme] .reco-banner.rose { background: var(--blush); color: var(--seal); border: 1px solid #efc9c0; }
html[data-theme] .reco-banner.good { background: var(--good-soft); color: #2f6b45; border: 1px solid #c9dfc6; }
html[data-theme] .note-quote { background: var(--card); border: 1.5px solid var(--tan); color: var(--ink); box-shadow: var(--shadow); }
html[data-theme] .note-quote::before { color: var(--seal); }
html[data-theme] .partner-banner { background: var(--blush); border: 1.5px solid #efc9c0; color: var(--ink); }
html[data-theme] .partner-banner button { color: var(--seal); }
html[data-theme] .pp-star { background: var(--blush); color: var(--seal); }

/* ---------- result ---------- */
html[data-theme] .result-card { background: var(--card); border: 1.5px solid var(--tan); box-shadow: var(--shadow); }
html[data-theme] .persona-name { font-family: var(--font-display); font-weight: 400; color: var(--seal); }
html[data-theme] .persona-line { color: var(--ink-2); }
html[data-theme] .persona-emblem { background: var(--tan-2); box-shadow: none; }
html[data-theme] .bar-track { background: var(--tan-2); }
html[data-theme] .bar-fill { background: var(--seal); }

/* ============================================================
   New building blocks for the redesigned screens
   ============================================================ */

/* the envelope + lined letter + wax seal */
.paper-env {
  position: relative; background: var(--tan-fill); border-radius: 18px; padding: 14px;
  margin-bottom: 26px; box-shadow: 0 4px 0 #d6bb91;
}
.paper-env::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 52%; border-radius: 18px 18px 0 0; opacity: .55; pointer-events: none;
  background: linear-gradient(to bottom right, transparent 49.5%, #d9be95 50%) left / 50% 100% no-repeat,
              linear-gradient(to bottom left, transparent 49.5%, #d9be95 50%) right / 50% 100% no-repeat;
}
.paper-letter {
  position: relative; background: var(--card); border-radius: 10px; padding: 16px 16px 20px;
  background-image: repeating-linear-gradient(var(--card) 0 27px, #efe3cc 27px 28px);
}
.paper-letter h1, .paper-letter h2 { margin: 0 0 8px; }
.paper-letter p { color: var(--ink-2); font-weight: 700; margin: 0; }
.paper-seal {
  position: absolute; right: 16px; bottom: -18px; width: 52px; height: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--seal-bright), #7d1422);
  color: #f6d9c4; display: grid; place-items: center; font-family: var(--font-hand); font-size: 26px; font-weight: 700;
  transform: rotate(-12deg); box-shadow: 0 3px 6px rgba(0, 0, 0, .28);
}
@media (min-width: 960px) {
  html[data-theme] .paper-letter h1 { font-size: 40px; }
  .paper-letter { padding: 26px 26px 30px; }
}
.paper-env.small { padding: 10px; margin-bottom: 14px; }
.paper-env.small .paper-letter { padding: 12px 14px; }

/* chunky pill button (C's layout) */
.btn-chunky {
  display: block; text-align: center; background: var(--seal); color: #fdf0e0 !important; padding: 15px 18px;
  border-radius: 999px; font-weight: 900; font-size: 16.5px; box-shadow: 0 5px 0 var(--seal-dark); margin: 0 0 22px;
  border: none; width: 100%; font-family: var(--font); transition: transform .12s ease, box-shadow .12s ease;
}
.btn-chunky:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--seal-dark); }
.btn-chunky.alt { background: var(--card); color: var(--seal) !important; border: 1.5px solid var(--tan); box-shadow: 0 5px 0 var(--tan); }
.btn-chunky.alt:active { box-shadow: 0 1px 0 var(--tan); }

/* section label with a right-hand link */
.sec-lbl { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 10px; font-weight: 900; font-size: 15px; color: var(--ink); }
.sec-lbl a { color: var(--seal); font-weight: 800; font-size: 13.5px; }

/* sticker gift tiles */
.stk-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stk-row::-webkit-scrollbar { display: none; }
.stk-row .stk { flex: 0 0 132px; scroll-snap-align: start; }
.stk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stk {
  display: flex; flex-direction: column; background: var(--card); border-radius: 16px; padding: 7px 7px 9px;
  box-shadow: 0 3px 0 var(--tan); border: 1.5px solid var(--tan); color: var(--ink); text-align: center; min-width: 0;
}
.stk-art { height: 70px; border-radius: 12px; background: var(--tan-2); display: grid; place-items: center; font-size: 30px; margin-bottom: 7px; overflow: hidden; flex: none; }
.stk-art img { width: 100%; height: 70px; object-fit: cover; display: block; }
.stk-name { font-weight: 900; font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stk-meta { font-size: 11.5px; font-weight: 800; color: var(--seal); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* fact tiles (Their page, Dates) */
.tile-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tile {
  flex: 1 1 72px; min-width: 72px; max-width: 120px; background: var(--card); border-radius: 16px; padding: 9px 6px 8px; text-align: center;
  box-shadow: 0 3px 0 var(--tan); border: 1.5px solid var(--tan); color: var(--ink); position: relative;
}
.tile-e { font-size: 26px; line-height: 1.15; }
.tile-v { font-weight: 900; font-size: 14px; }
.tile-k { font-size: 11px; font-weight: 800; color: var(--ink-3); }
.tile.hot { background: var(--seal); border-color: var(--seal); box-shadow: 0 3px 0 var(--seal-dark); }
.tile.hot .tile-v, .tile.hot .tile-k { color: #fdf0e0; }
.tile.add { background: transparent; box-shadow: none; border: 2px dashed #d6bc94; color: var(--seal); display: grid; place-items: center; font-weight: 900; font-size: 22px; min-height: 76px; cursor: pointer; }
button.tile { font-family: var(--font); cursor: pointer; }
a.tile { color: var(--ink); }
.tile-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.tile.done::after { content: '✓'; position: absolute; top: 4px; right: 8px; font-size: 11px; font-weight: 900; color: var(--good); }

/* plain text block — for anything that is a sentence */
.paper-text { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: 0 3px 0 var(--tan); border: 1.5px solid var(--tan); margin-bottom: 16px; font-weight: 700; line-height: 1.5; }
.paper-text .pt-row { display: flex; gap: 10px; align-items: flex-start; }
.paper-text .pt-row + .pt-row { border-top: 1px solid #efe3cc; margin-top: 8px; padding-top: 8px; }
.paper-text .pt-row span { flex: 1; }
.paper-text .pt-x { background: none; border: none; color: var(--ink-3); font-weight: 900; padding: 0 2px; }
.paper-text.quote { font-style: italic; }

/* hint stickers with a handwritten caption */
.hint-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.hint-stk { flex: 0 1 140px; background: var(--card); border-radius: 14px; padding: 7px; box-shadow: 0 3px 0 var(--tan); border: 1.5px solid var(--tan); transform: rotate(-1.5deg); color: var(--ink); }
.hint-stk:nth-child(even) { transform: rotate(1.5deg); }
.hint-stk .hs-art { height: 64px; border-radius: 10px; display: grid; place-items: center; font-size: 30px; background: #e6d9c0; overflow: hidden; }
.hint-stk .hs-art img { width: 100%; height: 100%; object-fit: cover; }
.hint-stk .hs-cap { font-family: var(--font-hand); font-weight: 700; font-size: 18px; line-height: 1.05; margin-top: 5px; text-align: center; color: #5a3d30; }

/* gift persona badge */
.persona-badge { background: linear-gradient(135deg, var(--seal), #b33a4c); color: #fdf0e0; border-radius: 16px; padding: 12px 14px; box-shadow: 0 4px 0 var(--seal-dark); margin-bottom: 16px; display: block; }
.persona-badge .pb-head { display: flex; align-items: center; gap: 10px; }
.persona-badge .pb-e { font-size: 30px; }
html[data-theme] .persona-badge, html[data-theme] .persona-badge p { color: #fdf0e0; }
html[data-theme] .persona-badge .pb-name { color: #fff3e3; }
.persona-badge .pb-name { font-family: var(--font-display); font-size: 19px; line-height: 1.1; }
.persona-badge p { margin: 6px 0 0; font-size: 13.5px; font-weight: 700; opacity: .95; }

/* segmented control (Gifts tab) */
.seg { display: flex; background: var(--tan-fill); border-radius: 999px; padding: 4px; margin: 0 0 18px; }
.seg button, .seg a { flex: 1; border: none; background: transparent; padding: 9px 6px; border-radius: 999px; font-weight: 900; font-size: 14px; color: var(--ink-2); font-family: var(--font); text-align: center; white-space: nowrap; }
.seg button.on, .seg a.on { background: var(--card); color: var(--seal); box-shadow: 0 2px 0 var(--tan); }

/* the person chip in the top bar: "💞 Anna · 12 days", opens Their page */
html[data-theme] .profile-chip { cursor: pointer; font-size: 13px; max-width: 230px; }
html[data-theme] .profile-chip.hot { background: var(--seal-bright); color: #fff; border-color: var(--seal-bright); box-shadow: 0 2px 0 var(--seal-dark); }

/* last-minute banner */
.urgent { background: var(--seal); color: #fdf0e0; border-radius: 18px; padding: 16px; box-shadow: 0 4px 0 var(--seal-dark); margin-bottom: 18px; }
html[data-theme] .urgent h1 { color: #fff3e3; font-size: 26px; margin: 0 0 6px; }
.urgent p { margin: 0; font-weight: 700; opacity: .92; }

/* Their page header */
.who-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.who-av { width: 64px; height: 64px; border-radius: 50%; background: var(--tan-fill); display: grid; place-items: center; font-size: 32px; border: 3px solid var(--card); box-shadow: 0 3px 0 var(--tan); flex: none; }
.who-name { font-family: var(--font-display); color: var(--seal); font-size: 30px; line-height: 1.05; }
.who-rel { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 900; color: var(--seal); background: var(--card); border: 1.5px solid var(--tan); padding: 2px 10px; border-radius: 999px; }
.who-sec { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 2px 8px; font-weight: 900; font-size: 15px; }
.who-sec a, .who-sec button { color: var(--seal); font-weight: 800; font-size: 13.5px; background: none; border: none; font-family: var(--font); }
.note-add { display: flex; gap: 8px; margin-top: 10px; }
.note-add input { flex: 1; min-width: 0; padding: 9px 12px; }

/* first-run welcome: full screen, no menu */
body.is-welcome #mainnav, body.is-welcome #partner-chip { display: none !important; }
@media (min-width: 960px) {
  body.is-welcome #app { padding-left: 0; }
  body.is-welcome #topbar { left: 0; }
}
.welcome-env { margin-top: 10px; }
html[data-theme] .welcome-env h1 { font-size: 34px; }

/* handwritten touch */
.hand { font-family: var(--font-hand); font-weight: 700; font-size: 20px; color: #5a3d30; }

/* memory + date cards: the old dark card body was never moved to paper,
   which left dark ink on a dark band (Memories and the date diary) */
html[data-theme] .memory-card {
  background: var(--card); border: 1.5px solid var(--tan); box-shadow: var(--shadow);
}
html[data-theme] .memory-card:hover { border-color: var(--seal); box-shadow: var(--shadow-lg); }
html[data-theme] .mc-photo { background: var(--tan-2); }
html[data-theme] .mc-title { color: var(--ink); font-weight: 400; }
html[data-theme] .mc-date { color: var(--seal); }
html[data-theme] .mc-msg { color: var(--ink-2); }
html[data-theme] .mc-anniv { background: var(--seal); color: #fff7f0; }

/* ---------- Date nights: city ideas + the private date diary ---------- */
.dn-link {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink); margin-bottom: 18px;
}
.dn-link-e { font-size: 28px; line-height: 1; }
.dn-link-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.dn-link .rec-arrow { color: var(--seal); font-weight: 800; }

.dn-ideas-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dn-ideas-head h3 { margin: 0; }
.dn-city { width: auto; min-width: 150px; max-width: 220px; padding: 8px 12px; }
.dn-cats { margin: 12px 0 10px; }
.dn-cats:empty { display: none; }
.dn-meta { font-size: 12px; font-weight: 800; color: var(--ink-3); letter-spacing: .01em; line-height: 1.35; }

.dn-spot { align-items: flex-start; flex-wrap: wrap; }
.dn-spot .row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.dn-spot .sub { white-space: normal; line-height: 1.45; }
html[data-theme] .dn-spot .title { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
.dn-badge { background: var(--blush) !important; color: var(--seal) !important; font-size: 11px; vertical-align: middle;
  white-space: nowrap; display: inline-block; }
/* the buttons use the whole card width, so they sit on one line even in Swedish */
.dn-spot-actions { flex: 0 0 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 10px; }
.dn-action, html[data-theme] .dn-action { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px;
  font-weight: 900; font-size: 14px; color: var(--seal); text-decoration: none; white-space: nowrap; }
.dn-action:active { opacity: .7; }
.dn-src { font-size: 12px; color: var(--ink-3); text-decoration: underline; }

html[data-theme] .dn-hearts { color: var(--seal); letter-spacing: 2px; }
.dn-empty { padding: 26px 16px; }

/* editor: up to four photo thumbnails + hearts */
.dn-photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.dn-photo-row:empty { display: none; }
.dn-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--tan-2); }
.dn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dn-thumb-x {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(59, 42, 34, .78); color: #fff; font-size: 17px; line-height: 26px; padding: 0; cursor: pointer;
}
.dn-photo-add .pd-inner { min-height: 92px; }
.dn-hearts-pick { display: flex; gap: 6px; }
.dn-heart {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--tan);
  background: var(--card); color: var(--seal); font-size: 22px; line-height: 1; cursor: pointer;
}
.dn-heart.on { background: var(--blush); border-color: var(--seal); }

/* viewer: one photo, or a swipeable strip when there are several */
.dn-gallery { background: #17090d; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.dn-gallery img { width: 100%; flex: 0 0 100%; max-height: 62vh; object-fit: contain; display: block; scroll-snap-align: center; }
.dn-gallery.many img { flex-basis: 88%; }

/* ============================================================
   TwoLune brand (2026-11-30): Fraunces headlines instead of
   Shrikhand, the italic Fraunces wordmark, and the seal mark (two
   crescent moons facing each other) in the top bar and splash.
   Each look shows its own mark: .mark-paper here, .mark-midnight
   in Midnight (css/midnight.css).
   ============================================================ */
html[data-theme] h1, html[data-theme] h2, html[data-theme] .q-title, html[data-theme] .persona-name,
html[data-theme] .modal h3, html[data-theme] .who-name, html[data-theme] .persona-badge .pb-name {
  font-weight: 600; letter-spacing: -.005em;
}
html[data-theme] .brand-name, html[data-theme] .splash-name {
  font-family: 'Fraunces', Georgia, serif; font-style: italic; font-weight: 500;
}
html[data-theme] .brand-name { font-size: 27px; }
html[data-theme] .brand-mark {
  display: grid; width: 32px; height: 32px; border-radius: 50%;
  background: none; box-shadow: none; overflow: visible;
}
html[data-theme] .brand-mark svg { width: 32px; height: 32px; }
html[data-theme] .splash-mark { background: none; box-shadow: none; border-radius: 50%; }
html[data-theme] .splash-mark svg {
  width: 66px; height: 66px; padding: 0; background: none; border-radius: 50%;
  box-shadow: 0 16px 36px -14px rgba(59, 42, 34, .45);
}
html[data-theme] .splash-mark::after { border-radius: 50%; border-color: rgba(140, 29, 42, .35); }
.mark-midnight,
html[data-theme] .brand-mark .mark-midnight,
html[data-theme] .splash-mark .mark-midnight { display: none; }

/* the promise on the weekly card, in handwriting */
.wc-hand { display: block; font-family: var(--font-hand); font-weight: 700; font-size: 19px; line-height: 1.1; color: var(--seal); margin-top: 3px; }

/* ---------- Pick your look (first run + Settings) ---------- */
.look-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.look-opt {
  display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 12px; border-radius: 18px;
  border: 2px solid var(--tan); background: var(--card); color: var(--ink); font-family: var(--font);
  text-align: left; cursor: pointer; box-shadow: 0 3px 0 var(--tan); min-width: 0;
}
.look-opt[aria-pressed="true"] { border-color: var(--seal); box-shadow: 0 3px 0 var(--seal); }
.look-prev {
  height: 128px; border-radius: 12px; padding: 12px; margin-bottom: 4px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.look-prev svg { width: 36px; height: 36px; }
.look-prev.paper { background: #f3e9d8; box-shadow: inset 0 0 0 1px #e2cba6; }
.look-prev.midnight { background: #141b34; }
.lp-line { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 16px; line-height: 1.15; }
.look-prev.paper .lp-line { color: #8c1d2a; }
.look-prev.midnight .lp-line { color: #f3e9d2; }
.look-name { font-weight: 900; font-size: 15px; padding: 0 4px; }
.look-sub { font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 0 4px; }
.look-opt .look-check { display: none; }
.look-seg { margin-bottom: 4px; }
/* the weekly kicker was faded to 60%, which drops it under 4.5:1 contrast */
html[data-theme] .wc-kicker { opacity: .92; }
/* Settings > people row: the MAIN badge shrank into the name on a phone */
html[data-theme] .pp-star, html[data-theme] .pp-row .btn-sm { flex: none; }
html[data-theme] .pp-row { flex-wrap: wrap; row-gap: 8px; }
html[data-theme] .pp-who { flex: 1 1 90px; }
html[data-theme] .pp-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Date nights: the wishlist (ideas saved for some day) ---------- */
.dn-wish-head { display: flex; align-items: center; gap: 8px; }
.dn-wish-head .count-pill { font-size: 12px; padding: 1px 9px; border-radius: 999px; }
.dn-wish-empty { margin: 0 2px 6px; }
.dn-wish-list { margin-bottom: 10px; }
.dn-wish-btn, .dn-wish-x { background: none; border: none; font-family: var(--font); cursor: pointer; }
.dn-wish-btn[aria-pressed="true"] { color: var(--seal-bright); }
html[data-theme] .dn-wish-x { color: var(--ink-3); font-weight: 800; }
.dn-wish-add { display: flex; gap: 8px; align-items: center; }
.dn-wish-add .input { flex: 1; min-width: 0; padding: 10px 12px; }
.dn-wish-add .btn { flex: none; min-height: 44px; }
