:root {
  --ink: #2b2124;
  --muted: #6b5d61;
  --line: #e9dfe0;
  --bg: #ffffff;
  --blush: #fbf1f1;
  --accent: #b61745; /* Barberry: buttons and links only */
  --accent-dark: #8f1036;
  --radius: 10px;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 40px; padding-bottom: 40px; }
.small { font-size: .875rem; color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
mark.todo { background: #fff3b0; color: #5a4300; font-size: .85em; padding: 0 3px; border-radius: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 6px; }
.logo img { width: 180px; height: auto; }
.bag-link { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 4px; }
.bag-count { display: inline-block; min-width: 1.5em; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .8rem; text-align: center; }
.main-nav { display: flex; gap: 22px; overflow-x: auto; padding-bottom: 10px; white-space: nowrap; scrollbar-width: none; }
.main-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a[aria-current] { border-color: var(--accent); }
.main-nav a:hover { color: var(--accent); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); padding: 12px 24px; border-radius: 999px; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--blush); color: var(--accent-dark); }
.btn-wide { width: 100%; }
.btn[disabled] { background: #cbbfc2; border-color: #cbbfc2; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 16px; align-items: center; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-img { border-radius: var(--radius); width: 100%; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1.25fr; gap: 48px; padding-top: 48px; }
}

/* Grid + cards */
.grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card a { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.card img { border-radius: var(--radius); margin-bottom: 8px; aspect-ratio: 4 / 5; object-fit: contain; background: #fff; }
.card-name { font-family: var(--serif); font-size: 1.2rem; }
.card-type { font-size: .85rem; color: var(--muted); }
.card-price { font-weight: 600; }
.card a:hover .card-name { color: var(--accent); }

.band { background: var(--blush); }
.cols { display: grid; gap: 24px; }
@media (min-width: 760px) { .cols { grid-template-columns: repeat(3, 1fr); } }
.intro { max-width: 760px; }
.prose h2 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }

/* Product */
.product { display: grid; gap: 24px; padding-top: 16px; }
@media (min-width: 900px) { .product { grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; } .buy { position: sticky; top: 16px; } }
.gallery { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery li { flex: 0 0 88%; scroll-snap-align: start; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: contain; background: #fff; border: 1px solid var(--line); }
@media (min-width: 900px) { .gallery { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; } .gallery li:first-child { grid-column: 1 / -1; } }
.buy h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.buy h1 .sub { display: block; font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-top: 6px; font-weight: 400; }
.price { font-size: 1.4rem; font-weight: 600; }
fieldset { border: 0; margin: 0 0 16px; padding: 0; }
legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
legend a { font-weight: 400; }
.opt { display: inline-block; margin: 0 6px 8px 0; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-block; min-width: 52px; text-align: center; padding: 9px 14px; border: 1px solid #b9aeb1; border-radius: 999px; cursor: pointer; }
.opt input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt input.soldout + span { color: #8a7f82; text-decoration: line-through; border-style: dashed; }
fieldset.single .opt span { cursor: default; }
.stock-note { min-height: 1.6em; font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.added { margin-top: 10px; background: var(--blush); padding: 10px 14px; border-radius: var(--radius); }
.fit-note { padding: 14px 0 14px 1.2em; margin: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style-position: outside; }
.qa p { margin: 0 0 14px; }
.faq-title { margin-top: 0; }

/* Size chart */
.chart { margin: 16px 0 24px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
thead th { background: var(--blush); }

/* Cart */
.cart-lines { list-style: none; padding: 0; margin: 0 0 24px; }
.cart-line { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { border-radius: 8px; border: 1px solid var(--line); }
.cart-line .meta { font-size: .9rem; color: var(--muted); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.qty button, .link-btn { font: inherit; background: none; border: 1px solid #b9aeb1; border-radius: 999px; width: 34px; height: 34px; cursor: pointer; color: var(--ink); }
.qty .link-btn, .link-btn { border: 0; width: auto; height: auto; color: var(--accent); text-decoration: underline; padding: 0; margin-left: 10px; font-size: .9rem; }
.cart-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ship-to { display: grid; gap: 6px; margin-bottom: 16px; max-width: 360px; }
.ship-to label { font-weight: 600; }
.ship-to select, .ship-to input { font: inherit; padding: 10px 12px; border: 1px solid #b9aeb1; border-radius: 8px; background: #fff; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.error { color: #9b1029; background: #fdecee; padding: 10px 14px; border-radius: var(--radius); }

/* Footer */
.site-footer { margin-top: 48px; background: var(--blush); padding: 32px 0 16px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.site-footer h2 { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.site-footer a { display: block; color: var(--ink); text-decoration: none; padding: 4px 0; }
.site-footer a:hover { color: var(--accent); }
.site-footer .small { margin-top: 24px; }

/* Notify me + newsletter */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify { background: var(--blush); border-radius: var(--radius); padding: 16px; margin: 4px 0 8px; }
.notify p { margin-bottom: 10px; }
.notify-row { display: flex; gap: 8px; flex-wrap: wrap; }
.notify-row input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 11px 16px; border: 1px solid #b9aeb1; border-radius: 999px; background: #fff; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; margin-top: 10px; }
.check input { margin-top: 4px; }
.notify [data-notify-msg], .signup [data-notify-msg] { margin: 8px 0 0; min-height: 1.4em; }
.signup { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.site-footer .signup h2 { font-family: var(--serif); font-size: 1.5rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.signup .notify-row { max-width: 480px; }
