/*
 * BubbleDuck: hand-written CSS, served as-is (no build step).
 *
 * Brand colours come straight from the logo. Anything else is a tint or
 * shade of these. Contrast notes are for WCAG AA.
 *   blue  #1F79E5  logo disc. Black text on it = 4.69. Large text only on white (4.23).
 *   black #050909  duck + ring. All body text.
 *   gold  #DFA235  helmet trim. Fills behind black text, or text on black (8.92). Never text on white.
 *   white #FEFEFE  visor.
 */
@layer reset, tokens, base, layout, components, sections;

@layer reset {
    *, *::before, *::after { box-sizing: border-box; }
    * { margin: 0; }
    html { -webkit-text-size-adjust: none; text-size-adjust: none; }
    body { min-height: 100svh; -webkit-font-smoothing: antialiased; }
    img, picture, video, canvas, svg { display: block; max-width: 100%; }
    input, button, textarea, select { font: inherit; }
    p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
    h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
    p { text-wrap: pretty; }
    ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
}

@layer tokens {
    @font-face {
        font-family: "Bricolage Grotesque";
        src: url("../fonts/bricolage-grotesque.woff2") format("woff2-variations");
        font-weight: 200 800;
        font-style: normal;
        font-display: swap;
    }

    :root {
        /* Brand (from the logo) */
        --blue: #1F79E5;
        --black: #050909;
        --gold: #DFA235;
        --white: #FEFEFE;

        /* Derived */
        --blue-ink: #1662C4;   /* blue for small text on light grounds: 5.8:1 on white */
        --blue-mist: #EEF4FC;  /* pale tint of brand blue for quiet sections */
        --blue-light: #B8D4F7; /* tint for text on black */
        --gold-hover: #E9B652;

        /* Type */
        --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
        --step--1: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
        --step-0: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
        --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
        --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
        --step-3: clamp(2.25rem, 1.6rem + 2.8vw, 4rem);
        --step-4: clamp(3.25rem, 1.8rem + 6.4vw, 7.75rem);

        /* Space */
        --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
        --section: clamp(4rem, 2.5rem + 6vw, 8.5rem);
        --wrap: 76rem;

        --radius-pill: 999px;
        --ease: cubic-bezier(.2, .8, .2, 1);
    }
}

@layer base {
    html { scroll-behavior: smooth; }
    @media (prefers-reduced-motion: reduce) {
        html { scroll-behavior: auto; }
        *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    }

    body {
        font-family: var(--font);
        font-size: var(--step-0);
        line-height: 1.55;
        color: var(--black);
        background: var(--white);
        font-optical-sizing: auto;
    }

    h1, h2, h3 { line-height: 1.02; font-weight: 780; letter-spacing: -0.025em; }
    h2 { font-size: var(--step-3); }
    h3 { font-size: var(--step-1); letter-spacing: -0.01em; line-height: 1.2; }

    a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
    a:hover { text-decoration-thickness: 3px; }

    :focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 4px; }

    ::selection { background: var(--gold); color: var(--black); }

    address { font-style: normal; }
}

@layer layout {
    .wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
    .section { padding-block: var(--section); }

    .section-head { display: grid; gap: 1rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 44rem; }
    .section-head p { font-size: var(--step-1); line-height: 1.45; }
    .section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
    @media (min-width: 60rem) {
        .section-head--split { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
    }

    .skip-link {
        position: absolute; left: 1rem; top: -4rem; z-index: 100;
        background: var(--black); color: var(--white); padding: 0.75rem 1rem; border-radius: 0.5rem;
    }
    .skip-link:focus { top: 1rem; }

    .muted { opacity: 0.8; }

    /* Bubbles (public/js/bubbles.js): fixed overlay, never blocks clicks. */
    .bubble-canvas { position: fixed; left: 0; bottom: 0; pointer-events: none; z-index: 1000; }
    @media print { .bubble-canvas { display: none; } }
    .plain { list-style: none; padding: 0; }
}

@layer components {
    /* Buttons: pills, like the logo's disc. Gold fill, black ink. */
    .button {
        display: inline-flex; align-items: center; gap: 0.6em;
        padding: 0.95em 1.6em;
        border: 2px solid var(--black);
        border-radius: var(--radius-pill);
        background: var(--gold);
        color: var(--black);
        font-weight: 700;
        line-height: 1.1;
        text-decoration: none;
        transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
    }
    .button::after { content: "→"; transition: transform 0.2s var(--ease); }
    .button:hover { background: var(--gold-hover); transform: translateY(-2px); }
    .button:hover::after { transform: translateX(4px); }
    .button:active { transform: translateY(0); }

    .button--small { padding: 0.6em 1.15em; font-size: var(--step--1); }
    .button--small::after { content: none; }

    .button--dark { background: var(--black); color: var(--white); }
    .button--dark:hover { background: #1b2122; }
    .button--dark:focus-visible { outline-color: var(--white); }

    .text-link { font-weight: 700; color: var(--blue-ink); text-decoration: underline; }

    .eyebrow {
        font-size: var(--step--1);
        font-weight: 650;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    /* Header */
    .site-header { background: var(--blue); color: var(--black); position: relative; z-index: 10; }
    .site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5rem; }

    .brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; }
    .brand img { width: 2.75rem; height: 2.75rem; }

    .site-nav { display: flex; align-items: center; gap: 2rem; }
    .site-nav ul { display: flex; align-items: center; gap: 1.75rem; list-style: none; padding: 0; }
    .site-nav ul a { font-weight: 600; text-decoration: none; padding-block: 0.4rem; background: linear-gradient(var(--black), var(--black)) no-repeat left bottom / 0 2px; transition: background-size 0.25s var(--ease); }
    .site-nav ul a:hover, .site-nav ul a[aria-current="page"] { background-size: 100% 2px; }

    .nav-toggle { display: none; }

    @media (max-width: 59.99rem) {
        .site-header__inner { flex-wrap: wrap; }
        .nav-toggle { display: block; }
        .nav-toggle summary {
            list-style: none; cursor: pointer;
            width: 2.75rem; height: 2.75rem; border: 2px solid var(--black); border-radius: 50%;
            display: grid; place-items: center;
        }
        .nav-toggle summary::-webkit-details-marker { display: none; }
        .nav-toggle summary span, .nav-toggle summary span::before, .nav-toggle summary span::after {
            display: block; width: 1.1rem; height: 2px; background: var(--black); position: relative; transition: transform 0.2s var(--ease);
        }
        .nav-toggle summary span::before, .nav-toggle summary span::after { content: ""; position: absolute; left: 0; }
        .nav-toggle summary span::before { top: -6px; }
        .nav-toggle summary span::after { top: 6px; }
        .nav-toggle[open] summary span { background: transparent; }
        .nav-toggle[open] summary span::before { transform: translateY(6px) rotate(45deg); }
        .nav-toggle[open] summary span::after { transform: translateY(-6px) rotate(-45deg); }

        .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 1.25rem; padding-bottom: 1.5rem; }
        .site-header:has(.nav-toggle[open]) .site-nav { display: flex; }
        .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
        .site-nav ul a { display: block; padding-block: 0.85rem; border-top: 1px solid rgb(5 9 9 / 0.25); font-size: var(--step-1); background: none; }
        .site-nav .button { justify-content: center; }
    }

    /* Footer */
    .site-footer { background: var(--black); color: var(--white); padding-block: clamp(3.5rem, 3rem + 3vw, 5.5rem) 2rem; }
    .site-footer__grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
    .site-footer h2 { font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; font-weight: 700; }
    .site-footer p, .site-footer address, .site-footer li { line-height: 1.7; }
    .site-footer a { color: var(--white); }
    .site-footer a:hover { color: var(--gold); }
    .site-footer :focus-visible { outline-color: var(--gold); }
    .site-footer__brand { display: flex; gap: 1rem; align-items: center; }
    .site-footer__brand img { width: 4rem; height: 4rem; }
    .site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(254 254 254 / 0.15); font-size: var(--step--1); color: var(--blue-light); }
}

@layer sections {
    /* Hero: the logo's blue disc, blown up. */
    .hero { background: var(--blue); color: var(--black); position: relative; overflow: hidden; }
    .hero__inner {
        position: relative; z-index: 1;
        display: grid; gap: 2rem; align-items: end;
        padding-top: clamp(2.5rem, 1rem + 6vw, 6rem);
    }
    @media (min-width: 60rem) {
        .hero__inner { grid-template-columns: 1.35fr 0.65fr; gap: 3rem; }
    }

    .hero__copy { padding-bottom: clamp(5rem, 3rem + 8vw, 9rem); }
    .hero h1 {
        font-size: var(--step-4);
        font-weight: 800;
        letter-spacing: -0.04em;
        line-height: 0.92;
        margin-block: 1.25rem 1.75rem;
        max-width: 11ch;
    }
    .hero__lede { font-size: var(--step-1); line-height: 1.45; max-width: 34rem; font-weight: 450; }

    .hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2.25rem; }
    .hero__phone { font-weight: 700; }

    /* The mascot is a blue-pencil drawing; on the blue field it becomes a white chalk line. */
    .hero__duck { justify-self: center; width: min(78vw, 26rem); margin-bottom: clamp(1rem, 2.5vw, 2.5rem); }
    .hero__duck img { width: 100%; height: auto; filter: brightness(0) invert(1); transform-origin: 50% 90%; animation: bob 6s ease-in-out infinite; }
    @media (min-width: 60rem) {
        .hero__duck { width: 100%; max-width: 30rem; justify-self: end; }
    }
    @keyframes bob {
        0%, 100% { transform: translateY(0) rotate(-1.5deg); }
        50% { transform: translateY(-10px) rotate(1.5deg); }
    }

    .hero__water { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(2.5rem, 5vw, 5rem); fill: var(--white); z-index: 2; }

    @media (max-width: 59.99rem) {
        .hero__duck { order: -1; width: min(52vw, 15rem); margin-bottom: -1rem; }
        .hero__copy { padding-bottom: 5rem; }
    }

    /* Paths: route by problem. */
    .paths { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
    .paths__list { list-style: none; padding: 0; border-bottom: 2px solid var(--black); }
    .paths__list li { border-top: 2px solid var(--black); }

    .path {
        display: grid; grid-template-columns: auto 1fr auto; gap: 0.5rem 2rem; align-items: center;
        padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(0.25rem, 1vw, 1rem);
        text-decoration: none;
        transition: background-color 0.25s var(--ease);
    }
    .path__num { font-size: var(--step-3); font-weight: 800; color: var(--blue); letter-spacing: -0.04em; line-height: 1; min-width: 2.2ch; }
    .path__body { display: grid; gap: 0.5rem; }
    .path__title { font-size: var(--step-2); font-weight: 750; letter-spacing: -0.02em; line-height: 1.12; }
    .path__desc { max-width: 46rem; color: #2a3236; }
    .path__go {
        width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 2px solid var(--black);
        display: grid; place-items: center; font-size: 1.5rem; font-weight: 700;
        transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
    }
    .path:hover { background: var(--blue-mist); }
    .path:hover .path__go { background: var(--gold); transform: translateX(6px); }
    .path:hover .path__title { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.15em; }

    @media (max-width: 40rem) {
        .path { grid-template-columns: 1fr auto; }
        .path__num { grid-column: 1 / -1; font-size: var(--step-2); }
        .path__go { width: 2.75rem; height: 2.75rem; font-size: 1.2rem; align-self: start; }
    }

    /* Roof: black, like the duck. */
    .roof { background: var(--black); color: var(--white); }
    .roof .section-head p { color: var(--blue-light); }
    .roof .section-head em { color: var(--gold); font-style: normal; font-weight: 700; }

    .roof__grid { display: grid; gap: 1px; background: rgb(254 254 254 / 0.18); border: 1px solid rgb(254 254 254 / 0.18); border-radius: 1.5rem; overflow: hidden; }
    @media (min-width: 48rem) { .roof__grid { grid-template-columns: 1fr 1fr; } }
    .roof__col { background: var(--black); padding: clamp(1.75rem, 1rem + 3vw, 3rem); }
    .roof__col h3 { display: flex; align-items: center; gap: 0.75rem; font-size: var(--step-2); margin-bottom: 1.5rem; }
    .roof__col .dot { width: 0.8em; height: 0.8em; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--black), 0 0 0 6px var(--gold); flex: none; }
    .roof__col ul { list-style: none; padding: 0; display: grid; gap: 0.15rem; }
    .roof__col li { padding: 0.7rem 0; border-bottom: 1px solid rgb(254 254 254 / 0.12); font-size: var(--step-1); }
    .roof__col li:last-child { border-bottom: 0; }

    .stack { margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); font-size: var(--step-1); line-height: 1.7; max-width: 60rem; color: var(--white); }
    .stack__label { color: var(--gold); font-weight: 700; margin-right: 0.4rem; }
    .stack i { color: var(--gold); font-style: normal; padding-inline: 0.15em; }

    /* Team: honest proof. */
    .team__grid { display: grid; gap: 3rem; align-items: center; }
    @media (min-width: 60rem) { .team__grid { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }
    .team__copy { display: grid; gap: 1.25rem; max-width: 36rem; }
    .team__copy h2 { margin-bottom: 0.5rem; }

    .facts { display: grid; gap: 0; }
    .facts > div { display: grid; grid-template-columns: 2.9em 1fr; align-items: center; gap: 1.25rem; font-size: var(--step-3); padding-block: 1.25rem; border-top: 2px solid var(--black); }
    .facts > div:last-child { border-bottom: 2px solid var(--black); }
    .facts dt { font-size: 1em; font-weight: 800; color: var(--blue); letter-spacing: -0.04em; line-height: 1; }
    .facts dd { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }

    /* Quote */
    .quote { background: var(--blue-mist); padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
    .quote__inner { display: grid; gap: 2rem; align-items: center; justify-items: start; }
    @media (min-width: 48rem) { .quote__inner { grid-template-columns: auto 1fr; gap: 3.5rem; } }
    .quote img { width: clamp(5.5rem, 4rem + 5vw, 8.5rem); height: auto; transform: rotate(-8deg); }
    .quote blockquote p { font-size: var(--step-2); font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; max-width: 46rem; }
    .quote blockquote p::before { content: "“"; color: var(--blue-ink); }
    .quote blockquote p::after { content: "”"; color: var(--blue-ink); }

    /* Merch wink */
    .merch-wink { background: var(--gold); border-block: 2px solid var(--black); }
    .merch-wink__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem 2rem; padding-block: 1.25rem; font-size: var(--step-1); }
    .merch-wink .text-link { color: var(--black); }

    /* Closing CTA */
    .cta { background: var(--blue); padding-block: var(--section); }
    .cta__inner { display: grid; gap: 1.25rem; justify-items: start; }
    .cta h2 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.04em; line-height: 0.95; max-width: 14ch; }
    .cta p { font-size: var(--step-1); max-width: 36rem; }
    .cta .hero__actions { margin-top: 1rem; }

    /* Inner page header: a shorter version of the home hero. */
    .page-hero { background: var(--blue); position: relative; overflow: hidden; }
    .page-hero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(5rem, 3.5rem + 5vw, 8rem); }
    .page-hero h1 {
        font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5.5rem);
        font-weight: 800; letter-spacing: -0.035em; line-height: 0.98;
        margin-block: 1.1rem 1.5rem; max-width: 18ch;
    }
    .page-hero__lede { font-size: var(--step-1); line-height: 1.45; max-width: 40rem; font-weight: 450; }

    .section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }

    .kicker-heading { font-size: var(--step-1); letter-spacing: -0.01em; margin-bottom: 1.25rem; }
    .kicker-heading--light { color: var(--gold); }

    /* Services: a numbered grid of what we do. */
    .services { list-style: none; padding: 0; display: grid; gap: 0 3rem; counter-reset: svc; }
    @media (min-width: 48rem) { .services { grid-template-columns: 1fr 1fr; } }
    .services li { counter-increment: svc; padding-block: 1.75rem; border-top: 2px solid var(--black); display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem; }
    .services li::before { content: counter(svc, decimal-leading-zero); grid-row: span 2; font-weight: 800; color: var(--blue-ink); font-size: var(--step-1); line-height: 1.2; }
    .services h3 { font-size: var(--step-2); }
    .services p { color: #2a3236; max-width: 32rem; }

    .aside-note { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--blue-mist); border-radius: 1rem; max-width: 40rem; }

    /* "Sound familiar?" */
    .familiar { background: var(--blue-mist); }
    .familiar--plain { background: var(--white); padding-bottom: 0; }
    .familiar__grid { display: grid; gap: 2rem; align-items: start; }
    @media (min-width: 60rem) { .familiar__grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; } }
    .checklist { list-style: none; padding: 0; display: grid; gap: 1rem; }
    .checklist li { position: relative; padding-left: 2.75rem; font-size: var(--step-1); line-height: 1.4; font-weight: 550; }
    .checklist li::before {
        content: "✓"; position: absolute; left: 0; top: 0.05em;
        width: 1.85rem; height: 1.85rem; border-radius: 50%;
        display: grid; place-items: center;
        background: var(--gold); border: 2px solid var(--black);
        font-size: 0.9rem; font-weight: 800;
    }
    .checklist--x li::before { content: "✕"; background: var(--white); }

    .path--compact .path__num { font-size: var(--step-2); }
    .path--compact .path__title { font-size: var(--step-1); }
    .path--compact .path__go { width: 2.75rem; height: 2.75rem; font-size: 1.2rem; }

    /* Contact */
    .contact__grid { display: grid; gap: 3.5rem; }
    @media (min-width: 60rem) { .contact__grid { grid-template-columns: 1.4fr 1fr; gap: 5rem; } }
    .contact__form form { display: grid; gap: 1.5rem; max-width: 40rem; }
    .contact__form .button { justify-self: start; cursor: pointer; }

    .field { display: grid; gap: 0.5rem; }
    .field label { font-weight: 700; }
    .field input, .field textarea {
        width: 100%; padding: 0.9rem 1rem;
        border: 2px solid var(--black); border-radius: 0.75rem;
        background: var(--white); color: var(--black);
        transition: box-shadow 0.15s var(--ease);
    }
    .field textarea { resize: vertical; min-height: 10rem; }
    .field input:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--blue); }
    .field--error input, .field--error textarea { border-color: #B3261E; }
    .field__error { color: #B3261E; font-weight: 600; font-size: var(--step--1); }

    .notice { padding: 1.5rem 1.75rem; border: 2px solid var(--black); border-radius: 1rem; background: var(--blue-mist); }
    .notice h2 { font-size: var(--step-2); margin-bottom: 0.5rem; }
    .notice--error { background: #FDECEA; border-color: #B3261E; }

    .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

    .contact__details { display: grid; gap: 1.75rem; align-content: start; }
    .contact__details > div { padding-top: 1.25rem; border-top: 2px solid var(--black); }
    .contact__details h2 { font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
    .contact__details p, .contact__details address { font-size: var(--step-1); line-height: 1.45; }

    /* ---------- Shop ---------- */
    .visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

    .cart-link { display: inline-flex; align-items: center; gap: 0.4rem; }
    .cart-link__count { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding-inline: 0.35rem; border-radius: var(--radius-pill); background: var(--black); color: var(--white); font-size: 0.8rem; font-weight: 800; }

    .shop-page { padding-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
    .shop-title { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 0.75rem; }

    .empty { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: 3rem; }
    .empty img { width: 9rem; height: auto; }
    .empty h2 { font-size: var(--step-2); }
    .empty p { max-width: 30rem; }

    /* Product grid */
    .products { list-style: none; padding: 0; display: grid; gap: clamp(1.5rem, 1rem + 2vw, 2.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
    .product-card { display: grid; gap: 0.35rem; text-decoration: none; }
    .product-card__image { display: block; aspect-ratio: 1; border-radius: 1.5rem; overflow: hidden; background: var(--blue-mist); border: 2px solid var(--black); margin-bottom: 0.75rem; }
    .product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
    .product-card:hover .product-card__image img { transform: scale(1.04); }
    .product-card__name { font-size: var(--step-1); font-weight: 750; line-height: 1.2; letter-spacing: -0.01em; }
    .product-card:hover .product-card__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
    .product-card__price { color: var(--blue-ink); font-weight: 700; }

    /* Product page */
    .breadcrumb { margin-bottom: 1.5rem; font-weight: 700; }
    .breadcrumb a { text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .product__grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
    @media (min-width: 56rem) { .product__grid { grid-template-columns: 1.1fr 1fr; } }
    .product__media { aspect-ratio: 1; border-radius: 2rem; overflow: hidden; background: var(--blue-mist); border: 2px solid var(--black); }
    .product__media img { width: 100%; height: 100%; object-fit: cover; }
    @media (min-width: 56rem) { .product__media { position: sticky; top: 1.5rem; } }
    .product__info h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
    .product__price { font-size: var(--step-2); font-weight: 750; color: var(--blue-ink); margin-block: 0.75rem 2rem; }
    .product__form { display: grid; gap: 1.5rem; }
    .product__buy { display: flex; align-items: end; gap: 1rem; flex-wrap: wrap; }
    .field--qty input { width: 6rem; }
    .product__notes { list-style: none; padding: 1.5rem 0 0; margin-top: 2rem; border-top: 2px solid var(--black); display: grid; gap: 0.5rem; }
    .product__notes li::before { content: "◉ "; color: var(--blue); }

    .field select { width: 100%; padding: 0.9rem 1rem; border: 2px solid var(--black); border-radius: 0.75rem; background: var(--white); color: var(--black); }
    .field select:focus { outline: none; box-shadow: 0 0 0 4px var(--blue); }
    .field-row { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
    @media (min-width: 36rem) { .field-row { grid-template-columns: 1.4fr 1fr; } }

    /* Variant picker pills */
    .choice { border: 0; padding: 0; display: grid; gap: 0.75rem; }
    .choice legend { font-weight: 700; margin-bottom: 0.75rem; padding: 0; }
    .choice__value { font-weight: 500; margin-left: 0.4rem; }
    .choice__options { display: flex; flex-wrap: wrap; gap: 0.6rem; }
    .pill { position: relative; cursor: pointer; }
    .pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
    .pill span { display: inline-grid; place-items: center; min-height: 2.75rem; padding: 0.4rem 1.1rem; border: 2px solid var(--black); border-radius: var(--radius-pill); font-weight: 650; transition: background-color 0.15s var(--ease); }
    .pill--size span { min-width: 3.25rem; }
    .pill:hover span { background: var(--blue-mist); }
    .pill input:checked + span { background: var(--black); color: var(--white); }
    .pill input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 3px; }
    .pill--off span { opacity: 0.45; text-decoration: line-through; }
    .pill input:disabled { cursor: not-allowed; }

    /* Cart */
    .cart { display: grid; gap: 2rem; margin-top: 1.5rem; }
    .cart__lines { list-style: none; padding: 0; border-top: 2px solid var(--black); }
    .cart-line { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: 0.75rem 1.25rem; align-items: center; padding-block: 1.25rem; border-bottom: 2px solid var(--black); }
    .cart-line__image img { width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 1rem; background: var(--blue-mist); }
    .cart-line__name { font-weight: 750; font-size: var(--step-1); text-decoration: none; line-height: 1.2; }
    .cart-line__name:hover { text-decoration: underline; }
    .cart-line__opts, .cart-line__unit { font-size: var(--step--1); color: #3a4448; }
    .cart-line__qty { display: flex; gap: 0.5rem; align-items: center; grid-column: 2; }
    .cart-line__qty input { width: 4.5rem; padding: 0.5rem 0.6rem; border: 2px solid var(--black); border-radius: 0.6rem; }
    .cart-line__total { font-weight: 750; grid-column: 3; grid-row: 1; text-align: right; }
    .cart-line > form:last-child { grid-column: 3; text-align: right; }
    @media (min-width: 48rem) {
        .cart-line { grid-template-columns: 6.5rem 1fr auto auto auto; }
        .cart-line__image img { width: 6.5rem; height: 6.5rem; }
        .cart-line__qty, .cart-line__total, .cart-line > form:last-child { grid-column: auto; grid-row: auto; }
    }
    .link-button { background: none; border: 0; padding: 0.25rem; font-weight: 700; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; color: var(--blue-ink); }
    .cart__footer { justify-self: end; display: grid; gap: 0.5rem; justify-items: end; text-align: right; }
    .cart__subtotal { font-size: var(--step-2); }
    .cart__footer .hero__actions { justify-content: flex-end; margin-top: 1rem; }

    /* Checkout */
    .steps { list-style: none; padding: 0; display: flex; gap: 0.5rem; margin-bottom: 2rem; counter-reset: step; flex-wrap: wrap; }
    .steps li { counter-increment: step; display: flex; align-items: center; gap: 0.5rem; font-weight: 650; color: #3a4448; }
    .steps li::before { content: counter(step); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid currentColor; font-size: 0.85rem; font-weight: 800; }
    .steps li + li::after { order: -1; content: ""; width: 1.5rem; height: 2px; background: #3a4448; margin-right: 0.25rem; }
    .steps li[aria-current="step"] { color: var(--black); }
    .steps li[aria-current="step"]::before { background: var(--gold); border-color: var(--black); }

    .checkout__grid { display: grid; gap: 3rem; align-items: start; }
    @media (min-width: 60rem) { .checkout__grid { grid-template-columns: 1.3fr 1fr; gap: 5rem; } }
    .checkout__form { display: grid; gap: 1.25rem; }
    .checkout__form .button { justify-self: start; cursor: pointer; margin-top: 0.5rem; }

    .ship-to { display: flex; justify-content: space-between; align-items: start; gap: 1rem; padding: 1.25rem 1.5rem; border: 2px solid var(--black); border-radius: 1rem; }
    .rates { border: 0; padding: 0; display: grid; gap: 0.75rem; }
    .rate { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; border: 2px solid var(--black); border-radius: 1rem; cursor: pointer; }
    .rate:has(input:checked) { background: var(--blue-mist); box-shadow: inset 0 0 0 2px var(--black); }
    .rate input { width: 1.25rem; height: 1.25rem; accent-color: var(--black); }
    .rate__name { font-weight: 700; display: grid; }
    .rate__name small { font-weight: 500; color: #3a4448; }
    .rate__price { font-weight: 750; }
    .secure-note { font-size: var(--step--1); }

    .summary { padding: clamp(1.25rem, 1rem + 1vw, 2rem); border-radius: 1.5rem; background: var(--blue-mist); border: 2px solid var(--black); }
    @media (min-width: 60rem) { .summary { position: sticky; top: 1.5rem; } }
    .summary h2 { font-size: var(--step-1); margin-bottom: 1rem; }
    .summary__lines { list-style: none; padding: 0; display: grid; gap: 0.9rem; }
    .summary__lines li { display: grid; grid-template-columns: auto 1fr auto; gap: 0.9rem; align-items: center; }
    .summary__lines img { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; object-fit: cover; background: var(--white); }
    .summary__name { font-weight: 650; line-height: 1.25; display: grid; }
    .summary__name small { font-weight: 500; color: #3a4448; }
    .summary__price { font-weight: 700; }
    .summary__totals { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px solid var(--black); display: grid; gap: 0.4rem; }
    .summary__totals div { display: flex; justify-content: space-between; gap: 1rem; }
    .summary__totals dd { font-weight: 700; }
    .summary__total { font-size: var(--step-1); font-weight: 800; padding-top: 0.5rem; }

    .thanks { display: grid; gap: 1.5rem; max-width: 44rem; }
    .thanks .button { justify-self: start; }

    /* Long-form legal text (privacy policy). */
    .legal { max-width: 68ch; }
    .legal > * + * { margin-top: 1em; }
    .legal h2 { font-size: var(--step-2); line-height: 1.1; margin-top: 2.75rem; scroll-margin-top: 1.5rem; }
    .legal h3 { margin-top: 1.75rem; }
    .legal h2 + h3 { margin-top: 1.25rem; }
    .legal ul { padding-left: 1.25rem; }
    .legal li + li { margin-top: 0.35em; }
    .legal li::marker { color: var(--blue); }
    .legal a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 0.15em; }
}
