/* A brighter storybook atmosphere, with calm reading surfaces. */
:root {
  --bg: #fff9ed;
  --surface: #fffef9;
  --ink: #2e4438;
  --muted: #74816f;
  --green: #477c60;
  --green-dark: #326147;
  --pale: #e7f1df;
  --line: #e8e4d4;
}

body { background: #fff9ed; }
.workspace {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse 76% 510px at 97% 0%, #deedf6b5, transparent 85%),
    radial-gradient(ellipse 80% 680px at 0% 13%, #ffe3b5a6, transparent 85%),
    radial-gradient(ellipse 65% 630px at 100% 53%, #e2edd0b3, transparent 86%),
    radial-gradient(ellipse 80% 620px at 40% 100%, #ebe0f5b8, transparent 88%),
    #fff9ed;
}
.workspace::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url('assets/magic-sky.svg') top center / 1040px 850px repeat-y;
  opacity: .56;
}
.sidebar {
  background: linear-gradient(165deg, #fffdf5 15%, #fff5df 70%, #f1efdf 100%);
  border-color: #e9e2cd;
}
.topbar {
  background: #fffdf480;
  border-bottom-color: #e7e0ce;
}
.brand-mark { color: #538b65; }
.brand-dot { color: #e39659; }
.brand small, .family-label { color: #8b947b; }
.nav-item { color: #6c7c68; }
.nav-item:hover { background: #f0efd7; }
.nav-item.active {
  background: linear-gradient(110deg, #dceccc, #e9f0d8);
  color: #3c6746;
  box-shadow: inset 0 0 0 1px #d3e2bd;
}
.nav-item.active .mini-dot { background: #7da251; }
.together-card {
  background: linear-gradient(145deg, #ffedcf, #f7e5d9 65%, #f1e8ef);
  border-color: #ebd9bd;
  box-shadow: 0 6px 22px #b99a6110;
}
.together-art { color: #c79448; }
.together-art b { color: #be8767; }
.together-card p { color: #8a7963; }
.parent-link, .sidebar-footer { color: #7e896f; }
.eyebrow { color: #7c9362; }
.welcome-row p, .section-heading p { color: #76836d; }
.date-pill {
  background: #fff9e3cf;
  color: #8d8159;
  border-color: #e9dcb9;
}
.date-pill .icon { color: #cfaa4a; }
.hero {
  background: #fff0cc;
  border-color: #dfd7b4;
  box-shadow: 0 12px 35px #96793b0d;
}
.hero > img { filter: saturate(1.08) brightness(1.025); }
.hero::after {
  background: linear-gradient(90deg, #fff0d1 0%, #fff0d1 25%, #fff1dbe8 35%, #fff1d83d 49%, transparent 60%);
}
.hero .tag { color: #8b9150; }
.hero h2 em { color: #59804e; }
.hero p { color: #758069; }
.hero-footnote { color: #8a8c6e; }
.hero-label { background: #fff7ddeb; border-color: #fffce8b3; color: #7f7955; }
.primary { box-shadow: 0 5px 15px #3f705321; }
.quick-card {
  border-color: #e5dfca;
  box-shadow: 0 4px 15px #94783a08;
}
.quick-card:nth-child(1) { background: linear-gradient(125deg, #f4f9e9, #e7f0d6); }
.quick-card:nth-child(2) { background: linear-gradient(125deg, #fff8e6, #fcedce); }
.quick-card:nth-child(3) { background: linear-gradient(125deg, #fff4eb, #f7e1d7); }
.quick-card:nth-child(4) { background: linear-gradient(125deg, #f7f2fc, #eae1f3); }
.quick-card:nth-child(1) .quick-icon { background: #dceac6; color: #73934f; }
.quick-card:nth-child(2) .quick-icon { background: #f8e4b8; color: #b78b3f; }
.quick-card:nth-child(3) .quick-icon { background: #f1d1c2; color: #b77f65; }
.quick-card:nth-child(4) .quick-icon { background: #dfd2ed; color: #9680b0; }
.quick-card small { color: #7d846d; }
.quick-card > .icon { color: #99a180; }
.quick-card:hover { border-color: #b9cca0; box-shadow: 0 8px 25px #78945018; }
.story-card { border-color: #e3deca; box-shadow: 0 5px 18px #92865109; }
.story-card:hover { box-shadow: 0 10px 27px #78945018; }
.story-body p, .story-meta { color: #7b866e; }
.round-button { background: #e8f0d8; color: #759552; }
.story-badge { background: #fffbedf5; color: #75854d; }
.family-banner, .family-hero {
  background: linear-gradient(110deg, #fff0d7, #f8e4d6 60%, #f2e5ea);
  border-color: #e8d8bd;
}
.family-banner p, .family-hero p { color: #8e7e68; }
.family-orbit span { border-color: #faead4; background: #ecd2b5; }
.family-orbit span:nth-child(2) { background: #dce8c8; }
.continue-card { background: linear-gradient(100deg, #eaf3dc, #f5f7e5); border-color: #d9e6c4; }
.page-footer { color: #8a8e7c; }
.page-footer .text-link { color: #818c71; }
.panel, .stat, .achievement, .my-story { box-shadow: 0 4px 18px #917a4408; }
.bedtime-banner { background: linear-gradient(110deg, #eeE6f6, #e4e9f6); border-color: #dcd4eb; }

/* The evening setting stays quiet and decoration-free. */
.calm { --bg: #f1efe9; --surface: #f5f3ed; --muted: #7a8174; }
.calm .workspace {
  background: radial-gradient(ellipse at top right, #e7e8ee80, transparent 75%), #f1efe9;
}
.calm .workspace::before { display: none; }
.calm .sidebar { background: #f4f2e9; }
.calm .topbar { background: #f4f2edb3; }
.calm .hero { background: #eceee2; box-shadow: none; }
.calm .hero::after { background: linear-gradient(90deg, #eceee2 0%, #eceee2 25%, #eceee2e8 35%, #eceee23d 49%, transparent 60%); }
.calm .hero > img { filter: saturate(.65); }
.calm .quick-card { background: #f5f3ea; box-shadow: none; }
.calm .together-card, .calm .family-banner, .calm .family-hero { background: #eeeadf; }

@media (max-width: 700px) {
  .workspace::before { background-size: 600px 700px; opacity: .4; }
  .sidebar { background: #fffaf0f5; border-top-color: #e4dfcb; }
  .hero::after { background: linear-gradient(180deg, #fff0d1 0%, #fff0d1fa 23%, #fff0d198 43%, transparent 65%); }
  .calm .hero::after { background: linear-gradient(180deg, #eceee2 0%, #eceee2fa 23%, #eceee298 43%, transparent 65%); }
  .calm .sidebar { background: #f4f2e9f5; }
}
