:root {
  --bg: #F4F2EC;          /* cream page */
  --panel: #FAF9F5;       /* light panel */
  --side: #EFECE4;        /* sidebar */
  --callout: #F1EEE6;
  --band: #E6E4D9;
  --ink: #2B2924;
  --muted: #7D786D;
  --line: #DCD8CC;
  --sage: #7F8B6E;
  --sage-deep: #56604A;
  --sage-soft: #E2E5D6;
  --clay: #A8704E;
  --radius: 10px;
  /* placeholder tones until photos are added (from the Pinterest picks) */
  --t-sand: #C9AC88; --t-leaf: #8D977B; --t-celery: #DCE0CB; --t-linen: #DAD6CC; --t-lime: #E4E8D2; --t-olive: #A6AC94;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: .01em; }
.eyebrow { font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0; }
.line-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pill-btn { display: inline-flex; align-items: center; text-decoration: none; border: 1px solid #8C877C; border-radius: 999px; padding: 12px 26px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.pill-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- shell: sidebar + main ---------- */
.shell { min-height: 100vh; display: flex; }
.side { width: 236px; flex: none; background: var(--side); border-right: 1px solid var(--line); padding: 26px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: block; padding: 2px 12px 24px; text-decoration: none; font-family: var(--serif); font-size: 21px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
/* tabs: clearly defined */
.navlink { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; border: 1px solid transparent; text-decoration: none; color: #4A463E; font-size: 15px; }
.navlink .line-ic { width: 20px; height: 20px; color: var(--sage-deep); }
.navlink:hover { background: var(--panel); border-color: var(--line); }
.navlink.on { background: var(--panel); border-color: var(--line); color: var(--ink); box-shadow: inset 3px 0 0 var(--sage); }
.side .group { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); padding: 22px 14px 6px; }
.main { flex: 1; min-width: 0; padding: 78px 28px 60px; }
.inner { max-width: 1120px; margin: 0 auto; }

/* mobile: sidebar slides in */
.topbar, .scrim { display: none; }
@media (max-width: 899px) {
  .shell { display: block; }
  .side { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .25s; box-shadow: 0 0 40px rgba(0,0,0,.12); }
  .menu-open .side { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(30,28,22,.25); z-index: 30; }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar .logo { padding: 0; font-size: 20px; }
  .menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #A39D90; background: transparent; display: grid; place-items: center; cursor: pointer; }
  .main { padding: 16px 16px 60px; }
}

/* ---------- hero (split, like "Meet Ciara") ---------- */
.hero { display: grid; grid-template-columns: 1fr; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero .visual { min-height: 180px; background: var(--t-sand) center / cover no-repeat; }
.hero .text { padding: 28px 24px 32px; }
.hero h1 { font-size: clamp(42px, 9vw, 68px); line-height: .98; text-transform: uppercase; margin: 12px 0 22px; }
@media (min-width: 900px) { .hero h1 { font-size: clamp(40px, 4.4vw, 66px); } .hero { grid-template-columns: 1fr 1fr; } .hero .visual { min-height: 320px; } .hero .text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; } }

/* ---------- clock + Other Tasks + Notes (defined callouts) ---------- */
.cards3 { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 0 30px; }
@media (min-width: 760px) { .cards3 { grid-template-columns: 1fr 1fr; gap: 16px; } .cards3 .clock-card { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .cards3 { grid-template-columns: .8fr 1.1fr 1.1fr; } .cards3 .clock-card { grid-column: auto; } }
.card { background: var(--callout); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 12px; }
.card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--sage-deep); }
.card-head h2 { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); flex: 1; }
.clock-card { background: var(--panel); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 22px; }
.clock { width: 96px; height: 96px; }
.clock .tick { stroke: #8C877C; stroke-width: 1.2; stroke-linecap: round; }
.clock .hand { stroke: var(--ink); stroke-linecap: round; }
.clock-card .hello { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.clock-card .time { font-family: var(--serif); font-size: 38px; line-height: 1.1; }
.clock-card .date { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 20px; padding: 6px 0 8px; }

/* ---------- checklist rows (Other Tasks / Notes) ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: flex-start; gap: 14px; width: 100%; text-align: left; background: none; border: 0; padding: 8px 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.row .box { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 1px solid #A39D90; background: var(--panel); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.row .box svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.4; fill: none; opacity: 0; }
.row .txt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row.done .box { background: var(--sage); border-color: var(--sage); }
.row.done .box svg { opacity: 1; }
li.leaving { transition: opacity .35s, transform .35s; }
li.leaving.gone { opacity: 0; transform: translateX(12px); }
.txt b, .bullets b { font-weight: 500; }

/* ---------- band + day tiles ---------- */
.band { background: var(--band); border-radius: var(--radius) var(--radius) 0 0; padding: 24px 16px; text-align: center; border: 1px solid var(--line); border-bottom: 0; }
.band p { margin: 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; border: 1px solid var(--line); }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; aspect-ratio: 3 / 4; background: var(--t-linen) center / cover no-repeat; color: var(--ink); text-align: center; padding: 8px; }
@media (min-width: 760px) { .tile { aspect-ratio: 16 / 10; } }
.tile .name { font-size: clamp(11px, 2.9vw, 14px); letter-spacing: .24em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.tile .flag { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1; }
.tile.dark { color: #FBFAF6; }
.tile.today::before { content: ''; position: absolute; inset: 8px; border: 1px solid currentColor; opacity: .6; pointer-events: none; }
.tile.d-mon { background-color: var(--t-sand); } .tile.d-tue { background-color: var(--t-celery); } .tile.d-wed { background-color: var(--t-leaf); }
.tile.d-thu { background-color: var(--t-linen); } .tile.d-fri { background-color: var(--t-olive); } .tile.d-sat { background-color: var(--t-lime); }
.tile.has-img { color: #fff; }
.tile.has-img::after { content: ''; position: absolute; inset: 0; background: rgba(28,24,16,.30); }
.tile.has-img .name, .tile.has-img .flag { text-shadow: 0 1px 8px rgba(0,0,0,.25); }
.tile.has-img > * { position: relative; z-index: 1; }

/* ---------- page headings + sections (each section a defined box) ---------- */
.back { display: inline-block; text-decoration: none; color: var(--muted); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; padding: 4px 0; }
.day-head { text-align: center; padding: 18px 0 28px; }
.day-head h1 { font-size: clamp(52px, 13vw, 92px); line-height: .95; text-transform: uppercase; margin-top: 12px; }
.sections { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 900px) { .sections { grid-template-columns: 1fr 1fr; gap: 18px; } }
.sections.one { grid-template-columns: 1fr; }
.sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 18px; }
@media (min-width: 900px) { .sec { padding: 30px 34px 24px; } }
.sec-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.sec-head .line-ic { color: var(--sage-deep); }
.sec h2 { font-size: 28px; line-height: 1.1; }

/* bullets; a bullet inside a bullet shows as an italic comment under it */
.bullets { margin: 0; padding: 0 0 0 18px; list-style: none; }
.bullets > li { position: relative; padding: 5px 0; }
.bullets > li::before { content: ''; position: absolute; left: -16px; top: 15px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.bullets .bullets { padding: 0; margin: 1px 0 0; }
.bullets .bullets > li { padding: 1px 0; font-style: italic; font-size: 15.5px; color: var(--muted); }
.bullets .bullets > li::before { display: none; }

/* ---------- owner: history + archive ---------- */
.lt { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lm { display: block; font-size: 13px; color: var(--muted); }
.row.done .lt > span:first-child { color: #A9A397; text-decoration: line-through; }
.pill { font-size: 10px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: .16em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); }
.pill.over { border-color: #DDBFA9; color: var(--clay); }
.pill.due { border-color: #B9C2A6; color: var(--sage-deep); }
.hist-toggle { background: none; border: 0; padding: 0 0 8px 36px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.hist { list-style: none; margin: 0 0 12px 36px; padding: 10px 14px; background: var(--bg); border-radius: 8px; font-size: 14px; color: var(--muted); max-height: 240px; overflow: auto; }
.list > li + li { border-top: 1px solid var(--line); }
.arch-day { font-family: var(--serif); font-size: 24px; margin: 20px 0 6px; }
.arch-day:first-child { margin-top: 0; }
.arch-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.arch-item .time { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- misc ---------- */
.notice { background: #F4E9DF; color: #7A5238; border-radius: 8px; padding: 12px 16px; font-size: 15px; margin: 14px 0; }
.loading { color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 22px; padding: 30px 0; text-align: center; }
.coming { text-align: center; color: var(--muted); font-family: var(--serif); font-style: italic; font-size: 24px; padding: 60px 20px; }
.coming .line-ic { width: 30px; height: 30px; display: block; margin: 0 auto 12px; color: var(--sage-deep); }

/* ---------- undo / redo: top-right corner ---------- */
.history { position: fixed; top: 18px; right: 22px; display: flex; gap: 8px; z-index: 25; }
.history button, .history a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #8C877C; background: rgba(250,249,245,.94); cursor: pointer; display: grid; place-items: center; }
.history a { color: var(--ink); }
.history button svg, .history a svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.history button:disabled { border-color: var(--line); cursor: default; }
.history button:disabled svg { stroke: #C9C3B6; }
@media (max-width: 899px) { .history { top: 12px; right: 70px; gap: 6px; } }
#toast { position: fixed; top: 72px; right: 22px; background: var(--ink); color: var(--bg); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; }
#toast.show { opacity: 1; transform: none; }

/* ---------- login ---------- */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--bg); }
.login-card { width: 100%; max-width: 420px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 30px; text-align: center; }
.login-card .mark { display: none; }
.login-card h1 { font-size: 46px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 28px; }
.login-card label { display: block; text-align: left; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.login-card input { width: 100%; font: inherit; font-size: 22px; padding: 10px 0; border: 0; border-bottom: 1px solid #8C877C; background: transparent; color: var(--ink); outline: none; border-radius: 0; }
.login-card button { margin-top: 28px; border: 1px solid #8C877C; border-radius: 999px; padding: 13px 34px; background: transparent; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; cursor: pointer; }
.login-card .err { color: var(--clay); font-size: 15px; margin: 12px 0 0; text-align: left; }

/* ---------- plants gallery ---------- */
.plants { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .plants { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1200px) { .plants { grid-template-columns: repeat(4, 1fr); } }
.plant { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.plant .photo { aspect-ratio: 4 / 5; flex: none; overflow: hidden; background: var(--t-linen); }
.plant .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plant .info { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.plant h2 { font-size: 24px; line-height: 1.1; }
.plant .amount { margin: 0 0 12px; font-size: 15px; color: var(--sage-deep); }
.plant .water { margin-top: auto; justify-content: center; padding: 11px 12px; cursor: pointer; background: transparent; }

/* greeting emoji */
.hero h1 .emo { font-size: .7em; vertical-align: .1em; }

/* sidebar slide in / out (iPad + desktop) */
.side-top { display: flex; align-items: center; justify-content: space-between; padding-right: 2px; }
.side-top .logo { padding-bottom: 24px; }
.side-toggle { width: 36px; height: 36px; margin-bottom: 22px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.side-toggle .line-ic, .side-open .line-ic { width: 18px; height: 18px; }
.side-open { display: none; position: fixed; left: 0; top: 18px; z-index: 26; width: 38px; height: 44px; border: 1px solid #8C877C; border-left: 0; border-radius: 0 22px 22px 0; background: rgba(250,249,245,.95); cursor: pointer; place-items: center; color: var(--ink); }
@media (min-width: 900px) {
  .side { transition: margin-left .25s; }
  .side-hidden .side { margin-left: -236px; }
  .side-hidden .side-open { display: grid; }
}
@media (max-width: 899px) { .side-toggle { display: none; } }

/* regular tasks */
.days3 { grid-template-columns: repeat(3, 1fr); }
.due-list { margin-bottom: 0; padding: 18px 0 0; }
.plant .photo { background-size: cover; background-position: center; }
.due-list .plant .photo { aspect-ratio: 16 / 10; }
.bullets > li.note { font-style: italic; color: var(--muted); }
.bullets > li.note::before { display: none; }

/* regular tasks: time left */
.due-pill { display: inline-block; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; background: var(--sage-soft); color: var(--sage-deep); }
.due-pill.today { background: var(--sage-deep); color: #fff; }
.due-pill.over { background: #F2E1D5; color: var(--clay); }
.reg-list { list-style: none; margin: 0; padding: 0; }
.reg-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.reg-list li:first-child { border-top: 0; padding-top: 4px; }
.reg-list .t { flex: 1; min-width: 0; }
.reg-note { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-style: italic; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.sec.coming.lime { min-height: 320px; display: grid; place-items: center; background: url('/img/lime.jpg') center / cover no-repeat; color: var(--ink); }
.sec.coming.lime span { background: rgba(250,249,245,.88); padding: 12px 26px; border-radius: 999px; font-size: 22px; }

/* ---- day pages: the day's photo as the page background, sections readable on top ---- */
[data-daybg] .main { position: relative; }
[data-daybg] .main::before { content: ''; position: fixed; inset: 0; background: var(--day-bg) center / cover no-repeat; z-index: 0; }
[data-daybg] .main::after { content: ''; position: fixed; inset: 0; background: linear-gradient(180deg, rgba(20,18,12,.35) 0%, rgba(20,18,12,.08) 45%, rgba(20,18,12,0) 100%); z-index: 0; pointer-events: none; }
[data-daybg] .inner { position: relative; z-index: 1; }
[data-daybg] .side, [data-daybg] .topbar { position: relative; z-index: 3; }
@media (max-width: 899px) { [data-daybg] .side { position: fixed; } [data-daybg] .topbar { position: sticky; } }
[data-daybg] .back { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
[data-daybg] .sec { background: rgba(250,249,245,.95); border-color: rgba(255,255,255,.6); box-shadow: 0 6px 24px rgba(20,18,12,.10); }
.day-over h1, .day-over .eyebrow, .day-over .day-desc { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.day-desc { margin: 14px auto 0; max-width: 640px; font-family: var(--serif); font-size: 26px; line-height: 1.25; }
.sections.one { max-width: 860px; margin-left: auto; margin-right: auto; }
.bullets > li.subhead { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--sage-deep); padding: 16px 0 4px; font-style: normal; }
.bullets > li.subhead::before { display: none; }
.bullets > li.subhead b { font-weight: 500; }

/* ---- Notion page content (Truffle info) ---- */
.nb .nb-h { font-family: var(--serif); font-size: 26px; margin: 4px 0 8px; }
.nb .nb-p { margin: 8px 0; }
.nb .nb-hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.nb .nb-img { display: block; max-width: 100%; max-height: 360px; border-radius: 8px; margin: 10px 0; }
.nb-callout { background: var(--callout); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 16px; }
.nb-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .nb-cols { grid-template-columns: 1fr 1fr; align-items: start; } }
.c-red, .c-red_background { color: var(--clay); font-weight: 500; }
.c-yellow { background: #F4E9C9; padding: 0 3px; border-radius: 3px; }
.c-green { color: var(--sage-deep); font-weight: 500; }
.c-yellow-bg { background: #F4E9C9; } .c-red-bg { background: #F4E1D8; } .c-green-bg { background: var(--sage-soft); }

/* sidebar: a shorter, rounded panel instead of a full-height strip (iPad + desktop) */
@media (min-width: 900px) {
  .side { height: auto; max-height: calc(100vh - 32px); margin: 16px 0 16px 16px; border: 1px solid var(--line); border-radius: 22px; top: 16px; align-self: flex-start; padding: 22px 12px 18px; }
  .side-hidden .side { margin-left: -260px; }
  .main { padding-left: 24px; }
}

/* laundry + tutorials */
.days2 { grid-template-columns: repeat(2, 1fr); }
.day-head h1.long { font-size: clamp(40px, 7vw, 72px); }
.sections.one.wide { max-width: 1060px; }
.plants.laundry { margin: 8px 0 18px; }
@media (min-width: 900px) { .plants.laundry { grid-template-columns: repeat(3, 1fr); } }
.plants.laundry .plant .photo { aspect-ratio: 4 / 3; }
.plants.laundry h2 { font-size: 22px; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: var(--sage-soft); color: var(--sage-deep); }
.chip.det, .chip.iron { background: #EFE7DC; color: #7A5E44; }
.lnote { width: 100%; margin: 6px 0 0; font-size: 14px; font-style: italic; color: var(--muted); }
.steps .step-note { font-size: 14px; color: var(--muted); font-style: italic; text-align: right; max-width: 55%; }

/* tutorials: simple buttons */
.tut-group { max-width: 860px; margin: 0 auto 30px; }
.tut-group .eyebrow { margin: 0 0 12px 4px; }
.tut-buttons { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 760px) { .tut-buttons { grid-template-columns: 1fr 1fr; } }
.tut-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-family: var(--serif); font-size: 22px; }
.tut-btn span { font-family: var(--sans); color: var(--muted); font-size: 22px; }
.tut-btn:hover { border-color: #A39D90; }
