/* base */
@font-face {
    font-display: swap;
    font-family: 'Domine';
    font-style: normal;
    font-weight: 400 700;
    src: url('../fonts/domine-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    ascent-override: 83%;
    descent-override: 22%;
    font-family: 'Domine Fallback';
    size-adjust: 109%;
    src: local('Georgia');
}
@font-face {
    font-display: swap;
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 300 700;
    src: url('../fonts/open-sans-var.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    ascent-override: 103%;
    descent-override: 28%;
    font-family: 'Open Sans Fallback';
    size-adjust: 103%;
    src: local('Arial');
}

:root {
    --du-accent: #9E564C;
    --du-base: #F6F6F8;
    --du-cta: #6C2236;
    --du-cta-deep: #561a2b;
    --du-gap: 88px;
    --du-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --du-head-h: 76px;
    --du-line: #DAD9E0;
    --du-muted: #73717d;
    --du-night: #1D1A24;
    --du-night-soft: #2a2633;
    --du-night-text: #B9B6C2;
    --du-offset: 10px;
    --du-pad: clamp(16px, 4vw, 48px);
    --du-rose-lit: #DDA89E;
    --du-sans: 'Open Sans', 'Open Sans Fallback', Arial, sans-serif;
    --du-serif: 'Domine', 'Domine Fallback', Georgia, serif;
    --du-text: #221F29;
    --du-tint: #ecebf0;
    --du-white: #FFFFFF;
    --du-wrap: 1240px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--du-head-h) + 16px);
}

body {
    background: var(--du-base);
    color: var(--du-text);
    font-family: var(--du-sans);
    font-size: 17px;
    line-height: 1.65;
    margin: 0;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

[hidden] {
    display: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--du-serif);
    font-weight: 400;
    line-height: 1.22;
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 1.35rem + 2.1vw, 3rem);
}

h2 {
    font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem);
}

h3 {
    font-size: 1.28rem;
}

p,
ul,
ol,
dl,
figure {
    margin: 0;
}

a {
    color: var(--du-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--du-cta);
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 2px solid var(--du-accent);
    outline-offset: 3px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

/* maqueta */
.wrap {
    margin-left: auto;
    margin-right: auto;
    max-width: var(--du-wrap);
    padding-left: var(--du-pad);
    padding-right: var(--du-pad);
}

.band {
    border-top: 1px solid var(--du-line);
    padding-bottom: var(--du-gap);
    padding-top: var(--du-gap);
}

.band.tinted {
    background: var(--du-tint);
}

.grain {
    background-color: var(--du-night);
    background-image: var(--du-grain);
    color: var(--du-base);
}

.grain a {
    color: var(--du-rose-lit);
}

.grain a:hover {
    color: var(--du-white);
}

.label {
    color: var(--du-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.grain .label {
    color: var(--du-night-text);
}

.folio {
    align-items: baseline;
    border-bottom: 1px solid var(--du-line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 12px;
}

.folio span:last-child {
    font-family: var(--du-serif);
    font-size: 0.95rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.grain .folio {
    border-bottom-color: #3a3544;
}

.band-head {
    margin-bottom: 44px;
    max-width: 720px;
}

.band-head p {
    margin-top: 14px;
}

.muted {
    color: var(--du-muted);
}

/* botones */
.btn {
    align-items: center;
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 0;
    color: var(--du-text);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 600;
    justify-content: center;
    letter-spacing: 0.12em;
    min-height: 48px;
    padding: 12px 26px;
    text-decoration: none;
    text-transform: uppercase;
}

.btn:hover {
    background: var(--du-text);
    color: var(--du-base);
}

.btn.primary {
    background: var(--du-cta);
    border-color: var(--du-cta);
    color: var(--du-white);
}

.btn.primary:hover {
    background: var(--du-cta-deep);
    border-color: var(--du-cta-deep);
    color: var(--du-white);
}

.grain .btn {
    color: var(--du-base);
}

.grain .btn:hover {
    background: var(--du-base);
    color: var(--du-night);
}

.grain .btn.primary,
.grain .btn.primary:hover {
    color: var(--du-white);
}

.grain .btn.primary:hover {
    background: var(--du-cta-deep);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.js-only {
    display: none;
}

.with-js .js-only:not([hidden]) {
    display: inline-flex;
}

.with-js .needs-js-note {
    display: none;
}

/* cabecera */
.masthead {
    background: var(--du-base);
    border-bottom: 1px solid var(--du-line);
    position: sticky;
    top: 0;
    z-index: 60;
}

.masthead-row {
    align-items: center;
    display: flex;
    gap: 20px;
    height: var(--du-head-h);
    justify-content: space-between;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
}

.main-nav a,
.shop-links a {
    align-items: center;
    color: var(--du-text);
    display: inline-flex;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    min-height: 44px;
    padding: 0 10px;
    text-decoration: none;
    text-transform: uppercase;
}

.main-nav a:hover,
.shop-links a:hover {
    color: var(--du-cta);
}

.main-nav a[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--du-accent);
}

.masthead-end {
    align-items: center;
    display: flex;
    gap: 18px;
}

.shop-links {
    display: flex;
    gap: 2px;
}

.bag-link {
    gap: 8px;
}

.bag-count {
    align-items: center;
    background: var(--du-night);
    color: var(--du-base);
    display: inline-flex;
    font-size: 0.78rem;
    height: 26px;
    justify-content: center;
    letter-spacing: 0;
    min-width: 26px;
    padding: 0 6px;
}

.bag-count.bumped {
    animation: du-bump 0.5s ease-out;
    background: var(--du-cta);
}

@keyframes du-bump {
    0% {
        transform: scale(1);
    }
    40% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.logo {
    align-items: center;
    color: var(--du-text);
    display: inline-flex;
    font-family: var(--du-serif);
    font-size: 1.45rem;
    gap: 10px;
    letter-spacing: 0.06em;
    min-height: 44px;
    text-decoration: none;
}

.logo img {
    height: 30px;
    width: 30px;
}

.burger {
    align-items: center;
    background: transparent;
    border: 1px solid var(--du-text);
    color: var(--du-text);
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.burger span {
    background: currentColor;
    display: block;
    height: 2px;
    width: 20px;
}

/* panel móvil */
.drawer {
    display: none;
}

.drawer-head {
    display: none;
}

.drawer ul {
    list-style: none;
    padding: 0;
}

.drawer a {
    color: var(--du-base);
    display: block;
    font-family: var(--du-serif);
    font-size: 1.4rem;
    padding: 12px 0;
    text-decoration: none;
}

/* encabezado de página */
.page-head {
    border-bottom: 1px solid var(--du-line);
    padding-bottom: 40px;
    padding-top: 44px;
}

.page-head .label {
    display: block;
    margin-bottom: 14px;
}

.page-head h1 {
    max-width: 860px;
}

.page-head .lede {
    color: var(--du-muted);
    font-size: 1.08rem;
    margin-top: 14px;
    max-width: 760px;
}

.crumbs {
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.crumbs a {
    display: inline-block;
    padding: 6px 0;
}

/* pie */
.colophon {
    padding-bottom: 36px;
    padding-top: 64px;
}

.colophon-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: 1.3fr 1fr 1fr;
}

.colophon h2 {
    color: var(--du-night-text);
    font-family: var(--du-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.colophon ul {
    list-style: none;
    padding: 0;
}

.colophon li a {
    display: inline-block;
    padding: 6px 0;
    text-decoration: none;
}

.colophon-brand .logo {
    color: var(--du-base);
}

.colophon-brand p {
    color: var(--du-night-text);
    margin-top: 14px;
    max-width: 340px;
}

.colophon-base {
    border-top: 1px solid #3a3544;
    color: var(--du-night-text);
    font-size: 0.9rem;
    margin-top: 48px;
    padding-top: 20px;
}

@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }

    .with-js .burger {
        display: inline-flex;
    }

    .drawer {
        background: var(--du-night);
        display: block;
        padding: 20px var(--du-pad) 28px;
    }

    .with-js .drawer {
        bottom: 0;
        left: 0;
        overflow-y: auto;
        padding-top: 16px;
        position: fixed;
        right: 0;
        top: 0;
        visibility: hidden;
        z-index: 90;
    }

    .with-js .drawer.expanded-nav {
        visibility: visible;
    }

    .with-js .drawer-head {
        align-items: center;
        display: flex;
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .drawer-close {
        align-items: center;
        background: transparent;
        border: 1px solid var(--du-base);
        color: var(--du-base);
        cursor: pointer;
        font-size: 0.86rem;
        font-weight: 600;
        letter-spacing: 0.1em;
        min-height: 44px;
        padding: 0 16px;
        text-transform: uppercase;
    }
}

@media (max-width: 860px) {
    .colophon-grid {
        grid-template-columns: 1fr 1fr;
    }

    .colophon-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    :root {
        --du-gap: 64px;
        --du-head-h: 64px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo img {
        display: none;
    }

    .shop-links a {
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        padding: 0 6px;
    }

    .masthead-row {
        gap: 8px;
    }

    .masthead-end {
        gap: 4px;
    }

    .colophon-grid {
        grid-template-columns: 1fr;
    }
}
