/* =========================================================================
   Marina in San Francisco — styles
   ========================================================================= */

:root {
  --ink:        #221a26;
  --ink-soft:   #4a4150;
  --paper:      #fdf8f2;
  --paper-2:    #fffdfa;
  --card:       #ffffff;
  --gg-orange:  #e2552f;
  --gg-deep:    #c0392b;
  --coral:      #f0815a;
  --gold:       #f2b134;
  --teal:       #2f8f9d;
  --fog:        #8aa0ad;
  --indigo:     #3b3a6b;
  --green:      #2f9e5e;
  --yellow:     #f6c945;
  --rose:       #d8527c;

  --line:       rgba(34,26,38,0.10);
  --shadow-sm:  0 2px 10px rgba(40,20,30,0.06);
  --shadow-md:  0 10px 30px rgba(40,20,30,0.12);
  --shadow-lg:  0 24px 60px rgba(40,20,30,0.28);
  --radius:     20px;
  --radius-sm:  12px;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #ffe9d6 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 10%, #e7eef2 0%, transparent 50%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #3b2a55 0%, #b8402f 52%, #f0815a 100%);
  background-size: 180% 180%;
  animation: skyShift 26s ease-in-out infinite;
}
@keyframes skyShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.92; }
/* drifting fog layers */
.hero .fog {
  position: absolute; left: -20%; right: -20%; height: 120px; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 50%, rgba(255,255,255,0.22), transparent 70%);
  filter: blur(8px); opacity: 0.5;
}
.hero .fog.f1 { bottom: 24%; animation: drift 34s linear infinite; }
.hero .fog.f2 { bottom: 8%;  animation: drift 48s linear infinite reverse; opacity: 0.35; }
@keyframes drift { 0% { transform: translateX(-8%); } 50% { transform: translateX(8%); } 100% { transform: translateX(-8%); } }

.hero .wrap { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 52px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; background: rgba(255,255,255,0.16);
  padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(4px);
  animation: rise .7s both;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 7vw, 80px); line-height: 0.98;
  margin: 18px 0 10px; letter-spacing: -0.015em;
  animation: rise .8s .05s both;
}
.hero h1 .amp { font-style: italic; color: #ffd9c2; }
.hero .sub { font-size: clamp(16px, 2.2vw, 22px); opacity: 0.96; margin: 0 0 6px; animation: rise .8s .12s both; }
.hero .dedication { font-size: 15px; opacity: 0.9; max-width: 46ch; margin: 0 0 24px; line-height: 1.5; animation: rise .8s .18s both; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; animation: rise .9s .24s both; }
.stat {
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 10px 16px; border-radius: 14px; backdrop-filter: blur(4px); min-width: 76px;
}
.stat b { display: block; font-size: 22px; font-family: var(--serif); line-height: 1.1; }
.stat span { font-size: 12px; opacity: 0.9; letter-spacing: 0.02em; }
.stat.lived b { color: #ffe1b0; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(253,248,242,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.toolbar .wrap { display: flex; align-items: center; gap: 10px; padding: 12px 20px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: inherit; font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent; background: #e4ddd6; color: #8b8189;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.chip:hover { background: #d8cfc6; color: var(--gg-deep); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700;
  box-shadow: 0 3px 12px rgba(34,26,38,0.28);
}
.chip[aria-pressed="true"]:hover { background: var(--ink); color: #fff; transform: none; }
.toolbar .spacer { flex: 1 1 auto; }
.ghost-btn {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; transition: all .15s ease;
}
.ghost-btn:hover { border-color: var(--gg-orange); color: var(--gg-deep); }

/* trip progress bar under toolbar */
.progress-strip { display: flex; align-items: center; gap: 12px; width: 100%; }
.progress-strip .pbar { flex: 1; height: 8px; border-radius: 999px; background: #ece4da; overflow: hidden; }
.progress-strip .pbar > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--rose), var(--gold)); transition: width .7s cubic-bezier(.2,.8,.2,1); }
.progress-strip .plabel { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Sections ---------- */
.section { padding: 40px 0 8px; }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0 0 4px; letter-spacing: -0.01em; }
.section p.lead { margin: 0 0 18px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Day grid ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); padding-bottom: 20px; }

.card {
  position: relative; cursor: pointer; text-align: left;
  border: 1px solid var(--line); background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s cubic-bezier(.2,.7,.3,1), box-shadow .2s ease, border-color .2s ease;
  font: inherit; color: inherit; padding: 0; width: 100%;
  opacity: 0; transform: translateY(22px);
}
.card.reveal { animation: cardIn .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card:focus-visible { outline: 3px solid var(--gg-orange); outline-offset: 2px; }
.card.dim {
  opacity: 0.55 !important;
  filter: grayscale(0.8) !important;
  box-shadow: none !important;
  pointer-events: none;
  transition: opacity .3s ease, filter .3s ease;
}
.card.dim:hover { transform: none; }

.card .thumb { position: relative; height: 136px; }
.card .thumb svg { width: 100%; height: 100%; display: block; transition: transform .35s ease; }
.card:hover .thumb svg { transform: scale(1.05); }
.card .daytag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.93); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.card .body { padding: 14px 16px 18px; }
.card .dow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gg-deep); }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; line-height: 1.15; margin: 5px 0 8px; }
.card .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* lived state + the heart toggle on a card */
.card .lived-btn {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; border: none;
  background: rgba(255,255,255,0.92); color: var(--rose); font-size: 17px; line-height: 1;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  transition: transform .18s cubic-bezier(.2,1.6,.4,1), background .18s ease;
}
.card .lived-btn:hover { transform: scale(1.12); }
.card .lived-btn.on { background: var(--rose); color: #fff; }
.card .lived-btn.pop { animation: pop .42s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.card.lived { border-color: var(--rose); }
.card.lived::after {
  content: "♥ lived"; position: absolute; top: 14px; left: 50%; transform: translateX(-50%) rotate(-6deg);
  font-family: var(--serif); font-weight: 600; font-size: 15px; letter-spacing: 0.04em;
  color: #fff; background: rgba(216,82,124,0.92); padding: 5px 14px; border-radius: 8px;
  box-shadow: var(--shadow-sm); z-index: 3; pointer-events: none;
  animation: stampIn .4s cubic-bezier(.2,1.5,.4,1);
}
@keyframes stampIn { from { opacity: 0; transform: translateX(-50%) rotate(-6deg) scale(1.6); } to { opacity: 1; transform: translateX(-50%) rotate(-6deg) scale(1); } }
.card.lived .thumb svg { filter: saturate(1.05); }

/* kind / badge pills */
.pill { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.pill.k-together  { background: #eae6ff; color: #4b3ca8; }
.pill.k-work      { background: #e8eef1; color: #3a6573; }
.pill.k-free-city { background: #ffe7d6; color: #b6481f; }
.pill.k-free-car  { background: #d8f0e2; color: #1f7a48; }
.pill.k-birthday  { background: #ffe1ec; color: #c12a64; }
.pill.badge       { background: #f3eee8; color: var(--ink-soft); }
.pill.wc          { background: linear-gradient(90deg, var(--green), var(--yellow)); color: #143d22; }

/* ---------- Modal ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28,16,24,0.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 28px 16px; overflow-y: auto;
  opacity: 0; pointer-events: none; transition: opacity .22s ease;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  position: relative; width: min(760px, 100%);
  background: var(--paper-2); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(.95); opacity: 0;
  transition: transform .3s cubic-bezier(.2,.9,.25,1), opacity .3s ease;
}
.scrim.open .modal { transform: none; opacity: 1; }

.modal .m-hero { position: relative; height: 210px; color: #fff; }
.modal .m-hero svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.modal .m-hero .m-head { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px;
  background: linear-gradient(0deg, rgba(20,10,16,0.74) 0%, rgba(20,10,16,0.05) 100%); }
.modal .m-dow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.95; }
.modal .m-title { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4vw, 32px); line-height: 1.08; margin: 4px 0 0; }
.modal .closeX {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; border: none; background: rgba(255,255,255,0.92); color: var(--ink);
  font-size: 20px; line-height: 1; box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: transform .15s ease;
}
.modal .closeX:hover { transform: rotate(90deg) scale(1.05); }

.modal .m-body { padding: 22px 26px 28px; }
.m-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.m-summary { font-size: 16px; line-height: 1.55; margin: 0 0 16px; }

.callout { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; font-size: 14px; line-height: 1.5; }
.callout .ic { font-size: 17px; line-height: 1.4; }
.callout.weather { background: #eaf2f5; color: #2c5662; }
.callout.note    { background: #fff3e2; color: #97551a; }
.callout.solo    { background: #f1ecfb; color: #5a3ca0; }
.callout.flight  { background: #e8eef6; color: #34507a; }

.pack { margin: 4px 0 18px; }
.pack h4, .tl-wrap h4, .memo h4, .rentals h4, .modal-book h4 { font-family: var(--serif); font-size: 16px; margin: 0 0 10px; }

/* booking checklist inside a day modal (syncs with the Lock-in-early panel) */
.modal-book { margin: 4px 0 16px; background: #fff7ec; border: 1px solid #f3e3c6; border-radius: 14px; padding: 12px 14px 6px; }
.modal-book h4 { margin: 0 0 4px; }
.modal-book .mb-hint { font-family: var(--sans); font-size: 11.5px; font-weight: 600; color: var(--fog); }
.modal-book .book-list li { border-bottom: none; padding-top: 9px; padding-bottom: 9px; }

/* surf rental options */
.rentals { margin: 4px 0 18px; }
.rentals ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rentals li { background: #eef3f4; border-radius: 12px; padding: 10px 13px; }
.rentals li a { font-weight: 700; font-size: 14px; color: var(--teal); text-decoration: none; }
.rentals li a:hover { text-decoration: underline; }
.rentals li span { display: block; font-size: 13px; color: var(--ink-soft); line-height: 1.45; margin-top: 2px; }
.pack ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; padding: 0; margin: 0; }
.pack li { background: #f3eee8; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pack li::before { content: "🎒 "; }

/* timeline with check-off */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 19px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl li { position: relative; padding: 0 0 18px 52px; }
.tl li:last-child { padding-bottom: 0; }
.tl .dot {
  position: absolute; left: 6px; top: 1px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; z-index: 1;
  cursor: pointer; transition: all .18s cubic-bezier(.2,1.5,.4,1); padding: 0;
}
.tl .dot:hover { border-color: var(--rose); transform: scale(1.08); }
.tl .dot .check { display: none; color: #fff; font-size: 15px; }
.tl li.done .dot { background: var(--rose); border-color: var(--rose); }
.tl li.done .dot .emoji { display: none; }
.tl li.done .dot .check { display: block; animation: pop .42s cubic-bezier(.2,1.6,.4,1); }
.tl li.done .t-title { color: var(--ink-soft); }
.tl li.done .t-title .t-name { text-decoration: line-through; text-decoration-color: rgba(216,82,124,.6); }
.tl .time { font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--gg-deep); text-transform: uppercase; }
.tl .t-title { font-weight: 700; font-size: 15.5px; margin: 2px 0 3px; }
.tl .t-title a { color: var(--teal); text-decoration: none; font-size: 12.5px; font-weight: 700; margin-left: 6px; white-space: nowrap; }
.tl .t-title a:hover { text-decoration: underline; }
.tl .t-desc { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.tl .t-tip { font-size: 13px; line-height: 1.45; color: #8a6a2c; background: #fbf3e2; border-radius: 10px; padding: 8px 11px; margin: 8px 0 0; }
.tl .t-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.tl .t-meta span { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef0f2; color: var(--ink-soft); }
.tl .t-meta .cost { background: #e2f3e9; color: #1f7a48; }
.tl .t-meta .cost.free { background: #eef0f2; color: var(--ink-soft); }
.tap-hint { font-size: 12px; color: var(--fog); font-weight: 600; margin: 0 0 10px; }

/* memory note */
.memo { margin-top: 22px; }
.memo textarea {
  width: 100%; min-height: 70px; resize: vertical; font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.memo textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 3px rgba(216,82,124,0.12); }
.memo .saved { font-size: 12px; color: var(--green); font-weight: 700; opacity: 0; transition: opacity .2s ease; margin-top: 6px; }
.memo .saved.show { opacity: 1; }

/* modal footer */
.m-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.m-foot .est { font-size: 14px; color: var(--ink-soft); }
.m-foot .est b { color: var(--ink); font-size: 17px; }
.lived-toggle {
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; border: 1px solid var(--rose);
  background: #fff; color: var(--rose); padding: 9px 16px; border-radius: 12px; transition: all .15s ease;
}
.lived-toggle:hover { background: #fdeef3; }
.lived-toggle.on { background: var(--rose); color: #fff; }
.m-nav { display: flex; gap: 8px; }
.m-nav button { font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 9px 14px; border-radius: 12px; transition: all .15s ease; }
.m-nav button:hover:not(:disabled) { border-color: var(--gg-orange); color: var(--gg-deep); }
.m-nav button:disabled { opacity: 0.35; cursor: default; }

/* ---------- Panels ---------- */
.panels { display: grid; gap: 18px; grid-template-columns: 1.1fr 0.9fr; align-items: start; padding-bottom: 30px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow-sm); }
.panel h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 14px; }
.panel.span2 { grid-column: 1 / -1; }

/* flights */
.fl-name { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.flights { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.flight { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; background: linear-gradient(180deg,#fbfcfe,#fff); }
.fl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.fl-tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gg-deep); }
.fl-no { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.fl-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.fl-pt b { font-family: var(--serif); font-size: 26px; display: block; line-height: 1; }
.fl-pt .fl-code { font-weight: 800; font-size: 13px; display: inline-block; margin-top: 4px; }
.fl-pt .fl-city { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.fl-pt.end { text-align: right; }
.fl-mid { display: flex; flex-direction: column; align-items: center; color: var(--fog); gap: 2px; }
.fl-mid .fl-dur { font-size: 11px; font-weight: 700; white-space: nowrap; }
.fl-mid .fl-arrow { font-size: 16px; }
.fl-foot { margin-top: 14px; padding-top: 11px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 760px) { .flights { grid-template-columns: 1fr; } }

.meter { height: 16px; border-radius: 999px; background: #eef0f2; overflow: hidden; margin: 8px 0 6px; }
.meter > i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--green), var(--gold)); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.budget-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.budget-top .big { font-family: var(--serif); font-size: 34px; }
.budget-top .of { color: var(--ink-soft); font-weight: 600; }
.budget-sub { font-size: 13.5px; color: var(--ink-soft); margin: 2px 0 16px; }
.bd-list { list-style: none; margin: 14px 0 0; padding: 0; }
.bd-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bd-list li span:last-child { font-weight: 700; white-space: nowrap; }
.bd-excl { margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); }
.bd-excl b { color: var(--ink); }

.wc-list, .w, .book-list { list-style: none; margin: 0; padding: 0; }
.wc-intro { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 6px; }
.wc-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.wc-list li:last-child { border-bottom: none; }
.wc-ball { font-size: 22px; }
.wc-when { font-size: 12.5px; font-weight: 800; color: var(--green); letter-spacing: 0.03em; }
.wc-when.tent { color: var(--fog); }
.wc-label { font-weight: 700; font-size: 15px; margin: 2px 0; }
.wc-detail { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }

.ess-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ess { display: flex; gap: 12px; }
.ess .ic { font-size: 24px; }
.ess h4 { margin: 0 0 3px; font-size: 15px; }
.ess p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); }

.book-count { font-size: 13px; font-weight: 700; color: var(--green); margin-left: 6px; vertical-align: middle; }
.book-list li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.book-list li:last-child { border-bottom: none; }
.book-list li.book-item { cursor: pointer; padding: 11px 8px; margin: 0 -8px; border-radius: 10px; transition: background .15s ease; }
.book-list li.book-item:hover { background: #faf4ec; }
.book-list li.book-item:focus-visible { outline: 2px solid var(--gg-orange); outline-offset: -2px; }
.book-list .mark {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--gg-orange);
  flex: 0 0 auto; margin-top: 2px; display: grid; place-items: center; color: #fff;
  transition: background .18s ease, border-color .18s ease;
}
.book-list .mark.soft { border-color: var(--fog); }
.book-list .mark::after { content: "✓"; font-size: 13px; font-weight: 800; opacity: 0; transform: scale(.3); transition: opacity .18s ease, transform .2s cubic-bezier(.2,1.6,.4,1); }
.book-list .mark.pop { animation: pop .42s cubic-bezier(.2,1.6,.4,1); }
.book-list li.checked .mark { background: var(--green); border-color: var(--green); }
.book-list li.checked .mark::after { opacity: 1; transform: none; }
.book-list .bk-task { font-weight: 600; font-size: 14.5px; transition: color .15s ease; }
.book-list li.checked .bk-task { text-decoration: line-through; text-decoration-color: rgba(47,158,94,.55); color: var(--ink-soft); }
.book-list .bk-when { font-size: 12.5px; color: var(--ink-soft); }

/* weather table */
.wx-headline { font-size: 14px; line-height: 1.5; color: var(--ink); background: #eaf2f5; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.wx-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wx-table th, .wx-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); }
.wx-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); }
.wx-table tr.warm td { background: #fff4e2; font-weight: 700; }
.wx-note { font-size: 12.5px; color: var(--ink-soft); margin: 12px 0 0; }

/* ---------- Footer ---------- */
footer { text-align: center; padding: 44px 20px 64px; color: var(--ink-soft); }
footer .heart { font-family: var(--serif); font-size: 22px; color: var(--gg-deep); }
footer .keepsake { font-size: 14px; margin-top: 8px; }
footer .small { font-size: 12.5px; margin-top: 10px; opacity: 0.8; }
footer .reset { margin-top: 16px; font: inherit; font-size: 12px; color: var(--fog); background: none; border: none; text-decoration: underline; cursor: pointer; }

/* reveal-on-scroll for sections/panels */
.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal-up.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .panels { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 38px; }
  .modal .m-body { padding: 18px 18px 24px; }
  .modal .m-hero .m-head { padding: 18px 18px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .m-foot { flex-direction: column; align-items: stretch; }
  .m-nav { justify-content: space-between; }
  .lived-toggle { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card { opacity: 1; transform: none; }
  .reveal-up { opacity: 1; transform: none; }
}
