:root {
    color-scheme: light;
    --ink: #151515;
    --paper: #f7f7f5;
    --white: #fff;
    --accent: #ff751d;
    --accent-text: #a33800;
    --muted: #60605c;
    --line: #dcdcd6;
    font-family: "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 3px solid #d84c00;
    outline-offset: 3px;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
form, h1, h2, h3, p { margin: 0; }
p + p { margin-top: .85rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.25rem, 5.3vw, 4.85rem); font-weight: 790; }
h2 { font-size: clamp(1.55rem, 3vw, 2.55rem); font-weight: 750; }
h3 { font-size: 1.25rem; }
h3 a, .brand, nav a { text-decoration: none; }
h3 a:hover, nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.wrap { width: min(100% - clamp(2rem, 9vw, 9rem), 79rem); margin-inline: auto; }
.section { padding-block: clamp(2.4rem, 7vw, 6rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.section > p:first-child { margin-bottom: 1.5rem; }
.site-header, .site-footer { color: #fff; background: #151515; }
.site-header { border-bottom: 1px solid #ffffff22; }
.header-row, .footer-row { display: flex; min-height: 5rem; gap: 1.5rem; align-items: center; justify-content: space-between; }
.footer-row { padding-block: 1.25rem; color: #dadad6; font-size: .9375rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.04rem; font-weight: 900; letter-spacing: .07em; line-height: 1; color: #fff; flex: none; }
.brand-mark { width: 2.45rem; aspect-ratio: 1.13; background: var(--accent); clip-path: polygon(50% 4%, 100% 93%, 0 93%); }
.brand-logo { width: auto; max-width: 10rem; max-height: 3rem; object-fit: contain; }
.header-row nav, .header-actions, .actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.85rem, 2vw, 1.8rem); }
.header-row nav a, .locale { font-size: .9375rem; font-weight: 650; }
.header-row nav a[aria-current] { color: #ffa66e; }
.locale { border: 1px solid #777; padding: .36rem .62rem; text-decoration: none; }
.count { font-size: .875rem; margin-left: .7rem; padding-left: .7rem; border-left: 1px solid #0005; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: .68rem 1.15rem;
    border: 1px solid transparent;
    border-radius: .25rem;
    color: #151515;
    background: var(--accent);
    font-weight: 760;
    line-height: 1.2;
    text-decoration: none;
}
.button:hover { background: #ff934e; }
.button.small { min-height: 2.55rem; font-size: .875rem; padding: .55rem .8rem; }
.button.light { border-color: #fff8; color: #fff; background: transparent; }
.button.light:hover { background: #fff2; }
.button.outline { border-color: #969691; background: transparent; }
.button.outline:hover { background: #fff0e4; border-color: var(--accent-text); }
.button.danger { color: #8c200f; background: transparent; border-color: #b54a39; }
.button.danger:hover { background: #ffede9; }
.text-link { color: var(--accent-text); font-weight: 720; text-decoration: underline; text-underline-offset: .24em; }
button.text-link { padding: .3rem 0; border: 0; background: transparent; }
.skip { position: absolute; z-index: 2; top: .5rem; left: .5rem; padding: .65rem; background: #fff; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.hero {
    display: grid;
    align-items: center;
    min-height: clamp(30rem, 48vw, 42rem);
    color: #fff;
    background: linear-gradient(116deg, #101010 48%, #2c231c 100%);
    isolation: isolate;
    position: relative;
}
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: 60% center; }
.hero::after { content: ""; background: linear-gradient(90deg, #101010ed 1%, #101010b5 38%, #10101015 84%); }
.hero-content { padding-block: 4.75rem; }
.hero h1 { max-width: 12ch; }
.hero-content > p:not(.eyebrow) { max-width: 28rem; font-size: 1.125rem; color: #eeeeeb; margin: 1.25rem 0 1.7rem; }
.eyebrow { color: var(--accent-text); font-size: .875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; margin-bottom: .85rem; }
.hero .eyebrow { color: #ffa66e; }
.chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.45rem; }
.chips a { border: 1px solid var(--line); background: #fff; padding: .45rem .8rem; border-radius: .2rem; text-decoration: none; }
.chips a:hover { border-color: var(--accent-text); }
.product-grid, .metric-grid { display: grid; gap: 1.15rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card, .panel, .empty, .table-scroll { background: #fff; border: 1px solid var(--line); border-radius: .35rem; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-image, .detail-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f1f1ee; }
.placeholder { display: grid; place-items: center; color: #5c5c57; }
.card-body { flex: 1; padding: 1.15rem; display: grid; justify-items: start; gap: .55rem; }
.card-body .eyebrow { margin: 0; }
.card-body form { margin-top: .25rem; }
.muted { color: var(--muted); font-size: .9375rem; }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: .8rem; padding: 1rem; background: #ecece8; margin-bottom: 1.3rem; }
.filters label { min-width: min(15rem, 100%); }
label { display: grid; gap: .35rem; font-size: .9375rem; font-weight: 670; }
input:not([type=checkbox]), select, textarea {
    width: 100%;
    min-height: 2.9rem;
    padding: .58rem .7rem;
    border: 1px solid #898983;
    border-radius: .2rem;
    color: var(--ink);
    background: #fff;
    font-weight: 400;
}
select {
    appearance: none;
    padding-right: 2.2rem;
    background-image: linear-gradient(45deg, transparent 50%, #222 50%), linear-gradient(135deg, #222 50%, transparent 50%);
    background-position: calc(100% - 1rem) center, calc(100% - .68rem) center;
    background-size: .32rem .32rem;
    background-repeat: no-repeat;
}
textarea { resize: vertical; }
.empty, .panel { padding: clamp(1rem, 3vw, 1.55rem); overflow-wrap: anywhere; }
.panel h2 { font-size: 1.4rem; margin-bottom: .65rem; }
.panel p + p { margin-top: .65rem; }
.detail-grid, .quote-grid, .two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.detail-grid h1 { font-size: clamp(2rem, 4vw, 3.6rem); }
.detail-grid p:not(.eyebrow), .detail-grid form { margin-top: .85rem; }
.thumbnails, .photo-grid { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .7rem; }
.thumb { height: 5rem; width: 6.5rem; object-fit: contain; background: #eee; border: 1px solid var(--line); }
.spec-title, .subhead { margin: 1.8rem 0 1rem; font-size: 1.5rem; }
.spec-list { margin: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 750; overflow-wrap: anywhere; }
.spec-list dd { margin: 0; overflow-wrap: anywhere; }
.quote-item { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem auto; gap: .7rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.quote-item a { font-weight: 700; }
.quote-item input { padding-inline: .35rem; }
.stack { display: grid; gap: 1rem; align-content: start; }
.stack > .button, .stack > .text-link { justify-self: start; }
.check { display: flex; gap: .5rem; align-items: center; }
.check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent-text); }
.prose { max-width: 47rem; }
.prose > h1 { margin-bottom: 1rem; }
.prose > .button { margin-top: .5rem; }
.prose > p + .button { margin-top: 1rem; }
.notice { padding: .85rem 1rem; color: #452000; background: #ffead8; border: 1px solid #e8ba95; }
.flash-area { padding-top: 1.15rem; }
.login { max-width: 29rem; margin-inline: auto; }
.admin h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
.admin .header-row { padding-block: .65rem; }
.admin .header-row nav { gap: .55rem 1rem; }
.admin .section { padding-block: 2.7rem; }
.admin .metric-grid + p { margin-top: 1.2rem; }
.metric { text-decoration: none; display: grid; gap: .15rem; font-weight: 650; }
.metric strong { color: var(--accent-text); font-size: 2rem; }
.metric:hover { border-color: var(--accent-text); }
.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); }
th { background: #ebebe8; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); padding: 1rem; }
legend { font-weight: 750; }
.delete-row { margin-top: 1rem; }
.pagination { display: flex; gap: 1.1rem; align-items: center; margin-top: 1rem; }
.pagination a { text-decoration: underline; }
@media (max-width: 850px) {
    .header-row { gap: .8rem; flex-wrap: wrap; padding-block: .85rem; }
    .admin .header-row nav { order: 3; width: 100%; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
    .catalog .header-row nav { order: 3; width: 100%; }
    .header-row .brand { font-size: .875rem; }
    .brand-mark { width: 1.85rem; }
    .brand-logo { max-width: 6.8rem; }
    .header-actions { gap: .4rem; }
    .hero { min-height: 28rem; }
    .hero::after { background: linear-gradient(90deg, #101010ea, #10101080); }
    .hero-content { padding-block: 3.2rem; }
    .product-grid, .metric-grid, .detail-grid, .quote-grid, .two-cols { grid-template-columns: 1fr; }
    .footer-row { flex-wrap: wrap; }
}
