/* lavet af mathilde – "Soft Luxury" (docs/CVI.md)
   Ivory/white dominate, espresso for text, lines and icons. Buttons are outline-only at rest
   and fill with espresso on hover/focus (CVI §5, amended at Mathilde's request). */

@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-300-TJNDeHn.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-400-zYEbOgd.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-500-0Jcu3LB.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-300-italic-EkMZs1k.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-Gz7AlRl.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
    --ivory: #FAF8F4;
    --white: #FFFFFF;
    --sand: #E8DED1;
    --taupe: #A18A72;
    --espresso: #49382B;
    /* Espresso softened towards taupe: secondary text that still meets AA contrast on ivory */
    --espresso-soft: #6E5A49;
    --line: rgba(73, 56, 43, .16);

    --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --gutter: clamp(16px, 4vw, 48px);
    --max: 1320px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--ivory);
    color: var(--espresso);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--espresso-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.1; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sand); color: var(--espresso); }

:focus-visible { outline: 1px solid var(--espresso); outline-offset: 3px; }

.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; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--ivory); border: 1px solid var(--espresso); text-decoration: none; }
.skip-link:focus { top: 12px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Typography helpers ---------- */
.eyebrow {
    font-family: var(--sans);
    font-size: .6875rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--espresso-soft);
    margin: 0 0 18px;
}
.note { font-size: .8125rem; color: var(--espresso-soft); }
.empty { text-align: center; color: var(--espresso-soft); padding: 48px 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 300; }

/* ---------- Buttons (CVI §5) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6em;
    min-height: 48px;
    padding: 14px 32px;
    border: 1px solid var(--espresso);
    border-radius: 0;
    background: transparent;
    color: var(--espresso);
    font-family: var(--sans);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--light { border-color: var(--ivory); color: var(--ivory); }
.btn--block { width: 100%; }
.btn--small { min-height: 40px; padding: 10px 20px; }
@media (hover: hover) {
    .btn:hover { background: var(--espresso); color: var(--ivory); }
    .btn--light:hover { background: var(--ivory); color: var(--espresso); }
}
.btn:focus-visible { background: var(--espresso); color: var(--ivory); outline-offset: 4px; }
.btn--light:focus-visible { background: var(--ivory); color: var(--espresso); outline-color: var(--ivory); }

.link-btn {
    background: none; border: 0; padding: 0; cursor: pointer;
    font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--espresso-soft); text-decoration: underline; text-underline-offset: .3em;
}
.link-btn:hover { color: var(--espresso); }

.icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; color: var(--espresso); cursor: pointer; position: relative;
    text-decoration: none;
}
.icon-btn:hover { color: var(--espresso-soft); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(250, 248, 244, .96);
    border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
    .site-header { background: rgba(250, 248, 244, .88); backdrop-filter: blur(8px); }
}
.site-header__inner {
    max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
    height: var(--header-h);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.site-header__logo { grid-column: 2; grid-row: 1; justify-self: center; text-decoration: none; color: var(--espresso); }
.site-header__logo:hover { color: var(--espresso); }
.site-header__tools { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: 4px; margin-right: -10px; }
.site-header__burger { display: none; }

.site-nav { grid-column: 1; grid-row: 1; }
.site-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.site-nav a {
    font-size: .8125rem; letter-spacing: .04em; text-decoration: none;
    padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: currentColor; color: var(--espresso); }
.site-nav__extra { display: none; }

.bag-link__count {
    position: absolute; top: 6px; right: 4px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border: 1px solid var(--espresso); border-radius: 9px; background: var(--ivory);
    font-size: .625rem; line-height: 15px; text-align: center; font-weight: 500;
}

/* Logo */
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__bow { color: var(--espresso); margin-bottom: 2px; }
.logo__word { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; letter-spacing: .005em; white-space: nowrap; }
.logo__descriptor { font-size: .625rem; letter-spacing: .42em; text-transform: uppercase; margin-top: 12px; padding-left: .42em; color: var(--espresso-soft); }
.logo--header .logo__bow { width: 34px; height: auto; }
.logo--footer .logo__word { font-size: 2.1rem; }
.logo--footer .logo__bow { width: 52px; height: auto; margin-bottom: 4px; }

.site-search { border-top: 1px solid var(--line); }
.site-search__form { max-width: 720px; margin: 0 auto; padding: 14px var(--gutter); display: flex; gap: 12px; }
.site-search__form input { flex: 1; }

@media (max-width: 860px) {
    :root { --header-h: 60px; }
    .site-header__burger { display: inline-flex; grid-column: 1; grid-row: 1; justify-self: start; margin-left: -10px; }
    .site-header__burger .icon-close { display: none; }
    .site-header__burger[aria-expanded="true"] .icon-open { display: none; }
    .site-header__burger[aria-expanded="true"] .icon-close { display: block; }
    .logo--header .logo__word { font-size: 1.3rem; }
    .logo--header .logo__bow { width: 26px; }
    .site-nav {
        position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
        background: var(--ivory); border-bottom: 1px solid var(--line);
        padding: 8px var(--gutter) 28px;
        visibility: hidden; opacity: 0; transform: translateY(-8px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
    }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li { border-bottom: 1px solid var(--line); }
    .site-nav a { display: block; padding: 18px 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 300; letter-spacing: 0; border: 0; }
    .site-nav a[aria-current="page"] { font-style: italic; }
    .site-nav__extra { display: block; }
    /* no JS: the menu is reachable as a plain list at the top */
    .no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Flash ---------- */
.flash { max-width: var(--max); margin: 24px auto 0; padding: 0 var(--gutter); }
.flash p { margin: 0; padding: 14px 18px; border: 1px solid var(--line); background: var(--white); font-size: .875rem; }
.flash--error p { border-color: var(--espresso); }

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; min-height: min(78vh, 760px); overflow: hidden; }
.hero__media, .hero__content { grid-area: 1 / 1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero--photo .hero__media::after {
    /* a soft, even darkening keeps the white text readable without a visible overlay band */
    content: ""; position: absolute; inset: 0; background: rgba(46, 34, 25, .28); pointer-events: none;
}
.hero__content {
    position: relative; z-index: 1; align-self: center;
    width: 100%; max-width: var(--max); margin: 0 auto; padding: 96px var(--gutter);
}
.hero__title { font-size: clamp(3rem, 7.2vw, 6.2rem); font-weight: 300; max-width: 9ch; margin-bottom: 28px; }
.hero__text { font-size: clamp(.95rem, 1.3vw, 1.05rem); max-width: 30ch; margin-bottom: 40px; line-height: 1.7; }
.hero--photo { color: var(--ivory); }
.hero--photo .eyebrow { color: rgba(250, 248, 244, .85); }
.hero--plain { background: var(--sand); }
.hero--plain .hero__media { display: flex; align-items: center; justify-content: flex-end; padding-right: 6vw; pointer-events: none; }
.hero__bow { width: min(46vw, 560px); height: auto; color: var(--white); opacity: .9; }
@media (max-width: 700px) {
    .hero { min-height: 72vh; }
    .hero--photo .hero__content { align-self: end; padding-bottom: 56px; }
    .hero--plain .hero__media { justify-content: center; align-items: flex-start; padding: 40px 0 0; }
    .hero__bow { width: 80vw; opacity: .7; }
    .hero--plain .hero__content { align-self: end; padding-bottom: 56px; }
}

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.section--narrow { max-width: 720px; }
.section__head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--rule { display: flex; align-items: center; gap: 28px; }
.section__head--rule::before, .section__head--rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section__title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 300; }
.section__cta { text-align: center; margin: clamp(40px, 6vw, 64px) 0 0; }

.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--gutter) 0; text-align: center; }
.page-head--compact { padding-bottom: 8px; }
.page-head__title { font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 300; }
.page-head__lead { max-width: 52ch; margin: 24px auto 0; color: var(--espresso-soft); }

/* ---------- Placeholder ---------- */
.placeholder { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; background: var(--sand); color: var(--white); }
.placeholder__bow { width: 30%; max-width: 96px; height: auto; opacity: .95; }
.placeholder--wide { aspect-ratio: 16 / 9; }
.placeholder--tall { aspect-ratio: 4 / 5; height: 100%; }
.placeholder--editorial { aspect-ratio: 21 / 9; }

/* ---------- Category tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(12px, 2vw, 28px); grid-template-columns: repeat(3, 1fr); }
.tiles--1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile a { display: block; text-decoration: none; }
.tile__media { display: block; overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile a:hover .tile__media img { transform: scale(1.03); }
.tile__label { display: block; text-align: center; margin-top: 18px; font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.tile a:hover .tile__label { color: var(--espresso); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
@media (max-width: 860px) {
    .tiles, .tiles--4 { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
    .tiles::-webkit-scrollbar { display: none; }
    .tile { scroll-snap-align: start; }
    .tiles--1, .tiles--2 { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; margin-right: 0; padding-right: 0; }
    .tiles--1 { grid-template-columns: minmax(0, 320px); }
    .tile__label { font-size: 1.2rem; margin-top: 12px; }
}

/* ---------- Product grid + cards ---------- */
.grid--products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vw, 56px) clamp(16px, 2vw, 28px); }
@media (max-width: 1100px) { .grid--products { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid--products { grid-template-columns: repeat(2, 1fr); gap: 36px 14px; } }

.card__link { display: block; text-decoration: none; }
.card__media { position: relative; overflow: hidden; background: var(--white); aspect-ratio: 4 / 5; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.card__alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
    .card__link:hover .card__media img { transform: scale(1.025); }
    .card__link:hover .card__media--swap .card__alt { opacity: 1; }
}
.card__tag {
    position: absolute; left: 12px; top: 12px;
    font-size: .625rem; letter-spacing: .2em; text-transform: uppercase;
    background: var(--ivory); padding: 5px 9px;
}
.card--sold-out .card__media img { opacity: .72; }
.card__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; margin: 16px 0 4px; line-height: 1.25; }
.card__price { font-size: .8125rem; color: var(--espresso-soft); margin: 0; letter-spacing: .02em; }
.card__link:hover .card__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 700px) { .card__name { font-size: 1.08rem; margin-top: 12px; } }

/* ---------- Story ---------- */
.story {
    max-width: var(--max); margin: clamp(80px, 11vw, 150px) auto 0; padding: 0 var(--gutter);
    display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 112px); align-items: center;
}
.story__media img, .story__media .placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.story__content { max-width: 440px; }
.story__title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 24px; }
.story__content p:not(.eyebrow) { color: var(--espresso-soft); margin-bottom: 36px; font-size: 1.02rem; }
@media (max-width: 800px) {
    .story { grid-template-columns: 1fr; }
    .story__media { margin: 0 calc(-1 * var(--gutter)); }
}

/* ---------- Editorial break ---------- */
.editorial { position: relative; margin: clamp(80px, 11vw, 150px) 0 0; }
.editorial img, .editorial .placeholder { width: 100%; max-height: 640px; aspect-ratio: 21 / 9; object-fit: cover; }
.editorial__quote {
    max-width: var(--max); margin: 32px auto 0; padding: 0 var(--gutter); text-align: center;
    font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2rem);
}
@media (max-width: 700px) { .editorial img, .editorial .placeholder { aspect-ratio: 4 / 3; } }

/* ---------- Shop page ---------- */
.shop-bar {
    max-width: var(--max); margin: 40px auto 0; padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.chips { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.chip {
    font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
    padding: 6px 0; border-bottom: 1px solid transparent; color: var(--espresso-soft);
}
.chip:hover { color: var(--espresso); }
.chip[aria-current="page"] { color: var(--espresso); border-bottom-color: var(--espresso); }
.shop-search { display: flex; align-items: center; border-bottom: 1px solid var(--espresso); margin-left: auto; }
.shop-search input { border: 0; background: transparent; padding: 8px 0; width: 180px; outline-offset: 6px; }
.shop-search input:focus { outline: none; }
.shop-search:focus-within { outline: 1px solid var(--espresso); outline-offset: 4px; }
.section--shop { padding-top: 40px; }
.result-count { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso-soft); margin-bottom: 28px; }
@media (max-width: 700px) {
    .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); width: calc(100% + var(--gutter)); }
    .chips::-webkit-scrollbar { display: none; }
    .chip { white-space: nowrap; }
    .shop-search { width: 100%; }
    .shop-search input { flex: 1; width: auto; }
}

/* ---------- Product page ---------- */
.breadcrumbs { max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 0; font-size: .75rem; letter-spacing: .08em; color: var(--espresso-soft); display: flex; gap: 10px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.product {
    max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter) 0;
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.product__main { background: var(--white); aspect-ratio: 4 / 5; overflow: hidden; }
.product__main img { width: 100%; height: 100%; object-fit: cover; }
.product__thumbs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.product__thumbs a { display: block; aspect-ratio: 4 / 5; overflow: hidden; outline-offset: 2px; opacity: .65; transition: opacity .3s var(--ease); border: 1px solid transparent; }
.product__thumbs a[aria-current="true"], .product__thumbs a:hover { opacity: 1; border-color: var(--espresso); }
.product__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product__info { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 8px; }
.product__title { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.product__price { font-size: 1.05rem; letter-spacing: .03em; margin-bottom: 24px; }
.product__summary { color: var(--espresso-soft); margin-bottom: 28px; }
.stock { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--espresso-soft); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--espresso); }
.stock--out::before { background: transparent; border-color: var(--taupe); }
.add-to-cart { display: flex; gap: 12px; }
.qty select { height: 48px; padding: 0 36px 0 16px; }
.details { margin-top: 40px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary {
    cursor: pointer; list-style: none; padding: 18px 0; position: relative;
    font-size: .75rem; letter-spacing: .2em; text-transform: uppercase;
}
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 9px; height: 9px; border-right: 1px solid; border-bottom: 1px solid; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.details details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.details__body { padding: 0 0 22px; color: var(--espresso-soft); font-size: .9375rem; }
@media (max-width: 860px) {
    .product { grid-template-columns: 1fr; padding-top: 16px; }
    .product__gallery { margin: 0 calc(-1 * var(--gutter)); }
    .product__thumbs { padding: 0 var(--gutter); }
    .product__info { position: static; }
}

/* ---------- Cart + checkout ---------- */
.checkout {
    max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 0;
    display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 7vw, 112px); align-items: start;
}
.checkout__heading { font-size: 1.75rem; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bag { list-style: none; margin: 0; padding: 0; }
.bag__line { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; padding: 0 0 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); align-items: start; }
.bag__media { display: block; background: var(--white); aspect-ratio: 4 / 5; overflow: hidden; }
.bag__media img { width: 100%; height: 100%; object-fit: cover; }
.bag__info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.bag__name { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; line-height: 1.2; }
.bag__unit { font-size: .8125rem; color: var(--espresso-soft); }
.bag__qty select { height: 38px; padding: 0 30px 0 12px; font-size: .875rem; }
.bag__total { font-size: .9375rem; white-space: nowrap; }
.totals { margin: 0 0 16px; }
.totals div { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9375rem; }
.totals dt { color: var(--espresso-soft); }
.totals dd { margin: 0; }
.totals__sum { border-top: 1px solid var(--espresso); margin-top: 10px; padding-top: 14px !important; font-size: 1.05rem !important; }
.totals__sum dt { color: var(--espresso); }
.steps { margin: 0 0 32px; padding-left: 1.3em; color: var(--espresso-soft); font-size: .9375rem; }
.steps li { padding-left: 4px; margin-bottom: 6px; }
.steps strong { color: var(--espresso); font-weight: 500; }
.cart-empty { text-align: center; display: grid; justify-items: center; gap: 8px; }
.cart-empty__bow { color: var(--taupe); margin-bottom: 8px; }
.cart-empty p { font-family: var(--serif); font-size: 1.5rem; font-weight: 300; margin-bottom: 24px; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
    .bag__line { grid-template-columns: 76px 1fr; }
    .bag__total { grid-column: 2; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.field__optional { text-transform: none; letter-spacing: 0; color: var(--espresso-soft); }
.field__help { font-size: .8125rem; color: var(--espresso-soft); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], textarea, select {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: var(--white); border: 1px solid var(--line); border-radius: 0;
    transition: border-color .25s var(--ease);
}
textarea { resize: vertical; min-height: 120px; }
select {
    appearance: none; width: auto; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%2349382B' stroke-width='1.2'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center;
}
input:hover, textarea:hover, select:hover { border-color: var(--taupe); }
input:focus, textarea:focus, select:focus { border-color: var(--espresso); outline: none; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 1px solid var(--espresso); outline-offset: 2px; }
.site-search__form input { min-height: 40px; }
.form__address { border: 0; padding: 0; margin: 0; display: grid; gap: 22px; }
.form__address legend { font-family: var(--serif); font-size: 1.35rem; margin-bottom: 14px; padding: 0; }
.form__pair { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
.form__check, .field--check { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: start; font-size: .9375rem; }
.form__check .form-errors, .field--check .form-errors, .field--check .field__help { grid-column: 2; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--espresso); }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); background: var(--white); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--espresso); }
.form-errors { list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: var(--espresso); }
.form-errors li::before { content: "– "; }
.field--error input, .field--error textarea, .field--error select { border-color: var(--espresso); }
.form > .form-errors { border: 1px solid var(--espresso); padding: 12px 16px; background: var(--white); }

/* ---------- Thanks / error ---------- */
.thanks { max-width: 620px; margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--gutter) 0; text-align: center; display: grid; justify-items: center; }
.thanks__bow { color: var(--taupe); margin-bottom: 28px; }
.thanks .page-head__title { margin-bottom: 20px; }
.thanks > p { color: var(--espresso-soft); }
.pay-box { width: 100%; margin: 32px 0 40px; padding: 32px 24px; background: var(--white); border-top: 1px solid var(--espresso); border-bottom: 1px solid var(--espresso); }
.pay-box h2 { font-size: 1.6rem; margin-bottom: 16px; }
.pay-box p { color: var(--espresso-soft); margin-bottom: 8px; }
.pay-box__number { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; color: var(--espresso) !important; letter-spacing: .04em; margin: 4px 0 12px !important; }

/* ---------- About + prose ---------- */
.about {
    max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) 0;
    display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 7vw, 112px); align-items: start;
}
.about__media img, .about__media .placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__media { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 800px) {
    .about { grid-template-columns: 1fr; }
    .about__media { position: static; margin: 0 calc(-1 * var(--gutter)); }
}
.prose { font-size: 1.02rem; max-width: 62ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; font-weight: 400; }
.prose p, .prose li { color: var(--espresso-soft); }
.prose strong { color: var(--espresso); font-weight: 500; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose > :first-child { margin-top: 0; }
.prose .btn { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: clamp(96px, 12vw, 160px); border-top: 1px solid var(--line); background: var(--ivory); }
.site-footer__inner {
    max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter) 48px;
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
}
.site-footer__brand { display: grid; justify-items: start; gap: 20px; }
.site-footer__brand a { text-decoration: none; }
.site-footer__brand .logo { align-items: center; }
.site-footer__brand p { color: var(--espresso-soft); font-size: .875rem; max-width: 26ch; margin: 0; }
.site-footer__col h2 { font-family: var(--sans); font-size: .6875rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; margin: 6px 0 20px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer__col a, .site-footer__col p { font-size: .875rem; color: var(--espresso-soft); text-decoration: none; }
.site-footer__col a:hover { color: var(--espresso); text-decoration: underline; }
.site-footer__col p { line-height: 1.9; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__legal { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 28px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--espresso-soft); text-align: center; letter-spacing: .04em; }
@media (max-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; justify-items: center; text-align: center; } .site-footer__brand p { max-width: none; } }
@media (max-width: 520px) { .site-footer__inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; } .site-footer__col ul { justify-items: center; } }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
    .tile a:hover .tile__media img, .card__link:hover .card__media img { transform: none; }
}

/* Three favourites fill the row like on the brand board */
@media (min-width: 701px) {
    .grid--n3, .grid--n2 { grid-template-columns: repeat(3, 1fr); max-width: 1080px; margin: 0 auto; }
    .grid--n2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}

/* Edge-to-edge scrollers use negative margins: never let them widen the page */
html, body { overflow-x: clip; }
@media (max-width: 700px) { .hero { min-height: min(72vh, 620px); } }
