/* Homepage-only additions. The original sky and chapter styles stay intact. */
.chapter-page[data-chapter="home"] { background:var(--paper); }
.home-cards { padding:52px 0 66px; color:var(--ink); }
.chapter-page > .home-cards { padding-top:52px; padding-bottom:60px; }
.home-cards-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:25px; }
.home-cards-heading h2 { margin:8px 0 0; font:400 29px/1.5 var(--display-cn); }
.home-cards-heading > span { color:#6c817b; font-size:12px; }
.home-cards-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; align-items:stretch; }
.home-card { display:flex; flex-direction:column; align-items:flex-start; min-width:0; padding:24px 21px; border:1px solid #fffdf5; border-radius:22px; background:linear-gradient(145deg,#fffef8e8,#edf3e9c9); box-shadow:0 8px 24px #31555009; overflow-wrap:anywhere; }
a.home-card { transition:transform .2s,box-shadow .2s,border-color .2s; }
a.home-card:hover { transform:translateY(-3px); border-color:#bdd5c8; box-shadow:0 12px 26px #31555012; }
.home-card > img { width:55px; height:55px; object-fit:cover; border:3px solid white; border-radius:50%; margin-bottom:20px; }
.home-card-icon { display:grid; place-items:center; width:55px; height:55px; border-radius:18px; background:#ffffffa8; color:#547e74; font:30px/1 Georgia,serif; margin-bottom:20px; }
.home-card-kicker { color:#687d72; font:9px/1.6 var(--sans); letter-spacing:1.2px; }
.home-card h3 { font:400 23px/1.5 var(--display-cn); margin:12px 0; }
.home-card > p { font:12px/1.95 var(--sans); color:#62796e; margin:0 0 24px; }
.home-card-link { display:flex; align-items:center; justify-content:space-between; align-self:stretch; gap:10px; margin-top:auto; padding-top:16px; border-top:1px solid #cbdcd080; color:#326f66; font:12px/1.6 var(--sans); }
.home-card-link > span { font-size:19px; }
.home-card-feelings { background:linear-gradient(145deg,#fdfcf3,#eff2ddeb); }
.home-card-message { background:linear-gradient(145deg,#f7fcfb,#e5eff0c9); }
.home-card-recent { background:#fffdf6dd; }
#home-recent-slot { width:100%; margin-bottom:15px; }
.home-recent-placeholder { font-size:12px; color:#62796e; }
.home-card .recent-updates-compact { width:100%; margin:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; }
.recent-updates-compact > .section-script,.recent-updates-compact > h2 { display:none; }
.recent-updates-compact .recent-list { display:grid; grid-template-columns:1fr; gap:0; }
.recent-updates-compact .recent-entry { padding:10px 0; border:0; border-bottom:1px solid #cbdcd080; border-radius:0; background:transparent; gap:5px; }
.recent-updates-compact .recent-entry:hover { background:#eef4e8; }
.recent-updates-compact .recent-entry strong { font:400 16px/1.5 var(--display-cn); color:#365c52; }
.recent-updates-compact .recent-excerpt { display:none; }
.recent-updates-compact .message-meta { color:#63796b; font-size:10px; }
.recent-updates-compact .system-status { font-size:12px; color:#657c6c; }
.home-card:focus-visible,.home-card :is(a,button):focus-visible { outline:3px solid #418d80; outline-offset:4px; }
@media(max-width:1100px) { .home-cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .chapter-page > .home-cards,.home-cards { padding:32px 0 38px; }
  .home-cards-heading { align-items:flex-start; flex-direction:column; gap:7px; }
  .home-cards-heading h2 { font-size:26px; }
  .home-cards-grid { grid-template-columns:1fr; gap:14px; }
  .home-card { padding:23px; border-radius:20px; }
  .home-card > img,.home-card-icon { width:44px; height:44px; margin-bottom:14px; }
}
@media(prefers-reduced-motion:reduce) { a.home-card { transition:none; } a.home-card:hover { transform:none; } }
