:root {
    --ink: #241c18;
    --muted: #6d6258;
    --paper: #f6f1e7;
    --card: #fffdf8;
    --line: #e4d7c6;
    --oxblood: #8c3a3a;
    --oxblood-dark: #6e2c2c;
    --brass: #e6b15a;
    --brass-dark: #c4923d;
    --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
    --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 1.05rem;
    line-height: 1.5;
}
a { color: var(--oxblood-dark); }
a:hover { color: var(--oxblood); }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 0.4em; }
h2 { font-size: 1.7rem; }
.skip {
    position: absolute;
    left: 0.5rem;
    top: -3rem;
    background: var(--ink);
    color: white;
    padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.5rem; }
.site-header, main, .site-footer { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.site-header { padding-top: 1rem; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.2rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a[aria-current="page"], .basket { font-weight: 700; }
.nav-toggle { position: absolute; left: -999px; }
.nav-button { display: none; border: 1px solid var(--ink); padding: 0.35rem 0.7rem; }
.search { display: flex; gap: 0.4rem; margin: 0.8rem 0 1.2rem; }
.search input, form input, form textarea, form select {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    font: inherit;
}
.search input { max-width: 28rem; }
form label { display: block; margin: 0.8rem 0; font-weight: 600; }
form label input, form label textarea, form label select { margin-top: 0.3rem; font-weight: 400; }
.check { display: flex; align-items: center; gap: 0.5rem; }
.check input { width: auto; }
button, .button {
    display: inline-block;
    background: var(--oxblood);
    color: #fffdf8;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { background: var(--oxblood-dark); color: white; }
.button-ghost, button.button-ghost { background: transparent; color: var(--oxblood-dark); border: 1px solid var(--oxblood); }
.button-ghost:hover { background: white; }
.hero, .product, .split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.5rem; align-items: start; }
.hero { padding: 1rem 0 2rem; }
.eyebrow { letter-spacing: 0.08em; text-transform: uppercase; color: var(--oxblood); font-weight: 700; margin: 0; }
.lede { font-size: 1.2rem; }
.hero-panel, .buy, .card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.hero-panel p { margin: 0.4rem 0; }
.hero-actions, .card-foot { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.steps ol { padding-left: 1.2rem; }
.steps li { margin: 0.4rem 0; }
.category-grid, .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.9rem; }
.category-tile {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 8rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--ink);
    background: var(--ink);
    color: var(--paper);
    border-radius: 14px;
}
.category-tile small { color: #f0e2c8; }
.category-tile:nth-child(3n) { background: var(--oxblood); }
.category-tile:nth-child(3n) small { color: #f6e6e0; }
.category-tile:hover { color: white; }
.card h3 { margin: 0.2rem 0 0.4rem; font-size: 1.25rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card p { color: var(--muted); }
.kind { margin: 0; color: var(--oxblood); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.price { font-family: var(--serif); font-size: 1.6rem; }
.badge { display: inline-block; background: var(--brass); color: var(--ink); border-radius: 999px; padding: 0.2rem 0.6rem; font-size: 0.85rem; font-weight: 700; }
.buy { display: flex; flex-direction: column; align-items: stretch; gap: 0.7rem; }
.buy p { margin: 0; }
.buy form { margin: 0; max-width: none; }
.buy .button, .buy button { width: 100%; text-align: center; }
.page-head { margin-bottom: 1rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.35rem; color: var(--muted); margin-bottom: 1rem; }
.questions li { margin: 0.8rem 0; }
.questions details { margin-top: 0.2rem; }
.lines { width: 100%; border-collapse: collapse; background: var(--card); }
.lines th, .lines td { text-align: left; padding: 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.total { font-size: 1.3rem; font-weight: 700; }
.plain { padding-left: 1.1rem; }
.flash { padding: 0.7rem 0.9rem; border-radius: 10px; }
.flash-ok { background: #e5f2e6; }
.flash-error { background: #f8e4e0; }
.flash-info { background: #f8efd8; }
.prose { max-width: 42rem; }
.split form, form { max-width: 36rem; }
.hp { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.site-footer { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; padding: 2rem 0 3rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; max-width: 36rem; }
.site-footer a { color: var(--ink); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid var(--brass-dark);
    outline-offset: 2px;
}
@media (max-width: 760px) {
    .hero, .product, .split { grid-template-columns: 1fr; }
    .nav-button { display: inline-block; margin-left: auto; }
    .nav { display: none; flex-basis: 100%; margin-left: 0; padding-bottom: 0.4rem; }
    .nav-toggle:checked ~ .nav { display: flex; flex-direction: column; }
}
