/*
 * site.css — the design system for The Crook Shop.
 *
 * A warm, printed-label look: cream paper with a faint grain, deep green, barn red
 * and a touch of brass. Headings are in Zilla Slab, body text in Lora; both are
 * self-hosted (assets/fonts, SIL Open Font License), so no visitor data goes anywhere.
 *
 * Sections:
 *   1. Fonts
 *   2. Design tokens
 *   3. Base and typography
 *   4. Layout helpers
 *   5. Header and navigation
 *   6. Buttons, stamps and small details
 *   7. Hero and page titles
 *   8. Cards, prose and quotes
 *   9. Our Story: timeline and schemes
 *  10. The Tools: diagram, uses, steps
 *  11. Visit: season panel, hours, menu, map
 *  12. Footer
 */

/* 1. Fonts -------------------------------------------------------------- */
@font-face {
    font-family: "Zilla Slab";
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url("/assets/fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Zilla Slab";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("/assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url("/assets/fonts/lora-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-weight: 400;
    font-style: italic;
    font-display: swap;
    src: url("/assets/fonts/lora-latin-400-italic.woff2") format("woff2");
}
@font-face {
    font-family: "Lora";
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url("/assets/fonts/lora-latin-700-normal.woff2") format("woff2");
}

/* 2. Design tokens ------------------------------------------------------- */
:root {
    /* Colors */
    --paper: #f6efdc;
    --paper-light: #fbf7ea;
    --paper-deep: #ece1c3;
    --ink: #2b2a22;
    --ink-soft: #57533f;
    --green: #2f5233;
    --green-dark: #1f3623;
    --barn: #9c2f25;
    --barn-dark: #7b231b;
    --brass: #a9792a;
    --wood: #7a4b24;
    --rule: #d6c9a4;

    /* Type */
    --font-heading: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
    --font-body: Lora, Charter, "Iowan Old Style", Georgia, serif;
    --step--1: 0.9rem;
    --step-0: 1.125rem;
    --step-1: clamp(1.3rem, 1.15rem + 0.7vw, 1.6rem);
    --step-2: clamp(1.7rem, 1.35rem + 1.5vw, 2.35rem);
    --step-3: clamp(2.4rem, 1.7rem + 3.2vw, 4rem);

    /* Spacing and shape */
    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4.5rem;
    --radius: 6px;
    --content-width: 70rem;
    --reading-width: 40rem;
    --shadow: 0 1px 2px rgba(43, 42, 34, 0.12), 0 8px 20px rgba(43, 42, 34, 0.08);
}

/* 3. Base and typography ---------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background-color: var(--paper);
    /* A faint paper grain: tiny noise tile drawn by the browser, no image file. */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36 0 0 0 0 .29 0 0 0 0 .16 0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.7;
}

h1, h2, h3 {
    margin: 0 0 var(--space-2);
    color: var(--green-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.005em;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-2); }

a { color: var(--barn); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--barn-dark); text-decoration-thickness: 2px; }

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

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

.lead {
    color: var(--ink-soft);
    font-size: var(--step-1);
    font-style: italic;
    line-height: 1.55;
}

/* A short label above a heading. */
.eyebrow {
    margin: 0 0 var(--space-1);
    color: var(--barn);
    font-family: var(--font-heading);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* 4. Layout helpers ------------------------------------------------------------ */
.container {
    width: min(100% - 2 * var(--space-3), var(--content-width));
    margin-inline: auto;
}
.narrow { max-width: var(--reading-width); }

.section { padding-block: var(--space-5); }
.section--tight { padding-block: var(--space-3) var(--space-5); }
.section--tint {
    background: linear-gradient(var(--paper-deep), var(--paper-deep)),
                var(--paper);
    border-block: 1px solid var(--rule);
}

.skip-link {
    position: absolute;
    left: var(--space-2);
    top: -4rem;
    z-index: 10;
    padding: var(--space-1) var(--space-2);
    background: var(--green-dark);
    color: var(--paper);
}
.skip-link:focus { top: var(--space-1); }

/* 5. Header and navigation ----------------------------------------------------- */
.site-header {
    background: var(--green);
    color: var(--paper);
    border-bottom: 4px solid var(--barn);
    box-shadow: 0 1px 0 var(--brass) inset;
}
.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1) var(--space-3);
    padding-block: 0.9rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--paper);
    text-decoration: none;
}
.brand:hover { color: #fff; }
.brand__name {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--space-3);
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-nav a {
    display: inline-block;
    padding: 0.45rem 0;
    color: var(--paper);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { border-bottom-color: var(--brass); color: #fff; }
.site-header :focus-visible { outline-color: var(--paper); }

/* 6. Buttons, stamps and small details ------------------------------------------- */
.button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--barn);
    border-radius: var(--radius);
    background: var(--barn);
    box-shadow: 0 2px 0 var(--barn-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover {
    background: var(--barn-dark);
    border-color: var(--barn-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #5e1a14;
}
.button--quiet { background: transparent; color: var(--barn); box-shadow: none; }
.button--quiet:hover { background: var(--paper-deep); color: var(--barn-dark); box-shadow: none; }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); }

/* A divider with a small crook in the middle. */
.ornament {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 auto;
    max-width: 24rem;
    color: var(--brass);
}
.ornament::before,
.ornament::after { content: ""; flex: 1; border-top: 1px solid currentColor; opacity: 0.6; }
.ornament svg { width: 1.6rem; height: 1.6rem; }

/* A rubber-stamp look, used on the 404 pages. */
.stamp {
    display: inline-block;
    margin: 0 0 var(--space-2);
    padding: 0.2rem 0.9rem;
    border: 4px double var(--barn);
    border-radius: 4px;
    color: var(--barn);
    font-family: var(--font-heading);
    font-size: var(--step-1);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: rotate(-3deg);
    opacity: 0.92;
}

/* 7. Hero and page titles --------------------------------------------------------- */
.hero { position: relative; background: linear-gradient(#f8efd3, #f3e6c4); overflow: hidden; }
.hero__text { position: relative; padding-block: var(--space-5) var(--space-3); }
.hero__text h1 { max-width: 14ch; }
.hero__text .lead { max-width: 34rem; }
.hero__art { display: block; width: 100%; height: auto; }

/* Round seal in the corner of the hero. */
.seal {
    position: absolute;
    right: 0;
    top: var(--space-4);
    width: 9.5rem;
    height: 9.5rem;
    color: var(--barn);
    transform: rotate(8deg);
    display: none;
}
.seal text {
    fill: currentColor;
    font-family: "Zilla Slab", Georgia, serif;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.13em;
}
@media (min-width: 52rem) { .seal { display: block; } }

.page-title { padding-block: var(--space-5) var(--space-3); }
.page-title .lead { max-width: 36rem; }

/* 8. Cards, prose and quotes ---------------------------------------------------------- */
.section-head { max-width: var(--reading-width); margin-bottom: var(--space-4); }

.card-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
}
.card {
    position: relative;
    padding: var(--space-3) var(--space-3) var(--space-2);
    background: var(--paper-light);
    border: 1px solid var(--rule);
    border-top: 5px solid var(--green);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card h3 { margin-bottom: var(--space-1); }
.card__note {
    margin: 0;
    color: var(--ink-soft);
    font-style: italic;
}
.card__link { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.03em; }

.prose { max-width: var(--reading-width); }
.prose p { margin-bottom: var(--space-2); }

.quote {
    max-width: 34rem;
    margin: var(--space-4) auto 0;
    padding: var(--space-2) var(--space-3);
    border-left: 4px solid var(--barn);
    color: var(--green-dark);
    font-size: var(--step-1);
    font-style: italic;
    line-height: 1.5;
}
.quote footer {
    margin-top: var(--space-1);
    color: var(--ink-soft);
    font-family: var(--font-heading);
    font-size: var(--step--1);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* 9. Our Story ------------------------------------------------------------------------- */
.story-layout {
    display: grid;
    gap: var(--space-4);
    padding-bottom: var(--space-5);
}
@media (min-width: 60rem) {
    .story-layout { grid-template-columns: minmax(0, 1fr) 18.5rem; align-items: start; }
    .schemes { position: sticky; top: var(--space-3); }
}

.timeline {
    margin: 0;
    padding: 0;
    list-style: none;
    border-left: 3px solid var(--rule);
}
.timeline__item {
    position: relative;
    display: grid;
    gap: var(--space-1) var(--space-3);
    padding: 0 0 var(--space-4) var(--space-3);
}
.timeline__item::before {
    content: "";
    position: absolute;
    left: -0.65rem;
    top: 0.3rem;
    width: 1.15rem;
    height: 1.15rem;
    border: 3px solid var(--paper);
    border-radius: 50%;
    background: var(--barn);
    box-shadow: 0 0 0 1px var(--barn);
}
.timeline__when {
    margin: 0;
    color: var(--barn);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.timeline__body h2 { font-size: var(--step-1); }
.timeline__art {
    border: 6px solid var(--paper-light);
    border-radius: 3px;
    background: var(--paper-deep);
    box-shadow: var(--shadow);
    transform: rotate(1.2deg);
}
.timeline__item:nth-child(even) .timeline__art { transform: rotate(-1.2deg); }
@media (min-width: 45rem) {
    .timeline__item { grid-template-columns: 1fr 15.5rem; }
    .timeline__when { grid-column: 1 / -1; }
}

.schemes {
    padding: var(--space-3);
    background: var(--paper-light);
    border: 1px dashed var(--barn);
    border-radius: var(--radius);
}
.schemes h2 { font-size: var(--step-1); }
.schemes ul { margin: 0; padding: 0; list-style: none; }
.schemes li { margin-bottom: var(--space-2); }
.schemes li a { font-family: var(--font-heading); font-weight: 700; }
.schemes li span { display: block; color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; }

/* 10. The Tools ----------------------------------------------------------------------------- */
.diagram-layout {
    display: grid;
    gap: var(--space-4);
    align-items: center;
}
@media (min-width: 52rem) { .diagram-layout { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); } }

.diagram {
    margin: 0;
    padding: var(--space-2);
    background: var(--paper-light);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption {
    margin-top: var(--space-1);
    color: var(--ink-soft);
    font-size: var(--step--1);
    font-style: italic;
    text-align: center;
}
/* Highlight rings drawn on the diagram; shown for the active part. */
.diagram .halo { fill: var(--barn); opacity: 0; transition: opacity 0.15s ease; }
.diagram [data-part].is-active .halo { opacity: 0.22; }
.diagram [data-part] { cursor: pointer; }
.diagram .marker-dot { fill: var(--paper-light); stroke: var(--ink); stroke-width: 2; transition: fill 0.15s ease; }
.diagram .marker-num { fill: var(--ink); font: 700 15px "Zilla Slab", Georgia, serif; text-anchor: middle; }
.diagram [data-part].is-active .marker-dot { fill: var(--barn); stroke: var(--barn-dark); }
.diagram [data-part].is-active .marker-num { fill: #fff; }

.parts { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.part {
    display: grid;
    grid-template-columns: 2.4rem 1fr;
    gap: var(--space-2);
    padding: var(--space-2);
    background: var(--paper-light);
    border: 1px solid var(--rule);
    border-left: 5px solid var(--green);
    border-radius: var(--radius);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.part.is-active { border-left-color: var(--barn); box-shadow: var(--shadow); }
.part h3 { margin: 0 0 0.25rem; font-size: 1.25rem; }
.part p { margin: 0; }
.part__number {
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--green);
    color: var(--paper);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
}
.part.is-active .part__number { background: var(--barn); }
.hint { margin: var(--space-2) 0 0; color: var(--ink-soft); font-size: var(--step--1); font-style: italic; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: var(--space-3); }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--space-3) var(--space-4); } }
.steps li {
    position: relative;
    padding-left: 3.4rem;
    counter-increment: step;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--brass);
    border-radius: 50%;
    color: var(--brass);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}
.steps h3 { margin-bottom: 0.2rem; font-size: 1.25rem; }
.steps p { margin: 0; }

/* 11. Visit ---------------------------------------------------------------------------------- */
.visit-grid { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 52rem) { .visit-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }

.map { margin: 0; }
.map img {
    display: block;
    width: 100%;
    border: 6px solid var(--paper-light);
    border-radius: 3px;
    box-shadow: var(--shadow);
}
.map figcaption { margin-top: var(--space-1); color: var(--ink-soft); font-size: var(--step--1); font-style: italic; text-align: center; }

.season-panel {
    padding: var(--space-3);
    background: var(--paper-light);
    border: 1px solid var(--rule);
    border-top: 5px solid var(--barn);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.season-panel h2, .season-panel h3 { margin-bottom: 0.25rem; }
.season-panel__months { margin: 0 0 var(--space-2); color: var(--barn); font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: var(--step--1); }
.season-panel__hours { margin: 0 0 var(--space-1); font-size: var(--step-1); font-family: var(--font-heading); font-weight: 600; color: var(--green-dark); }

.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; }
.hours th, .hours td { padding: 0.8rem var(--space-2); border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.hours th { font-family: var(--font-heading); font-weight: 700; color: var(--green-dark); }
.hours tr.is-current { background: var(--paper-light); box-shadow: inset 5px 0 0 var(--barn); }
.hours .tag { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.5rem; border-radius: 99px; background: var(--barn); color: #fff; font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 0.1em; }
@media (max-width: 40rem) {
    .hours thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .hours, .hours tbody, .hours tr, .hours th, .hours td { display: block; }
    .hours tr { padding: var(--space-1) 0; border-bottom: 1px solid var(--rule); }
    .hours th, .hours td { padding: 0.15rem var(--space-2); border: 0; }
}

.menu { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.menu li { padding-bottom: var(--space-2); border-bottom: 1px dotted var(--brass); }
.menu li:last-child { border-bottom: 0; }
.menu strong { display: block; color: var(--green-dark); font-family: var(--font-heading); font-size: 1.2rem; }
.menu span { color: var(--ink-soft); }

details.other-seasons { margin-top: var(--space-3); }
details.other-seasons summary { cursor: pointer; color: var(--barn); font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.04em; }
details.other-seasons .card-grid { margin-top: var(--space-2); }

.season-strip {
    display: grid;
    gap: var(--space-3);
    align-items: center;
}
@media (min-width: 52rem) { .season-strip { grid-template-columns: 1.1fr 1fr; gap: var(--space-4); } }

/* Visit extras */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.now-hours { margin: var(--space-2) 0 0; }
.now-hours div { display: flex; justify-content: space-between; gap: var(--space-2); padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.now-hours dt { font-family: var(--font-heading); font-weight: 700; color: var(--green-dark); }
.now-hours dd { margin: 0; text-align: right; }
.hours__months { color: var(--ink-soft); font-size: var(--step--1); font-weight: 400; font-family: var(--font-body); }
@media (max-width: 40rem) { .hours td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); } }

/* 13. Shop: poster cards, product page, cart, checkout */
.poster-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.poster {
    background: var(--paper-light);
    border: 3px double var(--ink);
    border-radius: 4px;
    box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.poster:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: 0 2px 4px rgba(43,42,34,.15), 0 14px 26px rgba(43,42,34,.14); }
.poster { display: flex; }
.poster__link { display: flex; flex-direction: column; flex: 1; padding: var(--space-2) var(--space-2) var(--space-3); color: var(--ink); text-align: center; text-decoration: none; }
.poster__wanted { margin: 0; color: var(--ink); font-family: var(--font-heading); font-size: 2.1rem; font-weight: 700; letter-spacing: 0.22em; text-indent: 0.22em; text-transform: uppercase; line-height: 1.1; border-bottom: 2px solid var(--ink); padding-bottom: 0.15rem; }
.poster__image { display: block; width: 100%; margin: var(--space-1) 0; border: 2px solid var(--ink); background: var(--paper-deep); }
.poster__name { margin: 0.2rem 0 0; font-size: 1.35rem; }
.poster__charge { margin: 0.15rem 0 var(--space-1); color: var(--barn-dark); font-style: italic; font-size: var(--step--1); }
.poster__price { margin: auto 0 0; }
.poster__amount { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--green-dark); }
.poster__soon { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--barn); }
.poster__link:hover .poster__name { text-decoration: underline; }

.crumbs { margin: 0 0 var(--space-2); font-size: var(--step--1); color: var(--ink-soft); }
.product { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 52rem) { .product { grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); } }
.product__image { width: 100%; height: auto; border: 3px double var(--ink); background: var(--paper-deep); box-shadow: var(--shadow); }
.product__price { margin: 0 0 var(--space-2); color: var(--green-dark); font-family: var(--font-heading); font-size: 2rem; font-weight: 700; }
.buy { display: grid; gap: 0.35rem; max-width: 22rem; margin: var(--space-3) 0 var(--space-2); }
.buy label { font-family: var(--font-heading); font-weight: 700; color: var(--green-dark); margin-top: var(--space-1); }
.buy button { margin-top: var(--space-2); cursor: pointer; }
select, input[type="number"] { padding: 0.65rem 0.75rem; border: 2px solid var(--ink-soft); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; min-height: 2.9rem; }
select:focus, input[type="number"]:focus { border-color: var(--green); }
.fine { color: var(--ink-soft); font-size: var(--step--1); }
.button { cursor: pointer; }
.button--small { padding: 0.4rem 0.9rem; font-size: 0.95rem; }
.narrow-wide { max-width: 50rem; }

.cart { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.cart__line { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: var(--space-1) var(--space-2); align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid var(--rule); }
.cart__line img { border: 2px solid var(--ink); background: var(--paper-deep); }
.cart__what a { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; }
.cart__what span { display: block; color: var(--ink-soft); font-size: var(--step--1); }
.cart__qty { grid-column: 2; display: flex; gap: var(--space-1); align-items: center; }
.cart__qty input { width: 5rem; }
.cart__total { grid-column: 3; grid-row: 1; margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; }
.totals { margin: var(--space-3) 0 var(--space-1); }
.totals div { display: flex; justify-content: space-between; gap: var(--space-2); padding: 0.4rem 0; }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; }
.totals__note dd { color: var(--ink-soft); font-style: italic; }

.checkout { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 60rem) { .checkout { grid-template-columns: minmax(0, 1fr) 20rem; } .summary { position: sticky; top: var(--space-3); } }
.summary { padding: var(--space-3); background: var(--paper-light); border: 1px solid var(--rule); border-radius: var(--radius); }
.summary h2 { font-size: var(--step-1); }
.summary ul { margin: 0 0 var(--space-2); padding: 0; list-style: none; }
.summary li { display: flex; justify-content: space-between; gap: var(--space-2); padding: 0.35rem 0; border-bottom: 1px dotted var(--rule); }
.notice { display: inline-block; padding: var(--space-1) var(--space-2); background: #fff3cd; border: 1px solid #d8b24a; border-radius: var(--radius); }

/* 12. Footer ------------------------------------------------------------------------------------ */
.site-footer {
    margin-top: 0;
    padding-block: var(--space-4);
    background: var(--green-dark);
    border-top: 4px solid var(--barn);
    color: var(--paper);
}
.site-footer__inner {
    display: grid;
    gap: var(--space-3);
}
@media (min-width: 52rem) { .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; align-items: start; } }
.site-footer p { margin: 0; }
.site-footer__name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; }
.site-footer__tag { color: #d9d1b8; font-style: italic; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: #fff; }
.site-footer__fine { color: #cfc7ae; font-size: var(--step--1); }
.site-footer :focus-visible { outline-color: var(--paper); }

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