/* Display is admitted by fresh public controls; data loading is local. */
#home-content[hidden],#home-maintenance[hidden],#home-shell-status[hidden]{display:none!important}
#home-content[inert]{visibility:hidden}
.home-shell-status{box-sizing:border-box;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;margin:0;padding:32px 20px;background:#faf4eb;color:#315773;text-align:center;font:16px/1.6 'Nunito Sans',Arial,sans-serif}
.home-shell-status strong{font:500 42px/1.2 'Cormorant Garamond',Georgia,serif}
.home-shell-status p{max-width:46ch;margin:0}
.home-shell-status button{min-height:44px;padding:10px 22px;border:1px solid #315773;border-radius:9px;background:#fffaf4;color:#315773;font:inherit}
body[data-home-state=maintenance] #home-maintenance{min-height:100vh;background:#faf4eb}
body[data-home-state=ready] .d-grid[data-catalog-state=loading]{min-height:230px}
body[data-home-state=ready] .d-photo img{aspect-ratio:1;object-fit:cover}
body[data-home-state=ready] .d-grid .catalog-state{width:100%;box-sizing:border-box}
@media(prefers-reduced-motion:reduce){#home-content *{scroll-behavior:auto}}

/* Home cards keep natural text height and a compact route to ordering. */
#home-content .d-featured .d-grid{align-items:stretch}
#home-content .d-featured .d-card{height:auto;box-sizing:border-box}
#home-content .d-featured .d-copy{display:flex;flex:1;flex-direction:column;align-items:stretch;padding:14px 12px 12px;text-align:center}
#home-content .d-featured .d-copy>h3{margin:0 0 10px;min-height:0}
#home-content .d-featured .d-card-story{display:flex;flex:1 0 auto;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;min-height:0;padding:0}
#home-content .d-featured .d-card-story>p{margin:0;min-height:0;max-width:36ch;line-height:1.5}
#home-content .d-featured .d-card-story>.d-card-meta{display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:end;column-gap:12px;flex:none;width:100%;min-width:0;box-sizing:border-box;margin:auto 0 0;padding:0;line-height:1.5;text-align:left}
#home-content .d-featured .d-card-materials{min-width:0;overflow-wrap:anywhere}
#home-content .d-featured .d-card-price{white-space:nowrap;overflow-wrap:normal;word-break:normal;text-align:right;font-variant-numeric:tabular-nums}
#home-content .d-featured .piece-quantity--fixed{display:none}
#home-content .d-featured .d-copy>.add-cart{margin-top:14px;align-self:stretch}
