@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,700;12..96,800&family=Instrument+Serif:ital@0;1&display=swap");

:root {
    --brand-ink: #1f2430;
    --brand-cream: #f8f2e8;
    --brand-sage: #9fb8a5;
    --brand-rose: #d89a9e;
    --brand-mustard: #e1bf66;
    --brand-rust: #b45a3c;

    --bg: #f8f2e8;
    --bg-alt: #efe5d7;
    --text: #1f2430;
    --muted: #495066;
    --line: rgba(31, 36, 48, 0.14);
    --line-strong: rgba(31, 36, 48, 0.24);
    --surface: rgba(255, 255, 255, 0.76);
    --surface-strong: #ffffff;

    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;

    --shadow-soft: 0 14px 38px rgba(17, 24, 38, 0.1);
    --shadow-pop: 0 18px 42px rgba(17, 24, 38, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Bricolage Grotesque", sans-serif;
    line-height: 1.45;
    background:
        radial-gradient(circle at 6% 12%, rgba(225, 191, 102, 0.26), transparent 32%),
        radial-gradient(circle at 92% 6%, rgba(216, 154, 158, 0.26), transparent 36%),
        radial-gradient(circle at 88% 86%, rgba(159, 184, 165, 0.23), transparent 38%),
        linear-gradient(180deg, var(--bg), #f5ecdf 64%, var(--bg-alt));
}

.home-page {
    padding-bottom: 84px;
}

.product-page {
    padding-bottom: 92px;
}

a {
    color: inherit;
}

main,
.related,
.product-main,
.site-footer {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding-inline: clamp(14px, 2.6vw, 44px);
}

.skip-link,
.sr-only {
    position: absolute;
}

.skip-link {
    left: 14px;
    top: -72px;
    z-index: 90;
    background: var(--brand-ink);
    color: var(--brand-cream);
    text-decoration: none;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: 700;
}

.skip-link:focus {
    top: 12px;
}

.sr-only {
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.announcement {
    padding: 10px 14px;
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--brand-ink);
    background: linear-gradient(90deg, var(--brand-sage), var(--brand-mustard), var(--brand-rose));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px clamp(14px, 2.6vw, 44px);
    border-bottom: 1px solid var(--line);
    background: rgba(248, 242, 232, 0.86);
    backdrop-filter: blur(10px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    color: var(--brand-cream);
    background: var(--brand-ink);
}

.brand-text {
    font-family: "Instrument Serif", serif;
    font-size: clamp(30px, 4.5vw, 39px);
    line-height: 0.9;
    letter-spacing: 0.01em;
}

.site-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-nav a {
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--brand-ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    padding: 11px 16px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible {
    outline: 2px solid var(--brand-ink);
    outline-offset: 2px;
}

.btn-solid {
    color: var(--brand-ink);
    background: linear-gradient(135deg, var(--brand-mustard), #f8d88e 64%, #ffe6a9);
    box-shadow: 0 10px 24px rgba(180, 133, 30, 0.24);
}

.btn-solid:hover {
    box-shadow: 0 14px 28px rgba(180, 133, 30, 0.33);
}

.btn-ghost {
    color: var(--brand-ink);
    background: rgba(255, 255, 255, 0.62);
    border-color: var(--line-strong);
}

.btn-small {
    font-size: 10px;
    padding: 8px 11px;
}

.header-cta {
    white-space: nowrap;
}

main {
    padding-top: 16px;
    padding-bottom: 12px;
}

.eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-rust);
}

.hero {
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-pop);
    background:
        radial-gradient(circle at 0% 20%, rgba(216, 154, 158, 0.26), transparent 36%),
        radial-gradient(circle at 100% 100%, rgba(159, 184, 165, 0.22), transparent 42%),
        var(--surface);
}

.hero-conversion {
    padding: clamp(16px, 2.4vw, 30px);
    display: grid;
    gap: 14px;
}

.hero-copy h1,
.section-head h2,
.product-body h3,
.product-panel h1,
.rail-card h2,
.empty-state h3,
.cta-band p {
    margin: 0;
    font-family: "Instrument Serif", serif;
    line-height: 0.95;
    letter-spacing: 0.01em;
}

.hero-copy h1 {
    margin-top: 8px;
    font-size: clamp(48px, 14vw, 106px);
    max-width: 9ch;
}

.hero-lead {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 2.5vw, 20px);
}

.hero-cta-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-proof {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.quick-proof span {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.66);
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hero-stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.hero-card {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    animation: drift 5s ease-in-out infinite;
}

.hero-card-1 {
    animation-delay: 0ms;
}

.hero-card-2 {
    animation-delay: 280ms;
}

.hero-card-3 {
    animation-delay: 540ms;
}

.hero-card-4 {
    animation-delay: 800ms;
}

.hero-card a {
    display: block;
    aspect-ratio: 1 / 1;
}

.hero-card img,
.media-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-fallback {
    display: grid;
    place-items: center;
    font-family: "Instrument Serif", serif;
    font-size: 90px;
    color: rgba(31, 36, 48, 0.36);
    background: linear-gradient(145deg, #f5ecdd, #fffdfa);
}

.product-rail {
    margin-top: 14px;
}

.rail-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 280px);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
}

.rail-track::-webkit-scrollbar {
    height: 8px;
}

.rail-track::-webkit-scrollbar-thumb {
    background: rgba(31, 36, 48, 0.25);
    border-radius: 999px;
}

.rail-card {
    scroll-snap-align: start;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.rail-card a {
    text-decoration: none;
    display: block;
}

.rail-card img,
.rail-card .media-fallback {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.rail-card div {
    padding: 10px;
}

.rail-card h2 {
    font-size: clamp(28px, 6vw, 34px);
}

.rail-card strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    font-weight: 800;
    color: #242b3c;
}

.shop,
.faq,
.related,
.cta-band {
    margin-top: 18px;
}

.section-head {
    margin-bottom: 12px;
}

.section-head.compact h2 {
    font-size: clamp(38px, 9vw, 62px);
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 13px;
}

.shop-toolbar {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--text);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.chip:hover {
    border-color: #242b3c;
}

.chip.is-active {
    background: #242b3c;
    color: var(--brand-cream);
    border-color: #242b3c;
}

.chip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.shop-count {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #5c6275;
}

.search-form input,
.buy-form input,
.buy-form select {
    width: 100%;
    font: inherit;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.86);
    color: var(--text);
    padding: 10px 12px;
}

.search-form input::placeholder,
.buy-form input::placeholder {
    color: #7d8395;
}

.search-form input:focus-visible,
.buy-form input:focus-visible,
.buy-form select:focus-visible,
.qty-btn:focus-visible {
    outline: 2px solid var(--brand-rust);
    outline-offset: 1px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.product-card {
    border-radius: 16px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 170ms ease, box-shadow 170ms ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-pop);
}

.product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #faf7f2;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.type-pill {
    position: absolute;
    top: 10px;
    left: 10px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.88);
    color: var(--text);
    padding: 6px 8px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.product-body {
    padding: 12px;
}

.product-body h3 {
    font-size: clamp(28px, 7vw, 40px);
}

.product-body h3 a {
    text-decoration: none;
}

.product-body-tight {
    padding-top: 10px;
}

.product-footer {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-footer strong,
.product-price span,
.subtotal strong,
.mobile-label + strong {
    color: #2a3042;
    font-weight: 800;
}

.empty-state {
    border-radius: 16px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
    padding: 24px 14px;
}

.empty-state h3 {
    font-size: clamp(36px, 10vw, 56px);
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--muted);
}

.filter-empty {
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.72);
    color: #596077;
    font-size: 14px;
    text-align: center;
}

.cta-band {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(159, 184, 165, 0.26), rgba(225, 191, 102, 0.28));
    padding: 14px;
    display: grid;
    gap: 10px;
    align-items: center;
}

.cta-band p {
    font-size: clamp(30px, 7vw, 46px);
}

.faq details {
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    margin-bottom: 9px;
    padding: 10px 11px;
}

.faq summary {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.faq p {
    margin: 8px 0 0;
    color: var(--muted);
}

.site-footer {
    margin-top: 20px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer div {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--text);
}

.floating-cta {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 62;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 9px;
    border-radius: 13px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-pop);
}

.floating-cta .btn {
    width: 100%;
}

/* Product page */
.product-main {
    display: grid;
    gap: 12px;
    padding-top: 16px;
}

.product-gallery,
.product-panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-soft);
    padding: 12px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #666d81;
}

.crumbs a {
    text-decoration: none;
}

.gallery-grid {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

.gallery-item,
.gallery-fallback {
    border-radius: 12px;
    overflow: hidden;
    background: #f7f2e8;
}

.gallery-item.featured,
.gallery-fallback {
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-fallback {
    margin-top: 10px;
    display: grid;
    place-items: center;
    font-family: "Instrument Serif", serif;
    font-size: 120px;
    color: rgba(31, 36, 48, 0.38);
}

.product-panel h1 {
    margin-top: 8px;
    font-size: clamp(44px, 12vw, 86px);
}

.product-lead {
    margin: 8px 0 0;
    color: var(--muted);
}

.product-price {
    margin: 10px 0 0;
}

.product-price span {
    font-family: "Instrument Serif", serif;
    font-size: clamp(40px, 9vw, 56px);
    line-height: 0.92;
}

.product-price small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--muted);
}

.compact-proof {
    margin-top: 10px;
}

.product-actions {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.product-actions .btn {
    width: 100%;
}

.product-actions .btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.buy-form {
    margin-top: 11px;
}

.buy-form label {
    display: block;
    margin: 9px 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #434b61;
}

.qty-wrap {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    gap: 6px;
}

.qty-btn {
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-family: "Instrument Serif", serif;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.buy-form input:disabled,
.buy-form select:disabled,
.buy-form button:disabled,
.qty-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.subtotal,
.note,
.error {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--muted);
}

.error {
    min-height: 16px;
    color: #bf353e;
}

.mobile-buy-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px;
    border-radius: 13px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--shadow-pop);
}

.desktop-buy-bar {
    display: none;
}

.mobile-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7388;
}

.mobile-buy-bar strong {
    display: block;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Instrument Serif", serif;
    font-size: 30px;
    line-height: 0.93;
}

/* Motion */
.reveal {
    opacity: 0;
    transform: translateY(20px);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.82, 0.21, 0.99);
    transition-delay: var(--delay, 0ms);
}

@keyframes drift {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-4px) rotate(-0.4deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-card,
    .reveal,
    .reveal.in {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (min-width: 760px) {
    .site-header {
        grid-template-columns: auto 1fr auto;
        gap: 16px;
    }

    .site-nav {
        grid-column: auto;
        justify-content: center;
        gap: 14px;
    }

    .hero-conversion {
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
    }

    .product-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cta-band {
        grid-template-columns: 1fr auto;
        padding: 18px;
    }

    .product-main {
        grid-template-columns: 1.08fr 0.92fr;
        align-items: start;
    }

    .shop-toolbar {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .gallery-grid-tight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid-tight .featured {
        grid-column: 1 / -1;
    }

    .site-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 540px) {
    .product-grid-home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .product-grid-home {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-main {
        grid-template-columns: 1.06fr 0.94fr;
    }
}

@media (min-width: 1080px) {
    .product-grid-home {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .related-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .product-panel {
        position: sticky;
        top: 86px;
    }

    .mobile-buy-bar {
        display: none;
    }

    .floating-cta {
        left: auto;
        right: 22px;
        bottom: 22px;
        width: 360px;
        grid-template-columns: 1fr 1fr;
    }

    .home-page {
        padding-bottom: 24px;
    }

    .product-page {
        padding-bottom: 24px;
    }

    .desktop-buy-bar {
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 61;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        border: 1px solid var(--line-strong);
        background: rgba(255, 255, 255, 0.94);
        box-shadow: var(--shadow-pop);
    }

    .desktop-buy-bar p {
        margin: 0;
        font-size: 12px;
        font-weight: 700;
        color: #4f5569;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .desktop-buy-bar .btn {
        padding: 10px 13px;
    }
}

@media (min-width: 1360px) {
    .hero-conversion {
        grid-template-columns: 1.04fr 0.96fr;
        min-height: 640px;
    }

    .hero-stage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-card-1,
    .hero-card-4 {
        margin-top: 20px;
    }

    .hero-card-2,
    .hero-card-3 {
        margin-top: -10px;
    }

    .rail-track {
        grid-auto-columns: minmax(260px, 320px);
    }
}

@media (min-width: 1600px) {
    .product-grid-home {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .search-form {
        flex-direction: column;
    }

    .search-form .btn,
    .hero-cta-row .btn {
        width: 100%;
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}
