/*
 * Storefront pieces the Colour Press pages still share with the quiet pages (B1): Add to cart and the waitlist, signups, "Where we ship",
 * the contact page, 404 and 500. The Colour Press page layouts live in press.css, press-home.css, press-pdp.css and press-pages.css
 * (docs/PRESS-KIT.md, DECISIONS D20); the old sf-* page layouts (hero, campaign, tiles, gallery, panels) are gone with their markup.
 * Rules (ARCHITECTURE section 5): flat Paper ground, hairlines between blocks, radius 0 except inputs and buttons, step colour only
 * through the partials (names, tabs, the reason numeral), 44px touch targets, nothing under 14px.
 */

/* Cutout heights are about 2.3 (serum) to 2.9 (mist) times their width, and 0.73 for the jar: contexts below limit height through this ratio. */
.nl-image { --sf-ratio: 2.3; }
.nl-image[data-product="ocean"] { --sf-ratio: 2.9; }
.nl-image[data-product="uptop"] { --sf-ratio: 2.8; }
.nl-image[data-product="moo"] { --sf-ratio: 0.73; }

/* ===================================================================== */
/* Add to cart and the waitlist (tiles, cards, the kit page)             */
/* ===================================================================== */
.sf-add { display: grid; gap: 8px; }
.sf-add__form { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.sf-add__form .nl-btn { flex: 1 1 180px; }
.sf-add__topical { margin: 0; font-size: var(--nl-text-body-sm); line-height: var(--nl-lh-body-sm); }

.sf-waitlist > summary { list-style: none; cursor: pointer; }
.sf-waitlist > summary::-webkit-details-marker { display: none; }
.sf-waitlist > summary::marker { content: none; }
.sf-waitlist[open] > summary { margin-bottom: 16px; }


/* ===================================================================== */
/* Signup, waitlist, contact                                                */
/* ===================================================================== */
.sf-signup { display: grid; gap: 12px; align-content: start; }
.sf-signup__heading { margin: 0; }
.sf-signup__intro { margin: 0; max-width: 52ch; font-size: var(--nl-text-body-lg); }
.sf-signup__form, .sf-form { display: grid; gap: 16px; max-width: 560px; }
.sf-signup__form .nl-btn { justify-self: start; }
.sf-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.nl-buy .sf-signup__form { max-width: none; }

.sf-ship { display: grid; gap: 24px; }
.sf-ship__text p { max-width: 56ch; }
@media (min-width: 750px) { .sf-ship { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.sf-contact { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 990px) { .sf-contact { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.sf-contact__details { padding-top: clamp(0px, 1vw, 8px); }
@media (min-width: 990px) { .sf-contact__details { padding-left: clamp(24px, 3vw, 48px); border-left: 1px solid var(--nl-hairline); } }

/* ===================================================================== */
/* 404 and 500                                                              */
/* ===================================================================== */
.sf-404 h1 { font-size: var(--nl-text-display); line-height: var(--nl-lh-display); }
.sf-404__ways { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; font-size: var(--nl-text-body-lg); }
.sf-404__ways a { display: inline-flex; align-items: center; min-height: var(--nl-target-min); font-weight: 600; }
.sf-500__brand { display: block; width: 156px; color: var(--nl-ink); }
