/*
 * Kiki Fornell — storefront styles. Plain CSS, no build step.
 *
 * The look follows kikifornell.art (Kiki's Adobe Portfolio site):
 * white pages, near-black bold humanist headings, light grey body text,
 * uppercase navigation, one accent green (#009b77), square-cornered
 * outlined buttons, square photos on pale grey-blue backgrounds,
 * image + text rows alternating left and right, a centred quiet footer.
 *
 * Fonts: free look-alikes of the portfolio's Adobe fonts, self-hosted.
 * With SHOP_ADOBE_FONTS_KIT set, the layout loads the real ones first.
 */

@font-face {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/alegreya-sans-latin-500-normal.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 {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/alegreya-sans-latin-ext-500-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/alegreya-sans-latin-700-normal.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 {
    font-family: "Alegreya Sans";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/alegreya-sans-latin-ext-700-normal.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2-variations");
    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 {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Palette, taken from kikifornell.art */
    --page: #ffffff;
    --ink: #111111;        /* headings, wordmark */
    --text: #444444;       /* body text, navigation */
    --muted: #767676;      /* secondary text (darkened from #999 for legibility) */
    --line: #e4e4e4;       /* dividers */
    --photo: #e9eef1;      /* behind photos: the pale grey-blue of Kiki's photography */
    --green: #009b77;      /* the portfolio's accent: subtitle, button outlines */
    --green-ink: #00775b;  /* same green, dark enough for small text and filled buttons */

    /* Type: real Adobe fonts first when a kit is loaded (see layout), then look-alikes */
    --display: "Alegreya Sans", "Gill Sans", "Trebuchet MS", sans-serif;
    --text-font: "Figtree", "Helvetica Neue", Arial, sans-serif;

    --s-small: 0.875rem;   /* 14 */
    --s-body: 1.125rem;    /* 18, as on the portfolio */
    --s-lead: 1.25rem;     /* 20 */
    --s-h3: 1.625rem;      /* 26 */
    --s-h2: clamp(2rem, 2.5vw + 1rem, 2.625rem);    /* up to 42, the portfolio's section headings */
    --s-hero: clamp(1.75rem, 2.5vw + 1rem, 2.75rem);

    --gutter: clamp(1rem, 3vw, 2.5rem);
    --max: 84rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--text-font);
    font-size: var(--s-body);
    line-height: 1.45;
    font-weight: 300;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--green-ink); }

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

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.12;
    margin: 0 0 0.45em;
}
h1 { font-size: var(--s-h2); }
h2 { font-size: var(--s-h2); }
h3 { font-size: var(--s-h3); }

p { margin: 0 0 1em; }
strong { font-weight: 600; color: var(--ink); }

.lede { font-size: var(--s-lead); max-width: 40em; }

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

.skip-link {
    position: absolute; left: 1rem; top: -3rem; z-index: 10;
    background: var(--ink); color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header ---------- */

.site-header {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 0.75rem 2rem;
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.6rem var(--gutter);
}

.wordmark {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    margin: 0;
    margin-right: auto;
}
.wordmark:hover { color: var(--ink); }

.main-nav ul, .header-tools {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 0.25rem 1.6rem;
    list-style: none; margin: 0; padding: 0;
}
.main-nav a, .header-tools a, .menu-toggle {
    font-family: var(--text-font);
    font-weight: 600;
    font-size: var(--s-small);
    line-height: 2;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}
.main-nav a:hover, .header-tools a:hover { color: var(--green-ink); }
.main-nav a[aria-current="page"] { color: var(--green-ink); }

.cart-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.cart-count {
    display: inline-grid; place-items: center;
    min-width: 1.4rem; height: 1.4rem; padding: 0 0.3rem;
    background: var(--green-ink); color: #fff;
    font-size: 0.75rem; font-weight: 700; line-height: 1;
}

.menu-toggle {
    background: none; border: 0; padding: 0; cursor: pointer;
}

.lang-short { display: none; }

/* Tablets and phones: the menu folds behind a button. */
@media (max-width: 60rem) {
    .site-header { gap: 0.5rem 1.25rem; }
    .main-nav { order: 3; flex-basis: 100%; }
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 0; }
    .js .main-nav:not(.is-open) { display: none; }
}
@media (min-width: 60.01rem) {
    .menu-toggle { display: none; }
}
/* Phones: keep the header on one line ("EN" instead of "English"). */
@media (max-width: 30rem) {
    .site-header { gap: 0.5rem 1rem; padding-top: 1.1rem; padding-bottom: 1.1rem; }
    .wordmark { font-size: 1.3rem; }
    .header-tools { gap: 0 1rem; }
    .lang-long { display: none; }
    .lang-short { display: inline; }
}

/* ---------- Notice ---------- */

.notice {
    max-width: var(--max);
    margin: 0 auto 1.5rem;
    padding: 0.85rem var(--gutter);
    border-left: 3px solid var(--green);
    background: #f4f8f7;
    color: var(--ink);
}

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Buttons: square corners, uppercase, like the portfolio ---------- */

.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 2.9rem;
    padding: 0.7rem 1.9rem;
    border: 1px solid var(--green-ink);
    border-radius: 0;
    background: var(--green-ink);
    color: #fff;
    font-family: var(--text-font);
    font-size: var(--s-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover { background: #005f48; border-color: #005f48; color: #fff; }
.button:disabled { opacity: 0.4; cursor: not-allowed; }
.button--outline { background: transparent; color: var(--green-ink); border-color: var(--green); }
.button--outline:hover { background: var(--green-ink); border-color: var(--green-ink); color: #fff; }
.button--wide { width: 100%; }

.link-button {
    background: none; border: 0; padding: 0;
    font: inherit; font-size: var(--s-small); color: var(--muted);
    text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer;
}
.link-button:hover { color: var(--green-ink); }

/* ---------- Home: full-width photo with the title over it ---------- */

.hero {
    position: relative;
    margin: 0 calc(var(--gutter) * -1) clamp(3rem, 7vw, 5.5rem);
    background: var(--photo);
}
.hero__image img {
    width: 100%;
    height: min(78vh, 52rem);
    object-fit: cover;
}
.hero__text {
    position: absolute; left: 0; right: 0; bottom: clamp(1.5rem, 5vh, 3.5rem);
    text-align: center;
    padding: 0 var(--gutter);
}
.hero__title {
    font-family: var(--text-font);
    font-weight: 400;
    font-size: var(--s-hero);
    line-height: 1.2;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
    margin: 0 0 0.6rem;
}
.hero__place {
    font-size: var(--s-lead);
    font-weight: 400;
    color: var(--green);
    margin: 0 0 1.4rem;
}
.hero .button--outline { background: rgba(255, 255, 255, 0.88); }
.hero .button--outline:hover { background: var(--green-ink); }

/* Phones and small tablets: a 4:5 photo instead of a very tall crop,
   with the title under it so it never sits on top of the jewel. */
@media (max-width: 48rem) {
    .hero { background: none; }
    .hero__image img { height: auto; aspect-ratio: 4 / 5; background: var(--photo); }
    .hero__text { position: static; padding-top: 1.75rem; }
    .hero__title { color: var(--ink); text-shadow: none; }
    .hero .button--outline { background: none; }
}

/* Without a photo yet, the title sits on plain white. */
.hero--plain { background: none; padding: clamp(3rem, 10vw, 7rem) 0 0; }
.hero--plain .hero__text { position: static; }
.hero--plain .hero__title { color: var(--ink); text-shadow: none; }

/* ---------- Section titles ---------- */

.section-title { text-align: center; }
.section-head { text-align: center; margin-bottom: 2rem; }
.section-head p { margin: 0; }
.section-head a { font-size: var(--s-small); font-weight: 600; text-transform: uppercase; color: var(--green-ink); text-decoration: none; }

.page-head { text-align: center; padding: 1rem 0 clamp(2rem, 5vw, 3.5rem); }
.page-head .lede { margin: 0 auto; }

.empty { text-align: center; color: var(--muted); font-size: var(--s-lead); }
.empty a { color: var(--green-ink); }

/* ---------- Collections: image + text rows, alternating, as on the portfolio ---------- */

.feature-rows { margin-bottom: clamp(3rem, 7vw, 5.5rem); }
.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.feature-row:nth-child(even) { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.feature-row:nth-child(even) .feature-row__image { order: 2; }
.feature-row__image { background: var(--photo); display: block; }
.feature-row__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.feature-row__text h2 { text-align: center; }
.feature-row__text h2 a { text-decoration: none; color: inherit; }
.feature-row__text .button { margin-top: 0.5rem; }
.feature-row__cta { text-align: center; }
@media (max-width: 48rem) {
    .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; }
    .feature-row:nth-child(even) .feature-row__image { order: 0; }
}

/* ---------- Piece grid ---------- */

.pieces-section { padding-bottom: clamp(3rem, 7vw, 5.5rem); }

.piece-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem);
}
@media (max-width: 64rem) { .piece-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 30rem) { .piece-grid { grid-template-columns: 1fr; } }

.piece-card { text-align: center; }
.piece-card__link { display: block; text-decoration: none; }
.piece-card__image { background: var(--photo); margin-bottom: 0.9rem; }
.piece-card__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.piece-card__ref {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.piece-card__title {
    font-size: 1.375rem;
    line-height: 1.2;
    margin: 0.15rem 0 0.3rem;
}
.piece-card__link:hover .piece-card__title { color: var(--green-ink); }
.piece-card__price { margin: 0; color: var(--text); }

.piece-grid--archive .piece-card__image img { filter: saturate(0.8); }

.status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.55rem;
    border: 1px solid currentColor;
    margin-left: 0.35rem;
    vertical-align: 0.12em;
}
.status--sold { color: var(--muted); margin-left: 0; }
.status--reserved { color: var(--green-ink); }

.archive-link { text-align: center; margin: 3rem 0 0; }

/* ---------- Promises ---------- */

.promises {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    border-top: 1px solid var(--line);
    padding: 3rem 0 clamp(3rem, 7vw, 5rem);
}
.promises h2 { font-size: var(--s-h3); margin-bottom: 0.35em; }
.promises p { margin: 0 auto; max-width: 24em; }
@media (max-width: 52rem) { .promises { grid-template-columns: 1fr; } }

/* ---------- Piece page ---------- */

.piece {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
    padding: 0.5rem 0 clamp(3rem, 7vw, 5rem);
}
@media (max-width: 44rem) { .piece { grid-template-columns: 1fr; } }

.gallery__main { margin: 0; background: var(--photo); }
.gallery__main img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity 0.2s ease; }
.gallery__main img.is-loading { opacity: 0.35; }
.gallery__thumbs {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    list-style: none; margin: 0.6rem 0 0; padding: 0;
}
.gallery__thumbs button {
    display: block; padding: 0; border: 1px solid transparent; background: var(--photo);
    cursor: pointer; width: 4.75rem;
}
.gallery__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; opacity: 0.65; transition: opacity 0.15s ease; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--green); }
.gallery__thumbs button[aria-current="true"] img,
.gallery__thumbs button:hover img { opacity: 1; }

.cartel { position: sticky; top: 1.5rem; }
@media (max-width: 44rem) { .cartel { position: static; } }

.cartel__ref {
    margin: 0 0 0.4rem;
    font-size: var(--s-small);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.cartel__title { font-size: var(--s-h2); margin-bottom: 0.25em; }
.cartel__collection { margin-bottom: 1.6rem; }
.cartel__collection a { color: var(--green-ink); text-decoration: none; font-weight: 600; font-size: var(--s-small); text-transform: uppercase; }
.cartel__collection a:hover { text-decoration: underline; }

.cartel__price {
    font-family: var(--display);
    font-weight: 500;
    font-size: var(--s-h3);
    color: var(--ink);
    margin: 0 0 1rem;
}
.cartel__buy .button { min-width: 15rem; }
.cartel__note { color: var(--muted); font-size: var(--s-small); margin: 0.9rem 0 0; max-width: 34em; }

.cartel__details {
    margin: 2rem 0 0;
    border-top: 1px solid var(--line);
    font-size: 1rem;
}
.cartel__details div {
    display: grid; grid-template-columns: 8rem 1fr; gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
}
.cartel__details dt { color: var(--muted); }
.cartel__details dd { margin: 0; color: var(--text); }
.cartel__description { margin-top: 2rem; }

.prose { max-width: 40em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2 { font-size: var(--s-h3); margin-top: 1.5em; }
.prose h3 { font-size: 1.375rem; margin-top: 1.25em; }

/* ---------- Question form ---------- */

.question {
    border-top: 1px solid var(--line);
    padding: 3rem 0 clamp(3rem, 7vw, 5rem);
    max-width: 48rem;
    margin: 0 auto;
}
.question h2 { text-align: center; font-size: var(--s-h3); }
.question > p { text-align: center; color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; margin-top: 1.5rem; }
.form__row { display: grid; gap: 0.35rem; }
.form__row--wide { grid-column: 1 / -1; }
.form .button { justify-self: center; grid-column: 1 / -1; }
@media (max-width: 40rem) { .form { grid-template-columns: 1fr; } }

label { font-size: var(--s-small); font-weight: 500; color: var(--text); }
input[type="text"], input[type="email"], textarea {
    font: inherit; font-weight: 400; color: var(--ink);
    width: 100%;
    padding: 0.7rem 0.85rem;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
}
input:focus-visible, textarea:focus-visible { border-color: var(--green); }
.form__error { color: #b3261e; font-size: var(--s-small); margin: 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- Cart ---------- */

.cart {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 1rem clamp(2rem, 5vw, 4.5rem);
    padding: 0.5rem 0 clamp(3rem, 7vw, 5rem);
}
.cart h1 { grid-column: 1 / -1; text-align: center; }
.cart > .empty, .cart > .button { grid-column: 1 / -1; }
.cart > .button { justify-self: center; }
@media (max-width: 44rem) { .cart { grid-template-columns: 1fr; } }

.cart__items { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cart-item {
    display: grid;
    grid-template-columns: 6rem 1fr auto;
    grid-template-areas: "img text price" "img remove remove";
    gap: 0.25rem 1.25rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line);
}
.cart-item__image { grid-area: img; background: var(--photo); }
.cart-item__image img { width: 6rem; aspect-ratio: 1; object-fit: cover; }
.cart-item__text { grid-area: text; }
.cart-item__text p { margin: 0; }
.cart-item__ref { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cart-item__title { font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1.2; color: var(--ink); }
.cart-item__title a { text-decoration: none; }
.cart-item__price { grid-area: price; margin: 0; }
.cart-item form { grid-area: remove; align-self: end; }
.cart-item--unavailable .cart-item__image img { opacity: 0.4; }

.cart__summary { align-self: start; position: sticky; top: 1.5rem; }
.destination fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
.destination legend { font-family: var(--display); font-weight: 700; font-size: var(--s-h3); color: var(--ink); margin-bottom: 0.6rem; padding: 0; }
.destination__option {
    display: grid; grid-template-columns: auto 1fr; gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text); font-size: 1rem; font-weight: 400;
    cursor: pointer;
}
.destination__option input { width: 1.25rem; height: 1.25rem; margin: 0.15rem 0 0; accent-color: var(--green-ink); }
.destination__label { display: block; color: var(--ink); }
.destination__method { display: block; color: var(--muted); font-size: var(--s-small); }

.totals { margin: 0 0 0.5rem; font-size: 1rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals__total { border-top: 1px solid var(--line); margin-top: 0.4rem; padding-top: 0.75rem !important; }
.totals__total dt, .totals__total dd { color: var(--ink); font-family: var(--display); font-weight: 700; font-size: var(--s-h3); }
.cart__vat, .cart__note { font-size: var(--s-small); color: var(--muted); }
.cart__vat { margin-bottom: 1.25rem; }
.cart__note { margin-top: 0.9rem; }

/* ---------- Text pages ---------- */

.text-page { padding: 0.5rem 0 clamp(3rem, 7vw, 5rem); max-width: 46rem; margin: 0 auto; }
.text-page h1 { text-align: center; }
.thanks { text-align: center; }
.thanks .lede { margin: 0 auto 1.5rem; }

/* ---------- Footer: centred and quiet, as on the portfolio ---------- */

.site-footer {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3rem var(--gutter) 2.5rem;
    text-align: center;
    color: var(--muted);
    font-size: var(--s-small);
    font-weight: 400;
}
.site-footer .wordmark { display: inline-block; margin: 0 0 1.25rem; font-size: 1.25rem; }
.site-footer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.5rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--green-ink); text-decoration: underline; }
.back-to-top { display: inline-block; margin-bottom: 1.5rem; font-size: 1rem; color: var(--muted) !important; }
.footer-legal { margin: 1rem 0 0; }

/* ---------- Touch screens: every link and button at least 44 px tall ---------- */

@media (pointer: coarse), (max-width: 48rem) {
    .site-header .wordmark, .main-nav a, .header-tools a, .menu-toggle,
    .site-footer a, .back-to-top, .link-button,
    .cartel__collection a, .section-head a, .archive-link a, .empty a {
        display: inline-flex;
        align-items: center;
        min-height: 2.75rem;
    }
    .main-nav ul { gap: 0; }
    .site-footer ul { gap: 0 1.5rem; margin-bottom: 0.5rem; }
    .site-footer .wordmark { margin-bottom: 0.5rem; }
    .gallery__thumbs button { width: 4.5rem; }
    .cart-item form { margin-top: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
