/* Notify When In Stock — DTC retail. Teal background, coral accent, friendly DTC type,
   vintage shop-sign chrome. Personas 7 + 6 (DTC + warehouse). */
/* Design review: Marigold "Mari" Kawamura-Ryan. Brief: italicize the accent word, soften the
   card chrome to 2026 DTC standards, add a "back in stock" pill state, refactor !important. */

:root[data-site="notifywheninstock"] {
    --ns-bg: #f0f9f7;
    --ns-surface: #ffffff;
    --ns-fg: #134e4a;
    --ns-muted: #5e7a76;
    --ns-accent: #0d9488;
    --ns-accent-soft: #ccfbf1;
    --ns-coral: #fb7185;
    --ns-coral-deep: #e11d48;
    --ns-cream: #fffbf2;
    --ns-rule: #cbe7e1;
    --ns-rule-strong: #9ad4cb;
    --ns-display: "Recoleta", "DM Serif Display", "Cormorant Garamond", Georgia, serif;
    --ns-sans: "Inter", "Avenir Next", system-ui, sans-serif;
}
html[data-site="notifywheninstock"], body { background: var(--ns-bg); color: var(--ns-fg); }
body {
    font-family: var(--ns-sans); margin: 0; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "kern", "liga", "ss01";
}

.ns-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.ns-header { background: var(--ns-surface); padding: 1rem 0; border-bottom: 1px solid var(--ns-rule); }
.ns-header .ns-container { display: flex; justify-content: space-between; align-items: center; }
.ns-brand {
    display: inline-flex; align-items: center; gap: .55rem;
    color: var(--ns-fg); text-decoration: none;
    font-family: var(--ns-display); font-size: 1.25rem;
    letter-spacing: -.005em;
}
.ns-brand-strong { color: var(--ns-coral); font-style: italic; }
.ns-nav { display: flex; align-items: center; gap: .25rem; }
.ns-nav a {
    color: var(--ns-muted); text-decoration: none; margin-left: 1.25rem; font-weight: 500;
    transition: color .12s ease;
}
.ns-nav a:hover { color: var(--ns-fg); }
.ns-nav a:focus-visible { outline: 2px solid var(--ns-coral); outline-offset: 4px; border-radius: 4px; }

/* Mari: refactor !important. */
.ns-nav a.ns-cta {
    background: var(--ns-coral); color: #fff;
    padding: .55rem 1.1rem; border-radius: 999px; font-weight: 600;
}
.ns-nav a.ns-cta:hover { background: var(--ns-coral-deep); color: #fff; }

.ns-main { padding: 0; }
.ns-hero { padding: 4.5rem 0; }
.ns-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: center; }
@media (max-width: 760px) { .ns-hero-grid { grid-template-columns: 1fr; } }
h1 { font-family: var(--ns-display); font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; margin: 0 0 1rem; letter-spacing: -.01em; font-weight: 600; }
/* Mari: italicize the accent word. The serif gets to do its job. */
.ns-accent {
    color: var(--ns-accent); position: relative;
    font-style: italic; font-weight: 500;
}
.ns-accent::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
    background: var(--ns-coral); border-radius: 2px;
}
.ns-lede { color: var(--ns-muted); font-size: 1.1rem; max-width: 50ch; }

.ns-btn {
    display: inline-block; padding: .9rem 1.6rem;
    border-radius: 999px; text-decoration: none; font-weight: 700;
    margin-top: 1.5rem;
    border: 1.5px solid transparent;
    transition: background-color .12s ease, transform .12s ease, box-shadow .15s ease;
}
.ns-btn-primary {
    background: var(--ns-fg); color: #fff; border-color: var(--ns-fg);
    box-shadow: 0 2px 4px rgba(19,78,74,.12), 0 8px 18px rgba(13,148,136,.18);
}
.ns-btn-primary:hover {
    background: var(--ns-accent); border-color: var(--ns-accent);
    transform: translateY(-1px);
}
.ns-btn:focus-visible { outline: 3px solid var(--ns-coral); outline-offset: 3px; }

/* Card — Mari: 24 px radius, softer shadow at 14 % opacity. 2026 DTC. */
.ns-card {
    background: var(--ns-cream);
    border: 1px solid var(--ns-rule); border-radius: 24px;
    padding: 1.75rem;
    box-shadow:
        0 1px 2px rgba(19,78,74,.06),
        0 24px 48px -20px rgba(13,148,136,.18);
}

.ns-card-pill {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .7rem; border-radius: 999px;
    font-size: .72rem; letter-spacing: .12em;
    text-transform: uppercase; font-weight: 700;
}
.ns-card-pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.ns-card-pill-out  { background: rgba(251,113,133,.15); color: var(--ns-coral); }
/* Mari: complementary "back in" state. The whole reason this product exists. */
.ns-card-pill-back {
    background: var(--ns-accent-soft); color: var(--ns-accent);
}

.ns-card h3 { font-family: var(--ns-display); margin: 1rem 0 .25rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -.005em; }
.ns-card p { color: var(--ns-muted); margin: 0 0 1rem; font-size: .92rem; }
.ns-card input {
    width: 100%; padding: .75rem .9rem; border-radius: 10px;
    border: 1.5px solid var(--ns-rule); font-family: inherit;
    background: var(--ns-surface); color: var(--ns-fg);
    transition: border-color .12s ease, box-shadow .12s ease;
}
.ns-card input:focus {
    outline: none;
    border-color: var(--ns-accent);
    box-shadow: 0 0 0 4px rgba(13,148,136,.15);
}
/* Mari: button gets a subtle inner highlight so it reads as "tappable". */
.ns-card button {
    width: 100%; margin-top: .5rem; padding: .85rem;
    background: var(--ns-coral); color: #fff;
    border: 0; border-radius: 10px; font-weight: 700; cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        0 2px 4px rgba(225,29,72,.18),
        0 6px 14px rgba(251,113,133,.32);
    transition: transform .12s ease, box-shadow .15s ease, background-color .12s ease;
}
.ns-card button:hover { background: var(--ns-coral-deep); transform: translateY(-1px); }
.ns-card-foot { display: block; color: var(--ns-muted); margin-top: .75rem; font-size: .8rem; }

.ns-three { background: var(--ns-surface); padding: 4rem 0; border-top: 1px solid var(--ns-rule); }
.ns-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ns-grid article {
    background: var(--ns-bg); padding: 1.75rem;
    border-radius: 24px; border: 1px solid var(--ns-rule);
    transition: transform .15s ease, box-shadow .15s ease;
}
.ns-grid article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(19,78,74,.06), 0 16px 36px -16px rgba(13,148,136,.18);
}
.ns-icon { font-size: 1.7rem; }
.ns-grid h2 { font-family: var(--ns-display); margin: .35rem 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.005em; }
.ns-grid p { color: var(--ns-muted); margin: 0; }

::selection { background: var(--ns-accent-soft); color: var(--ns-fg); }

.ns-footer { padding: 3rem 0; color: var(--ns-muted); font-size: .9rem; }
.ns-footer-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.ns-footer a { color: var(--ns-muted); text-decoration: none; }
.ns-footer a:hover { color: var(--ns-coral); }

.skip-to-content {
    position: absolute; left: -9999px;
    background: var(--ns-coral); color: #fff;
    padding: .65rem 1.2rem; border-radius: 999px; font-weight: 700; z-index: 1000;
}
.skip-to-content:focus { left: 1rem; top: 1rem; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
