@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #e4ebef;
  --paper: #f7f9fa;
  --ink: #1a242b;
  --muted: #3d4e58;
  --line: #c5d0d6;
  --accent: #9d2c2c;
  --accent-ink: #fffaf8;
  --hero: #243038;
  --hero-text: #f3f6f7;
  --hero-muted: #c9d3d8;
  --focus: #9d2c2c;
  --shadow: 0 10px 28px rgb(26 36 43 / 12%);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12181c;
    --paper: #1b242a;
    --ink: #e7eef1;
    --muted: #b7c4cc;
    --line: #314049;
    --accent: #e7a197;
    --accent-ink: #2a1212;
    --hero: #0e1418;
    --hero-text: #e7eef1;
    --hero-muted: #b7c4cc;
    --focus: #e7a197;
    --shadow: 0 10px 28px rgb(0 0 0 / 28%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0 0 0.6rem; }
p { margin: 0 0 0.8rem; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 3px solid var(--accent);
  height: 64px;
}
.bar {
  height: 64px;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.logo {
  font-weight: 700;
  text-decoration: none;
  font-size: 1.25rem;
  margin-right: auto;
}
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { text-decoration: none; font-weight: 700; }
.nav-toggle { display: none; }
.cart-count {
  display: inline-block;
  min-width: 1.3rem;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.8rem;
  padding: 0 0.3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  background: var(--hero);
  color: var(--hero-text);
}
.hero-photo { min-height: 320px; max-height: 70vh; overflow: hidden; background: #1a242b; }
.hero-photo img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; }
.hero-copy {
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-copy .lede { color: var(--hero-muted); max-width: 36rem; margin-bottom: 1.1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { color: var(--accent-ink); filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent;
  color: var(--hero-text);
  border-color: var(--hero-muted);
}
.btn-ghost:hover { color: var(--hero-text); }
.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-line:hover { color: var(--ink); }
.btn-pay {
  background: #f4f7f8;
  color: #1a242b;
  border-color: #1a242b;
}
.btn-pay:hover { color: #1a242b; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.notice {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}
.notice p { margin: 0; max-width: 70ch; }

.section { padding: 2.5rem 0; }
.ledger { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 112px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row img { width: 112px; height: 84px; object-fit: cover; background: var(--paper); }
.row strong { display: block; }
.row .price { font-weight: 700; color: var(--accent); white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-bottom: 0.5rem; }
.filters a { font-weight: 700; text-decoration: none; }
.filters a[aria-current="page"] { color: var(--accent); }

.prose { max-width: 65ch; }
.prose h2 { margin-top: 1.6rem; }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.buy-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper); }
.price-lg { font-size: 1.8rem; font-weight: 700; color: var(--accent); margin: 0.2rem 0 0.6rem; }
.notes { padding-left: 1.1rem; margin: 0.4rem 0 1rem; }
.qty-row { display: flex; gap: 0.6rem; align-items: end; margin: 0.8rem 0 1rem; }
label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  border-radius: 0;
}
textarea { min-height: 8rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #4d5e68; }
.field { margin-bottom: 0.9rem; }
.hint, .error { margin: 0.3rem 0 0; font-size: 0.95rem; }
.error { color: var(--accent); }
.phone-row { display: grid; grid-template-columns: 15rem 1fr; gap: 0.6rem; }
.hp { position: absolute; left: -9999px; }

.bag-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.5rem; align-items: start; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 0.7rem; align-items: center; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.bag-line img { width: 72px; height: 54px; object-fit: cover; }
.pay-note { background: var(--paper); padding: 0.9rem 1rem; border: 1px solid var(--line); }
.paypal-mark { height: 18px; width: auto; margin-right: 0.45rem; }
.status { min-height: 1.4rem; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; background: var(--paper); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.5rem; }
.foot a { display: block; text-decoration: none; margin: 0.2rem 0; }
.foot-base { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.foot-base button { background: none; border: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; min-height: 44px; }

.cookie {
  position: fixed;
  z-index: 30;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.cookie p { margin: 0; max-width: 70ch; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie .btn { min-width: 7rem; }

.check { list-style: none; padding: 0; margin: 0; }
.check li { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 800px) {
  .hero, .split, .bag-layout, .foot { grid-template-columns: 1fr; }
  .hero-photo, .hero-photo img { max-height: 38vh; min-height: 180px; }
  .hero-copy { padding: 1.25rem 1rem 1.5rem; }
  .row { grid-template-columns: 88px 1fr; }
  .row .price { grid-column: 2; }
  .phone-row { grid-template-columns: 1fr; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.7rem;
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
    font: inherit;
    font-weight: 700;
  }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1rem 1rem;
    gap: 0.2rem;
  }
  .nav.is-open { display: flex; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
  .cookie { flex-direction: column; align-items: stretch; }
  .foot-base { flex-direction: column; align-items: flex-start; }
}

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