/*
Theme Name: Series Catalog
Version: 1.0.0
Description: A product catalog with individual detail pages and visible prices.
*/

:root {
    color-scheme: light;
    --ink: #171715;
    --paper: #fff;
    --surface: #f4f3f0;
    --line: #dfddd7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Inter", system-ui, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(100% - 40px, 1280px); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.header-inner a { text-decoration: none; }
.brand { font-size: 1.25rem; font-weight: 750; letter-spacing: -.045em; }
main.shell { padding-block: clamp(26px, 5vw, 68px); }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; line-height: 1.08; margin: 0 0 28px; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 34px 22px; margin: 0; padding: 0; list-style: none; }
.product-card { display: block; text-decoration: none; }
.product-card:hover h2 { text-decoration: underline; }
.product-media { background: var(--surface); }
.product-card .product-media { aspect-ratio: 1 / 1; }
.product-card img { width: 100%; height: 100%; object-fit: contain; }
.product-card h2 { font-size: 1.05rem; line-height: 1.35; margin: 12px 0 4px; }
.price { font-variant-numeric: tabular-nums; font-weight: 650; }
.back { display: inline-block; margin-bottom: 28px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 5vw, 70px); }
.product-detail .product-media img { width: 100%; }
.product-detail .price { font-size: 1.3rem; margin: 0 0 18px; }
.product-detail h1 { margin-bottom: 14px; }
.product-description { overflow-wrap: anywhere; }
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 14px; }
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid #2f5b9c; outline-offset: 4px; }
@media (max-width: 700px) {
    .product-detail { grid-template-columns: 1fr; }
    .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
    .shell { width: min(100% - 28px, 1280px); }
}
