
/* Universal homepage for first-time and returning visitors. */
body{background:#f8fbf6}
main#dailyHome{max-width:1040px;padding-top:28px}
.daily-welcome{text-align:center;padding:22px 4px 14px}.daily-welcome .kicker{margin:0 0 11px}
.daily-date{color:#4b6b54;font-size:12px;font-weight:700;letter-spacing:.035em;margin-left:10px;text-transform:none}
.daily-welcome h1{font:normal clamp(39px,6.3vw,69px)/1.12 Georgia,serif;letter-spacing:-.042em;margin:0 0 13px}
.daily-welcome .lead{font-size:clamp(16px,2.4vw,19px);margin:0 auto 8px;max-width:650px}
.daily-highlight{background:linear-gradient(125deg,#dfeee0,#f6eedb);border:1px solid #c9decb;border-radius:25px;padding:clamp(24px,4.5vw,40px);min-height:170px;margin:22px 0 14px;box-shadow:0 8px 20px #1c51320b}
.daily-eyebrow{font-size:11px;letter-spacing:.1em;color:#437352;font-weight:850;text-transform:uppercase;margin:0 0 9px}
.daily-thought{font:normal clamp(24px,4.2vw,38px)/1.24 Georgia,serif;letter-spacing:-.018em;color:#263e31;margin:0 0 12px}
.daily-subtle{font-size:13px;color:#557363;margin:0}
.daily-spark-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.daily-spark{border:1px solid var(--line);border-radius:20px;background:#fff;padding:clamp(20px,3.2vw,28px);min-width:0;display:flex;flex-direction:column;align-items:start;box-shadow:0 5px 20px #1c51320b}
.daily-spark h2{font:normal clamp(23px,3vw,29px)/1.25 Georgia,serif;letter-spacing:-.02em;color:#244834;margin:0 0 11px}
.daily-spark>p:not(.daily-eyebrow){font-size:15px;line-height:1.62;color:#48644f;margin:0 0 14px;flex:1}
.daily-spark>a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:800;text-decoration:underline;text-underline-offset:4px;color:#286548}
.daily-action{background:#f5f8f0}
.daily-choose{margin:30px 0 17px}.daily-choose h2{font:normal clamp(27px,4.2vw,35px)/1.24 Georgia,serif;letter-spacing:-.025em;margin:0 0 15px;color:#263e31}
.daily-door-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.daily-door-grid .daily-door{padding:20px 18px;min-height:210px;border-radius:18px;box-shadow:0 5px 20px #1c51320b;display:flex;flex-direction:column;align-items:start}
.daily-door .icon{margin:0 0 14px;font-size:29px;line-height:1}
.daily-door h3{font:normal clamp(21px,2.8vw,26px)/1.25 Georgia,serif;letter-spacing:-.02em;color:var(--ink);margin:0 0 8px}
.daily-door p{font-size:13px;line-height:1.5;flex:1;margin:0 0 12px;color:#58705e}
.daily-door .go{font-size:12.5px;line-height:1.4}
.daily-resume{margin:17px 0 18px;border:1px solid #b8d2bd;border-radius:17px;background:#ebf5eb;padding:18px 20px;display:flex;justify-content:space-between;gap:16px;align-items:center}
.daily-resume[hidden]{display:none!important}
.daily-resume h2{font:normal 23px/1.3 Georgia,serif;margin:0 0 5px}
.daily-resume p:last-child{font-size:13px;color:#4b6854;margin:0}
.daily-resume>a{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;min-height:44px;white-space:nowrap;background:#286548;border-radius:11px;color:#fff;font-size:14px;font-weight:750}
.daily-quick{margin:18px 0 19px;gap:8px}.daily-quick a{min-height:44px;display:inline-flex;align-items:center;padding:8px 13px;font-size:13px}
.daily-prefs,.daily-install{background:#fff;border:1px solid var(--line);border-radius:14px;margin:9px 0;overflow:hidden}
.daily-prefs summary,.daily-install summary{min-height:48px;display:flex;align-items:center;cursor:pointer;padding:12px 16px;font-size:14px;font-weight:750;color:#2a533a}
.daily-prefs-body{border-top:1px solid #e2eee3;padding:13px 16px 17px;font-size:13px;line-height:1.55;color:#516b57}
.daily-prefs-body p{margin:9px 0 0}
.daily-toggle{display:flex;align-items:start;gap:12px;cursor:pointer;color:#2b503a}.daily-toggle input{width:24px;height:24px;accent-color:#286548;flex:0 0 auto}
.daily-toggle strong,.daily-toggle small{display:block}.daily-toggle small{font-size:12px;line-height:1.45;font-weight:400;margin-top:4px;color:#536d5b}
.daily-door:focus-visible,.daily-spark>a:focus-visible,.daily-resume>a:focus-visible,.daily-prefs summary:focus-visible,.daily-install summary:focus-visible,.daily-toggle input:focus-visible{outline:3px solid #9773a9;outline-offset:3px}
@media(max-width:900px){.daily-door-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-door-grid .daily-door{min-height:185px}}
@media(max-width:600px){
main#dailyHome{padding:16px 15px 72px}.daily-welcome{padding:22px 3px 7px}.daily-welcome h1{font-size:clamp(38px,10vw,51px)}
.daily-highlight{padding:22px 19px;border-radius:19px;min-height:135px;margin:17px 0 11px}.daily-thought{font-size:clamp(25px,6.2vw,32px)}
.daily-spark-grid{grid-template-columns:1fr;gap:10px}.daily-spark{padding:17px 19px;border-radius:17px}.daily-spark h2{font-size:24px}.daily-spark>p:not(.daily-eyebrow){font-size:14px}
.daily-choose{margin:22px 0 12px}.daily-door-grid{gap:9px}.daily-door-grid .daily-door{min-height:155px;padding:14px 13px;border-radius:15px}
.daily-door .icon{font-size:24px;margin-bottom:10px}.daily-door h3{font-size:21px}.daily-door p{font-size:12.5px;line-height:1.45;margin-bottom:9px}.daily-door .go{font-size:12px}
.daily-resume{align-items:start;flex-direction:column;padding:15px 17px}
}
@media(max-width:360px){.daily-door h3{font-size:19px}.daily-door-grid .daily-door{padding:12px 11px}.daily-date{display:block;margin:6px 0 0}.daily-highlight{padding:20px 16px}}
@media(prefers-reduced-motion:reduce){.daily-door{transition:none!important}}
html[data-theme="dark"] body{background:#1d3026}
html[data-theme="dark"] .daily-highlight{background:linear-gradient(120deg,#234333,#364a35);border-color:#678c72}
html[data-theme="dark"] .daily-thought,html[data-theme="dark"] .daily-spark h2,html[data-theme="dark"] .daily-choose h2{color:#edf9ed}
html[data-theme="dark"] .daily-spark{background:#253c2f;border-color:#698f72}
html[data-theme="dark"] .daily-action{background:#2c4134}
html[data-theme="dark"] .daily-spark>p:not(.daily-eyebrow),html[data-theme="dark"] .daily-subtle{color:#d4e7d8}
html[data-theme="dark"] .daily-prefs,html[data-theme="dark"] .daily-install{background:#253c2f;border-color:#60836a}
html[data-theme="dark"] .daily-prefs summary,html[data-theme="dark"] .daily-install summary{color:#e8f5ec}
html[data-theme="dark"] .daily-prefs-body{border-color:#536c59;color:#cfe2d3}


/* Calm homepage: the choices first; extras available, never deleted. */
main#dailyHome{padding-top:12px}
.daily-welcome{text-align:left;padding:12px 4px 2px}
.daily-welcome h1{font-size:clamp(35px,5vw,52px);margin-bottom:8px}
.daily-welcome .lead{margin:0 0 7px;max-width:none;font-size:15px}
.daily-choose{margin:14px 0 18px}
.daily-choose h2{font-size:clamp(24px,3.4vw,30px);margin:0 0 12px}
.daily-door-grid{gap:10px}
.daily-door-grid .daily-door{min-height:145px;padding:17px;border-radius:15px;box-shadow:none;border-color:#cddfd1}
.daily-door .icon{font-size:24px;margin-bottom:8px}
.daily-door h3{font-size:21px;line-height:1.22;margin-bottom:5px}
.daily-door p{font-size:13px;line-height:1.4;margin-bottom:7px}
.daily-door .go{font-size:12px}
.daily-highlight{min-height:0;margin:14px 0;padding:17px 19px;border-radius:16px;box-shadow:none}
.daily-highlight .daily-thought{font-size:clamp(20px,3vw,26px);margin:2px 0 0}
.daily-highlight .daily-subtle{display:none}
.als-home-extras{border:1px solid #cbded0;background:#f7faf7;border-radius:15px;margin:12px 0;overflow:hidden}
.als-home-extras>summary{min-height:51px;padding:14px 17px;cursor:pointer;color:#254d36;font:750 15px/1.4 system-ui,sans-serif}
.als-home-extras>summary:focus-visible{outline:3px solid #8163b0;outline-offset:-3px}
.als-home-extra-content{padding:0 12px 15px}
.als-home-extra-content .daily-spark-grid{gap:10px}
.als-home-extra-content .daily-spark{padding:14px;box-shadow:none}
.als-home-extra-content .daily-spark h2{font-size:21px}
.als-home-extra-content .daily-quick{margin:13px 0 0}
html[data-theme="dark"] .als-home-extras{background:#243c2d;border-color:#729179}
html[data-theme="dark"] .als-home-extras>summary{color:#eff9f0}
@media(max-width:600px){
 main#dailyHome{padding:8px 15px 96px}
 .daily-welcome{padding:12px 2px 0}
 .daily-welcome h1{font-size:37px}
 .daily-welcome .kicker{font-size:10px}
 .daily-door-grid{grid-template-columns:1fr!important;gap:8px}
 .daily-door-grid .daily-door{min-height:0!important;padding:12px 13px!important;border-radius:13px!important;display:grid!important;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center}
 .daily-door .icon{grid-column:1;grid-row:1/3;font-size:22px!important;margin:0}
 .daily-door h3{grid-column:2;grid-row:1;font-size:19px!important;line-height:1.25;margin:0 0 2px}
 .daily-door p{grid-column:2;grid-row:2;font-size:12px!important;line-height:1.35;margin:0!important}
 .daily-door .go{display:none}
 .daily-choose{margin:10px 0 13px}
 .daily-choose h2{font-size:25px;margin-bottom:10px}
 .daily-highlight{padding:13px 15px;margin:13px 0}
 .daily-thought{font-size:20px!important}
}

/* Home at night (Nov 20, 2026, Graham: home should be green like the
   other pages). The home shell never loaded the sky system, so it kept
   its light look after dark. index.html now sets data-sf-sky with the
   site's own solar math; this block gives home the same night palette
   as the rest of the site: the night scene behind, dark green surfaces
   (#16263f), pale text (#e9f1ea), soft green for quieter lines. */
html[data-sf-sky="night"]{--ink:#e9f1ea;--muted:#b9cec0;--accent:#9adbbd;--paper:#16263f;--line:#33507a;--bg:#101d33}
html[data-sf-sky="night"] body{background:linear-gradient(180deg,#101d33,#1d3252 55%,#2c4a6b);background-attachment:fixed;color:#e9f1ea}
/* Nov 21, 2026, Graham: the home page matches the other pages. Day and sunset now
   carry the same sky the Food Journal and the Workout use, instead of flat cream. */
html[data-sf-sky="day"] body{background:radial-gradient(ellipse at 80% 10%,rgba(255,255,255,.7),transparent 42%),linear-gradient(180deg,#6fb6e8 0%,#a5d6f2 52%,#d8efdd 100%);background-attachment:fixed}
html[data-sf-sky="sunset"] body{background:radial-gradient(ellipse at 84% 14%,rgba(255,170,90,.5),transparent 46%),linear-gradient(180deg,#8a76bd 0%,#b98aa4 50%,#f0b57e 100%);background-attachment:fixed}
html[data-theme="dark"][data-sf-sky="day"] body{background:radial-gradient(ellipse at 80% 10%,rgba(143,208,191,.24),transparent 44%),linear-gradient(180deg,#16303a 0%,#1f4030 58%,#101a15 100%);background-attachment:fixed}
html[data-theme="dark"][data-sf-sky="sunset"] body{background:radial-gradient(ellipse at 84% 14%,rgba(255,150,80,.32),transparent 46%),linear-gradient(180deg,#2e1f3d 0%,#54303a 55%,#1a1216 100%);background-attachment:fixed}
html[data-sf-sky="night"] .daily-date{color:#b9cec0}
html[data-sf-sky="night"] .daily-highlight{background:#16263f;border-color:#33507a;box-shadow:none}
html[data-sf-sky="night"] .daily-eyebrow{color:#9adbbd}
html[data-sf-sky="night"] .daily-thought{color:#e9f1ea}
html[data-sf-sky="night"] .daily-subtle{color:#b9cec0}
html[data-sf-sky="night"] .daily-spark{background:#16263f;box-shadow:none}
html[data-sf-sky="night"] .daily-spark h2{color:#e9f1ea}
html[data-sf-sky="night"] .daily-spark>p:not(.daily-eyebrow){color:#cfe3d4}
html[data-sf-sky="night"] .daily-spark>a{color:#9adbbd}
html[data-sf-sky="night"] .daily-action{background:#22392e}
html[data-sf-sky="night"] .daily-choose h2{color:#e9f1ea}
html[data-sf-sky="night"] .daily-door p{color:#b9cec0}
html[data-sf-sky="night"] .daily-resume{background:#16263f;border-color:#33507a}
html[data-sf-sky="night"] .daily-resume p:last-child{color:#b9cec0}
html[data-sf-sky="night"] .daily-prefs,html[data-sf-sky="night"] .daily-install{background:#16263f}
html[data-sf-sky="night"] .daily-prefs summary,html[data-sf-sky="night"] .daily-install summary{color:#e9f1ea}
html[data-sf-sky="night"] .daily-prefs-body{border-top-color:#33507a;color:#cfe3d4}
html[data-sf-sky="night"] .daily-toggle{color:#e9f1ea}
html[data-sf-sky="night"] .daily-toggle small{color:#b9cec0}
html[data-sf-sky="night"] .quick a{background:#16263f;border-color:#33507a;color:#e9f1ea}
html[data-sf-sky="night"] .more{background:#16263f}
html[data-sf-sky="night"] .als-home-extras{background:#16263f;border-color:#33507a}
html[data-sf-sky="night"] .als-home-extras>summary{color:#e9f1ea}

/* Glass tiles (Nov 21, 2026, Graham): every tile is translucent, so the sky
   shows through as you scroll. Day: frosted white. Night: the deep blue. */
.door,.daily-spark,.daily-action,.daily-resume,.daily-highlight,.daily-prefs,.daily-install,.als-home-extras,.more{background:rgba(22,38,63,.78)!important;-webkit-backdrop-filter:blur(14px) saturate(150%);backdrop-filter:blur(14px) saturate(150%)}
html[data-sf-sky="night"] .door,html[data-sf-sky="night"] .daily-spark,html[data-sf-sky="night"] .daily-action,html[data-sf-sky="night"] .daily-resume,html[data-sf-sky="night"] .daily-highlight,html[data-sf-sky="night"] .daily-prefs,html[data-sf-sky="night"] .daily-install,html[data-sf-sky="night"] .als-home-extras,html[data-sf-sky="night"] .more{background:rgba(22,38,63,.72)!important;border-color:#33507a!important}
/* The sky orb (Nov 21, 2026, Graham): the sun rides the day sky and becomes
   the moon at night, following the same solar phases as the sky colors. */
.sky-orb{position:fixed;top:74px;right:20px;width:54px;height:54px;border-radius:50%;pointer-events:none;z-index:0;background:radial-gradient(circle at 40% 40%,#ffe9a8,#f7b733 72%);box-shadow:0 0 42px 12px rgba(247,183,51,.45)}
html[data-sf-sky="sunset"] .sky-orb{top:104px;background:radial-gradient(circle at 40% 40%,#ffd29d,#f08c3a 72%);box-shadow:0 0 42px 12px rgba(240,140,58,.4)}
html[data-sf-sky="night"] .sky-orb{background:radial-gradient(circle at 40% 40%,#fdfdf8,#cfd8e6 75%);box-shadow:0 0 34px 8px rgba(207,216,230,.35),inset -13px -5px 0 0 rgba(16,29,51,.16)}
header,main,footer{position:relative;z-index:1}

/* Ride card (Nov 21, 2026, Graham): GoodTurn joins the home doors as a
   full-width card under the four. */
.cards .ride-door{grid-column:1/-1;min-height:0}

/* Blue tiles all day (Nov 21, 2026, Graham: "The home page still isn't blue
   like the other pages"): the tiles carry the deep blue in every phase, so
   their text takes the pale night colors in every phase too. The sky
   behind them still follows the day. */
.door,.daily-spark,.daily-action,.daily-resume,.daily-highlight,.daily-prefs,.daily-install,.als-home-extras,.more{color:#e9f1ea!important;border-color:#33507a!important}
.door h3,.daily-spark h2,.daily-resume h2,.daily-highlight h2,.more summary{color:#e9f1ea!important}
.door p,.daily-spark>p:not(.daily-eyebrow),.daily-resume p,.daily-highlight p,.daily-prefs-body,.daily-prefs-body p{color:#c9d8ea!important}
.door .go,.daily-spark>a{color:#9adbbd!important}
.door .daily-eyebrow,.daily-spark .daily-eyebrow,.daily-highlight .daily-eyebrow{color:#9adbbd!important}
.daily-prefs summary,.daily-install summary{color:#e9f1ea!important}
.daily-prefs-body{border-top-color:#33507a!important}
.daily-resume>a{background:#25604d!important;color:#fff!important}


/* Empty daily sections collapse (Nov 21, 2026): a section the shell
   builds but leaves empty takes no room on the page. */
.daily-spark:empty,.daily-resume:empty,.daily-action:empty,.daily-prefs:empty,.daily-install:empty,.als-home-extras:empty{display:none!important}
