:root{--ink:#1f302c;--green:#16392e;--cream:#f8f6f0;--line:#e4e5dc;--mute:#697670;--gold:#ac8650}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font:16px/1.55 system-ui,-apple-system,Segoe UI,sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.topbar{background:#fff;border-bottom:1px solid var(--line);padding:15px max(20px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}.brand{display:flex;align-items:center;gap:10px;text-decoration:none!important}.brand strong{letter-spacing:.11em;font-size:14px}.brand small{display:block;font-size:11px;color:var(--mute)}.mark{display:grid;place-items:center;background:var(--green);color:white;border-radius:9px;font-family:Georgia,serif;font-size:26px;width:42px;height:42px}.topbar nav{display:flex;align-items:center;gap:19px;flex-wrap:wrap}.topbar nav a,.navlogout{font-size:14px;font-weight:600}.navlogout{border:0;background:none;color:var(--mute);cursor:pointer;padding:0}main{max-width:1160px;margin:auto;padding:28px 20px 70px;min-height:80vh}footer{text-align:center;border-top:1px solid var(--line);padding:24px;color:var(--mute);font-size:12px}.hero{background:linear-gradient(120deg,#163b30,#31594b);border-radius:19px;padding:clamp(30px,6vw,72px);color:#fff}.eyebrow{font-size:11px;letter-spacing:.2em;font-weight:800;color:var(--gold)}.hero .eyebrow{color:#e5c998}.hero h1,.page-heading h1,.auth h1{font-family:Georgia,serif;font-weight:400;line-height:1.1;letter-spacing:-.025em;font-size:clamp(40px,7vw,68px);margin:13px 0}.hero p{max-width:500px;color:#e0ebe4}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px}.button,button.primary{border:1px solid var(--green);display:inline-block;border-radius:9px;padding:12px 17px;font-weight:700;font-size:14px;cursor:pointer;text-align:center}.primary{background:var(--green);color:#fff!important;border-radius:9px;padding:12px 17px;font-weight:700;border:1px solid var(--green)}.hero .primary{background:#e0c294;border-color:#e0c294;color:#25392e!important}.secondary{background:transparent;border-color:#aeb9b0;color:inherit}.hero .secondary{border-color:#91a79b;color:#fff}.section{margin-top:43px}.section h2{font-family:Georgia,serif;font-size:30px;font-weight:400;margin:4px 0 18px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px}.muted,.hint{color:var(--mute);font-size:14px}.reel{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:6px 2px 16px}.reel-item{flex:0 0 clamp(245px,37vw,390px);scroll-snap-align:start;background:white;border-radius:13px;overflow:hidden;border:1px solid var(--line)}.reel-item img{width:100%;height:260px;object-fit:cover}.reel-item div{padding:12px 15px;display:grid}.reel-item span,.photo-card span{color:var(--mute);font-size:12px}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.photo-card{display:grid;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;padding-bottom:13px}.photo-card img{width:100%;aspect-ratio:4/3;object-fit:cover}.photo-card strong{padding:10px 12px 0;font-size:14px}.photo-card span{padding:0 12px}.empty{padding:50px 26px;background:white;border:1px dashed #bec8be;border-radius:15px;text-align:center;grid-column:1/-1}.empty h3{font-family:Georgia,serif;font-size:24px}.page-heading{margin:13px 0 32px}.page-heading h1{font-size:clamp(38px,6vw,58px)}.page-heading p{color:var(--mute)}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:22px}.filters{display:grid;grid-template-columns:2fr repeat(3,1fr);gap:12px;align-items:end;margin-bottom:20px}.form{display:grid;gap:17px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form label,.filters label{display:grid;gap:6px;font-size:13px;font-weight:700}input,select,textarea{font:inherit;width:100%;padding:11px;border:1px solid #cbd4ca;border-radius:8px;background:#fff;color:var(--ink);min-width:0}input:focus,select:focus,textarea:focus{outline:2px solid #8fb79f;outline-offset:1px}.filter-buttons{display:flex;gap:8px;grid-column:1/-1}.file-upload{padding:28px;border:2px dashed #b0c0b4;border-radius:12px}.file-upload small{color:var(--mute)}.upload-form{max-width:820px}.detail-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:30px;margin-top:22px}.detail-image{display:grid;gap:20px;justify-items:center}.detail-image img{max-height:70vh;width:100%;object-fit:contain}.detail-info h1{font-family:Georgia,serif;font-size:38px;line-height:1.14}.detail-info dl{display:grid;grid-template-columns:105px 1fr;gap:10px 20px}.detail-info dt{font-weight:700;color:var(--mute)}.edit{margin-top:30px}.edit summary{cursor:pointer;font-weight:700;margin-bottom:12px}.back{color:var(--mute);font-size:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.stats .panel{display:grid;gap:9px}.stats span{color:var(--mute);font-size:13px}.stats strong{font-size:30px;font-family:Georgia,serif}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th,td{padding:10px;border-bottom:1px solid var(--line);white-space:nowrap}td:last-child{white-space:normal}.auth{max-width:500px;margin:40px auto}.auth p{color:var(--mute)}.auth .panel{margin:23px 0}.flash{padding:13px 17px;border-radius:10px;margin-bottom:18px;background:#edf4e9}.flash.error{background:#f9e6e2}.pagination{display:flex;gap:20px;justify-content:center;margin-top:25px}.pagination a{font-weight:700}@media(max-width:850px){.filters{grid-template-columns:repeat(2,1fr)}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.detail-layout{grid-template-columns:1fr}}@media(max-width:550px){main{padding:16px 13px 50px}.topbar{padding:12px 14px}.topbar nav{gap:13px;width:100%;justify-content:space-between}.topbar nav a,.navlogout{font-size:12px}.hero{padding:30px 23px;border-radius:13px}.hero h1{font-size:42px}.section{margin-top:30px}.section h2{font-size:25px}.reel-item{flex-basis:83vw}.reel-item img{height:235px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-card img{aspect-ratio:1}.panel{padding:15px}.filters,.form-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr}.section-heading{align-items:start}.section-heading .muted{font-size:12px}.detail-info h1{font-size:32px}}

/* v0.2: approachable photo slideshow + responsive archive folders */
.home-heading{margin-top:4px;margin-bottom:20px}.home-heading h1{font-size:clamp(35px,6vw,56px)}
.slideshow{background:#152c25;border-radius:17px;position:relative;overflow:hidden;box-shadow:0 14px 35px rgba(25,47,38,.12)}
.slide-track{position:relative;aspect-ratio:16/8.2;min-height:270px;max-height:72vh}
.slide{position:absolute;inset:0;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease;color:white}
.slide.is-active{opacity:1;visibility:visible;pointer-events:auto}
.slide img{width:100%;height:100%;object-fit:contain;display:block}
.slide-caption{position:absolute;bottom:0;left:0;right:0;display:grid;gap:2px;background:linear-gradient(transparent,rgba(0,0,0,.78));padding:65px 22px 26px}
.slide-caption strong{font-family:Georgia,serif;font-size:clamp(19px,3vw,28px)}
.slide-caption span{font-size:13px;color:#e1e1d8}
.slide-arrow{position:absolute;z-index:3;top:45%;border:0;border-radius:100%;background:rgba(255,255,255,.85);color:#152b25;width:42px;height:42px;font-size:32px;line-height:1;cursor:pointer}
.slide-prev{left:12px}.slide-next{right:12px}.slide-controls{position:absolute;z-index:3;right:16px;bottom:15px;display:flex;gap:12px;align-items:center;font-size:12px;color:white}
.slide-controls button{background:#f7f5e8;border:0;border-radius:5px;padding:4px 10px;font-weight:700;cursor:pointer;color:#19392f}
.folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.folder-card{background:white;border:1px solid var(--line);border-radius:12px;padding:17px;display:grid;gap:6px;min-width:0}
.folder-card:hover,.folder-card.selected{border-color:#56856e;background:#eff6ef;text-decoration:none}
.folder-card strong{overflow-wrap:anywhere}.folder-card small{color:var(--mute)}.folder-icon{font-size:29px;color:#6b917a;line-height:1}
.folder-grid-compact{margin-bottom:20px;grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
.folder-grid-compact .folder-card{padding:13px}
@media(max-width:550px){.slide-track{aspect-ratio:5/5.2;min-height:280px}.slide-caption{padding:55px 16px 18px}.slide-controls{right:12px;bottom:11px}.slide-arrow{width:35px;height:35px}.folder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.folder-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.slide{transition:none}}


/* v0.2.1 — compact header and accessible slide-out family navigation */
.topbar {
  min-height: 76px;
  padding: 13px max(20px, calc((100vw - 1160px) / 2));
  flex-wrap: nowrap;
  gap: 12px;
}
.brand { gap: 13px; min-width: 0; }
.brand-name { font-size: clamp(14px, 2.6vw, 17px); letter-spacing: .18em; font-weight: 750; white-space: nowrap; }
.mark { width: 46px; height: 46px; flex: 0 0 46px; font-size: 30px; border-radius: 12px; }
.menu-toggle, .drawer-close {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: 0 0 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #f9faf7; color: var(--green); cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.menu-toggle:hover, .drawer-close:hover { background: #eef3ed; border-color: #b9cabe; }
.menu-toggle:focus-visible, .drawer-close:focus-visible, .drawer-nav a:focus-visible, .drawer-signout:focus-visible { outline: 3px solid #8fb79f; outline-offset: 3px; }
.menu-bars { display: grid; gap: 5px; width: 21px; }
.menu-bars span { display: block; height: 2px; border-radius: 5px; background: currentColor; }
.site-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(380px, calc(100vw - 25px));
  max-width: none; max-height: none;
  height: 100vh; height: 100dvh;
  padding: 0;
  border: 0; border-radius: 18px 0 0 18px;
  background: #fff; color: var(--ink);
  box-shadow: -18px 0 55px rgba(13,33,25,.18);
  overflow-y: auto;
}
.site-drawer[open] { animation: drawer-enter .22s ease-out both; }
.site-drawer::backdrop { background: rgba(15,33,27,.55); backdrop-filter: blur(2px); }
@keyframes drawer-enter { from { transform: translateX(100%); } to { transform: translateX(0); } }
html.drawer-open, body.drawer-open { overflow: hidden; }
.drawer-content { display: flex; flex-direction: column; min-height: 100%; padding: max(24px,env(safe-area-inset-top)) 21px max(22px,env(safe-area-inset-bottom)); }
.drawer-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand strong { display: block; letter-spacing: .14em; font-size: 14px; white-space: nowrap; }
.drawer-brand small { display: block; color: var(--mute); font-size: 11px; margin-top: 3px; }
.drawer-mark { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; font: 29px Georgia,serif; color: white; background: var(--green); border-radius: 11px; }
.drawer-close { width: 42px; height: 42px; flex-basis: 42px; }
.drawer-close svg { width: 19px; height: 19px; }
.drawer-label { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .2em; margin: 30px 12px 11px; }
.drawer-nav { display: grid; gap: 6px; }
.drawer-nav a { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 12px 14px; font-weight: 650; font-size: 15px; border-radius: 11px; text-decoration: none; color: var(--ink); }
.drawer-nav a:hover { background: #f5f7f2; text-decoration: none; }
.drawer-nav a[aria-current="page"] { background: #eaf1ea; color: var(--green); }
.drawer-nav svg { flex: 0 0 22px; width: 22px; height: 22px; }
.drawer-chevron { margin-left: auto; font-size: 28px; font-weight: 400; line-height: 1; opacity: .55; }
.drawer-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 20px; }
.drawer-profile { display: flex; align-items: center; gap: 12px; padding: 0 8px 18px; }
.drawer-profile strong { display: block; font-size: 14px; }
.drawer-profile small { display: block; color: var(--mute); font-size: 12px; }
.drawer-avatar { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 50%; background: #e9ede5; color: var(--green); font: 21px Georgia,serif; }
.drawer-bottom form { margin: 0; }
.drawer-signout { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-weight: 650; cursor: pointer; }
.drawer-signout:hover { background: #f8f9f5; }
@media (max-width: 550px) {
  .topbar { padding: 11px 17px; min-height: 69px; }
  .brand-name { font-size: 15px; letter-spacing: .14em; }
  .mark { width: 43px; height: 43px; flex-basis: 43px; }
  .menu-toggle { width: 43px; height: 43px; flex-basis: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-drawer[open] { animation: none; }
  .menu-toggle, .drawer-close { transition: none; }
}

/* v0.2.3 — home view selector and responsive admin dashboard */
.home-switch{display:flex;gap:8px;margin:0 0 22px;background:#e9eee6;border-radius:12px;padding:5px;width:max-content;max-width:100%}
.switch-option{padding:10px 17px;border-radius:9px;font-weight:700;color:var(--green);font-size:14px}
.switch-option.selected{background:white;box-shadow:0 1px 5px #132b211a;text-decoration:none}
.admin-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.admin-tile{display:grid;gap:7px;padding:18px;background:#fff;border:1px solid var(--line);border-radius:13px;text-decoration:none!important}
.admin-tile:hover,.admin-tile.is-selected{border-color:#7caa8d;background:#f1f7f1}
.admin-tile strong{line-height:1.35}.admin-tile small{color:var(--mute);line-height:1.4}
.tile-icon{display:grid;place-items:center;width:38px;height:38px;background:#e9eee6;border-radius:10px;color:var(--green);font-size:24px}
.user-settings-grid,.folder-admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.account-card,.folder-admin-card{min-width:0}
.account-title{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:15px}
.account-title strong{display:block;overflow-wrap:anywhere}.account-title span:not(.pill){color:var(--mute);display:block;font-size:13px}
.pill{display:inline-flex;align-items:center;background:#ebf2e7;color:var(--green);border-radius:30px;padding:4px 10px;font-size:11px;font-weight:700;white-space:nowrap}
.pill-muted{background:#f3e9e6;color:#8a5045}
.compact-form{gap:11px}.compact-form label{display:grid;gap:5px;font-size:13px;font-weight:650}.compact-form .checkbox-line{display:flex;align-items:center;gap:8px}
.checkbox-line input{width:18px;height:18px;min-width:18px}
.reset-details{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.reset-details summary{cursor:pointer;font-weight:700;margin-bottom:12px}
.folder-admin-grid{margin-top:16px}.folder-admin-card textarea{resize:vertical}
.folder-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:16px}.folder-actions form{margin:0}
.danger-outline{border-color:#bf918a;color:#93473e;background:transparent}
.danger-outline:hover{background:#faedeb}.drawer-account-link{padding:0 8px 12px;font-size:13px;font-weight:600}
@media(max-width:880px){.admin-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:610px){.user-settings-grid,.folder-admin-grid{grid-template-columns:1fr}.admin-tiles{gap:9px}.admin-tile{padding:14px}.admin-tile strong{font-size:14px}.admin-tile small{font-size:11px}.home-switch{width:100%}.switch-option{flex:1;text-align:center;padding:10px 9px}}

/* v0.3 — family feed, simple mobile composer, and account-based theme switch */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.drawer-theme{padding:2px 8px 20px}.drawer-theme .drawer-label{margin:3px 0 10px}
.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:4px;border-radius:12px;background:#e9eee6}
.theme-option{border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:750;padding:10px 7px;cursor:pointer}
.theme-option:hover{background:#dfe9df}.theme-option.theme-selected{background:#fff;color:#1a4535;box-shadow:0 1px 6px #173a241c}
.theme-option:focus-visible{outline:3px solid #8fb79f;outline-offset:1px}
.feed-container{max-width:760px;display:grid;gap:19px;margin:auto}
.feed-composer,.feed-post{padding:24px}
.feed-composer-heading,.feed-post-meta{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.feed-composer-heading div,.feed-post-meta div{display:grid;gap:2px;min-width:0}
.feed-composer-heading strong,.feed-post-meta strong{font-size:15px}
.feed-composer-heading small,.feed-post-meta small{font-size:12px;color:var(--mute)}
.feed-avatar{width:43px;height:43px;flex:0 0 43px;display:grid;place-items:center;border-radius:50%;background:#e5eddf;color:#1a4535;font:25px Georgia,serif}
.feed-composer textarea{resize:vertical;min-height:115px}
.composer-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.composer-actions .primary{margin-left:auto}
.feed-photo-picker{display:inline-flex;align-items:center;gap:7px;padding:10px 12px;border-radius:9px;border:1px solid var(--line);background:#f1f5ed;color:var(--green);font-size:13px;font-weight:750;cursor:pointer}
.feed-photo-picker small{font-size:11px;opacity:.8}
#feed-photos{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;padding:0;border:0}
#feed-photos:focus-visible+.feed-file-count{outline:2px solid #8fb79f}
.feed-file-count{font-size:12px;color:var(--mute)}.feed-file-too-many{color:#a23b36;font-weight:750}
.feed-post{min-width:0}.feed-post-meta .pill{margin-left:auto}
.feed-post-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:16px;margin:14px 0 20px}
.feed-photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:hidden;border-radius:12px}
.feed-photo-grid.photo-count-1{grid-template-columns:1fr}
.feed-photo{display:block;min-width:0;background:#122821}
.feed-photo img{display:block;width:100%;height:100%;max-height:390px;aspect-ratio:4/3;object-fit:cover}
.feed-photo-grid.photo-count-1 img{max-height:570px;object-fit:contain}
.feed-post-footer{border-top:1px solid var(--line);padding-top:13px;margin-top:15px;color:var(--mute);font-size:12px}
.feed-post-hidden{opacity:.65;border-style:dashed}
.home-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-post-card{display:grid;align-content:start;gap:9px;background:#fff;border:1px solid var(--line);padding:15px;border-radius:14px;overflow:hidden;text-decoration:none!important}
.home-post-card:hover{border-color:#7caa8d}
.home-post-byline{display:flex;gap:9px;align-items:center;font-size:13px}.home-post-byline .feed-avatar{width:31px;height:31px;flex-basis:31px;font-size:17px}
.home-post-card p{margin:0;overflow-wrap:anywhere;white-space:pre-line;font-size:14px}
.home-post-card img{width:100%;aspect-ratio:5/3;object-fit:cover;border-radius:8px}
.home-post-card small{color:var(--mute)}.post-admin-excerpt{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:830px){.home-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.feed-container{gap:13px}.feed-composer,.feed-post{padding:16px}.composer-actions{gap:8px}.composer-actions .primary{min-width:112px}.feed-photo-picker small{display:none}.home-post-grid{grid-template-columns:1fr}.feed-photo-grid{gap:4px}}

/* Explicit dark mode */

html[data-theme="dark"]{--ink:#e8eee8;--green:#9ac8ad;--cream:#121a17;--line:#35483e;--mute:#acbbb1;--gold:#e0b980;color-scheme:dark}
html[data-theme="dark"] body{background:#121a17;color:#e8eee8}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .site-drawer{background:#1a2821;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] .mark,html[data-theme="dark"] .drawer-mark{background:#2f6148;color:#fff}
html[data-theme="dark"] .panel,html[data-theme="dark"] .photo-card,html[data-theme="dark"] .folder-card,html[data-theme="dark"] .reel-item,html[data-theme="dark"] .admin-tile,html[data-theme="dark"] .home-post-card,html[data-theme="dark"] .empty{background:#1b2922;color:var(--ink);border-color:var(--line)}
html[data-theme="dark"] input,html[data-theme="dark"] textarea,html[data-theme="dark"] select{background:#18261f;color:#edf2eb;border-color:#456052}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#a4b5aa}
html[data-theme="dark"] .button.secondary,html[data-theme="dark"] button.secondary,html[data-theme="dark"] .drawer-signout,html[data-theme="dark"] .menu-toggle,html[data-theme="dark"] .drawer-close{background:#24362b;color:#e9f1e9;border-color:#486252}
html[data-theme="dark"] .primary,html[data-theme="dark"] button.primary,html[data-theme="dark"] .button.primary{background:#326b4d!important;border-color:#326b4d!important;color:#fff!important}
html[data-theme="dark"] .drawer-avatar,html[data-theme="dark"] .feed-avatar,html[data-theme="dark"] .tile-icon{background:#2f4739;color:#e8f2e9}
html[data-theme="dark"] .home-switch,html[data-theme="dark"] .theme-options{background:#24392c}
html[data-theme="dark"] .switch-option{color:#c8e6d1}
html[data-theme="dark"] .switch-option.selected,html[data-theme="dark"] .theme-option.theme-selected{background:#406c50;color:#fff}
html[data-theme="dark"] .theme-option{color:#ecf2eb}
html[data-theme="dark"] .theme-option:hover{background:#365943}
html[data-theme="dark"] .drawer-nav a{color:#edf2eb}
html[data-theme="dark"] .drawer-nav a:hover,html[data-theme="dark"] .drawer-nav a[aria-current="page"]{background:#2b4434;color:#f2fff6}
html[data-theme="dark"] .drawer-signout:hover,html[data-theme="dark"] .folder-card:hover,html[data-theme="dark"] .folder-card.selected,html[data-theme="dark"] .admin-tile:hover,html[data-theme="dark"] .admin-tile.is-selected{background:#2a4233}
html[data-theme="dark"] .feed-photo-picker{background:#243c2d;color:#edf4e9;border-color:#456052}
html[data-theme="dark"] .pill{background:#2b4936;color:#dcf5dd}
html[data-theme="dark"] .pill-muted,html[data-theme="dark"] .flash.error{background:#56312d;color:#ffe0da}
html[data-theme="dark"] .flash{background:#24412e;color:#e3f6e8}
html[data-theme="dark"] footer{border-color:var(--line)}
html[data-theme="dark"] .slide-controls button{background:#d9e8d9;color:#163529}
html[data-theme="dark"] .hint,html[data-theme="dark"] .muted,html[data-theme="dark"] .folder-card small,html[data-theme="dark"] .home-post-card small,html[data-theme="dark"] .photo-card span{color:var(--mute)}
html[data-theme="dark"] .danger-outline{color:#ffc6bc;border-color:#b6786d}
html[data-theme="dark"] .danger-outline:hover{background:#57332e}

/* Follow the device appearance until a member chooses Light or Dark. */
@media(prefers-color-scheme:dark){

html[data-theme="system"]{--ink:#e8eee8;--green:#9ac8ad;--cream:#121a17;--line:#35483e;--mute:#acbbb1;--gold:#e0b980;color-scheme:dark}
html[data-theme="system"] body{background:#121a17;color:#e8eee8}
html[data-theme="system"] .topbar,html[data-theme="system"] .site-drawer{background:#1a2821;color:var(--ink);border-color:var(--line)}
html[data-theme="system"] .mark,html[data-theme="system"] .drawer-mark{background:#2f6148;color:#fff}
html[data-theme="system"] .panel,html[data-theme="system"] .photo-card,html[data-theme="system"] .folder-card,html[data-theme="system"] .reel-item,html[data-theme="system"] .admin-tile,html[data-theme="system"] .home-post-card,html[data-theme="system"] .empty{background:#1b2922;color:var(--ink);border-color:var(--line)}
html[data-theme="system"] input,html[data-theme="system"] textarea,html[data-theme="system"] select{background:#18261f;color:#edf2eb;border-color:#456052}
html[data-theme="system"] input::placeholder,html[data-theme="system"] textarea::placeholder{color:#a4b5aa}
html[data-theme="system"] .button.secondary,html[data-theme="system"] button.secondary,html[data-theme="system"] .drawer-signout,html[data-theme="system"] .menu-toggle,html[data-theme="system"] .drawer-close{background:#24362b;color:#e9f1e9;border-color:#486252}
html[data-theme="system"] .primary,html[data-theme="system"] button.primary,html[data-theme="system"] .button.primary{background:#326b4d!important;border-color:#326b4d!important;color:#fff!important}
html[data-theme="system"] .drawer-avatar,html[data-theme="system"] .feed-avatar,html[data-theme="system"] .tile-icon{background:#2f4739;color:#e8f2e9}
html[data-theme="system"] .home-switch,html[data-theme="system"] .theme-options{background:#24392c}
html[data-theme="system"] .switch-option{color:#c8e6d1}
html[data-theme="system"] .switch-option.selected,html[data-theme="system"] .theme-option.theme-selected{background:#406c50;color:#fff}
html[data-theme="system"] .theme-option{color:#ecf2eb}
html[data-theme="system"] .theme-option:hover{background:#365943}
html[data-theme="system"] .drawer-nav a{color:#edf2eb}
html[data-theme="system"] .drawer-nav a:hover,html[data-theme="system"] .drawer-nav a[aria-current="page"]{background:#2b4434;color:#f2fff6}
html[data-theme="system"] .drawer-signout:hover,html[data-theme="system"] .folder-card:hover,html[data-theme="system"] .folder-card.selected,html[data-theme="system"] .admin-tile:hover,html[data-theme="system"] .admin-tile.is-selected{background:#2a4233}
html[data-theme="system"] .feed-photo-picker{background:#243c2d;color:#edf4e9;border-color:#456052}
html[data-theme="system"] .pill{background:#2b4936;color:#dcf5dd}
html[data-theme="system"] .pill-muted,html[data-theme="system"] .flash.error{background:#56312d;color:#ffe0da}
html[data-theme="system"] .flash{background:#24412e;color:#e3f6e8}
html[data-theme="system"] footer{border-color:var(--line)}
html[data-theme="system"] .slide-controls button{background:#d9e8d9;color:#163529}
html[data-theme="system"] .hint,html[data-theme="system"] .muted,html[data-theme="system"] .folder-card small,html[data-theme="system"] .home-post-card small,html[data-theme="system"] .photo-card span{color:var(--mute)}
html[data-theme="system"] .danger-outline{color:#ffc6bc;border-color:#b6786d}
html[data-theme="system"] .danger-outline:hover{background:#57332e}

}

.honeypot{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important}

/* v0.4.1 family recipe book — responsive cards and readable instructions */
.recipe-home-link{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.recipe-home-link h2{font:normal 30px Georgia,serif;margin:4px 0 8px}
.recipe-home-link p{color:var(--mute);margin:0}
.recipe-heading{margin-bottom:18px}.recipe-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end}
.recipe-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.recipe-card{display:grid;align-content:start;border-radius:14px;overflow:hidden;background:#fff;border:1px solid var(--line);text-decoration:none!important;transition:transform .15s ease,border-color .15s ease}
.recipe-card:hover{transform:translateY(-2px);border-color:var(--green)}
.recipe-card img,.recipe-placeholder{width:100%;aspect-ratio:4/3;object-fit:cover;background:#e9eadf}
.recipe-placeholder{display:grid;place-items:center;font:66px Georgia,serif;color:#9e8c67}
.recipe-card-copy{display:grid;gap:5px;padding:16px}.recipe-card-copy strong{font:normal 23px/1.2 Georgia,serif;color:var(--ink)}
.recipe-card-copy small{font-size:12px;color:var(--mute)}
.recipe-detail{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(180px,1fr);gap:24px;margin-top:22px;align-items:start}
.recipe-detail h1{font:normal clamp(38px,5.5vw,59px)/1.13 Georgia,serif;margin:11px 0 8px}
.recipe-credit{color:var(--mute);font-size:17px;margin:0 0 24px}.recipe-section{margin-top:18px}
.recipe-section h2{font:normal 28px Georgia,serif;margin:0 0 14px}
.recipe-lines{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.recipe-story p{white-space:pre-wrap;margin-bottom:0}.recipe-card-scan{max-width:100%;max-height:720px;object-fit:contain;border-radius:8px}
.recipe-aside{display:grid;gap:12px}.recipe-aside small{color:var(--mute)}.recipe-form{max-width:810px;margin-top:20px}
html[data-theme="dark"] .recipe-card{background:#1b2922;color:var(--ink);border-color:var(--line)}
html[data-theme="system"] .recipe-card{color:var(--ink)}
@media(prefers-color-scheme:dark){html[data-theme="system"] .recipe-card{background:#1b2922;border-color:var(--line)}}
@media(max-width:820px){.recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-detail{grid-template-columns:1fr}}
@media(max-width:550px){.recipe-grid{grid-template-columns:1fr 1fr;gap:10px}.recipe-card-copy{padding:12px}.recipe-card-copy strong{font-size:19px}.recipe-filters{grid-template-columns:1fr}.recipe-home-link{align-items:flex-start}}


/* v0.4.2 — Phrases & Wisdom */
.wisdom-heading{margin-bottom:18px}.wisdom-filters{grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;align-items:end}
.wisdom-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.wisdom-card{display:flex;flex-direction:column;gap:12px;min-height:215px;padding:23px;border:1px solid var(--line);background:#fff;border-radius:14px;text-decoration:none!important;color:var(--ink);transition:transform .15s,border-color .15s}
.wisdom-card:hover{transform:translateY(-2px);border-color:var(--green)}
.wisdom-card blockquote{margin:0;font:normal clamp(19px,2vw,27px)/1.42 Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere}
.wisdom-card small{color:var(--mute)}.wisdom-card-bottom{margin-top:auto;font-size:12px;color:var(--mute)}
.wisdom-detail{display:grid;grid-template-columns:minmax(0,2.5fr) minmax(180px,1fr);align-items:start;gap:24px;margin:22px 0}
.wisdom-detail-main{padding:clamp(22px,4vw,44px)}.wisdom-detail blockquote{margin:20px 0;font:normal clamp(26px,4vw,46px)/1.4 Georgia,serif;white-space:pre-wrap;overflow-wrap:anywhere}
.wisdom-credit{color:var(--mute);font-size:17px}.wisdom-story{border-top:1px solid var(--line);margin-top:26px;padding-top:22px}.wisdom-story p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.wisdom-form{max-width:820px;margin-top:20px}
html[data-theme="dark"] .wisdom-card{background:#1b2922;color:var(--ink);border-color:var(--line)}
@media(prefers-color-scheme:dark){html[data-theme="system"] .wisdom-card{background:#1b2922;color:var(--ink);border-color:var(--line)}}
@media(max-width:820px){.wisdom-detail{grid-template-columns:1fr}}
@media(max-width:600px){.wisdom-grid{grid-template-columns:1fr}.wisdom-filters{grid-template-columns:1fr}.wisdom-card{min-height:170px}}
