/* ------------------------------------------------------------------
   Boltcraft — stylesheet
   Source file. Edited here, copied verbatim into /public by the build.

   Every value in the "Design tokens" block below comes straight out of
   the Claude Design prototype (Forge & Filament Store.dc.html), which
   used inline styles. Don't invent new colours or spacing steps — reuse
   these, so the site stays consistent with the design as it grows.
   ------------------------------------------------------------------ */

:root {
  --paper: #f4efe6;
  --paper-card: #fbf8f2;
  --paper-footer: #efe8dc;
  --paper-hover: #e9e1d3;
  --ink: #1a1714;
  --ink-soft: #4d453c;
  --ink-muted: #6b6156;
  --ink-faint: #8a7f70;
  --ink-ghost: #a0968a;
  --rust: #b0552c;
  --rust-dark: #8d4222;
  --rust-light: #c8663a;
  --rust-pale: #d99a6c;
  --line: #ddd3c2;
  --line-dashed: #c9bda9;
  --dark-line: #3b342c;
  --dark-body: #c6bdb0;
  --shot-a: #e6ddcc;
  --shot-b: #ece5d8;

  --wrap: 1240px;
  --pad: 32px;

  --sans: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

a { color: var(--rust); text-decoration: none; }
a:hover { color: var(--rust-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

input, textarea, select, button { font-family: inherit; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.mono {
  font-family: var(--mono);
}

.hidden { display: none !important; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wordmark-kicker {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.main-nav a {
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); text-decoration: none; }
.main-nav a.accent { color: var(--rust); }
.main-nav a.accent:hover { border-bottom-color: var(--rust); }
.main-nav a.active { border-bottom-color: var(--ink); }
.main-nav a.accent.active { border-bottom-color: var(--rust); }

.header-spacer { flex: 1; }

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 8px 12px;
  width: 240px;
  flex: 0 0 240px;
  min-width: 180px;
}
.search-form .slash {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-ghost);
}
.search-form input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
  padding: 0;
}

.cart-link {
  font-family: var(--mono);
  font-size: 13px;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  white-space: nowrap;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.cart-link:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.nav-toggle { display: none; }

/* ------------------------------------------------------------------
   Shared bits
   ------------------------------------------------------------------ */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--rust);
}

.label-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}

.section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px var(--pad) 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 28px;
}
.section-head h2 { font-size: 26px; margin: 0; }
.section-head .more {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--rust);
  white-space: nowrap;
}

.page-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.page-head h1 { font-size: 32px; margin: 10px 0 0; letter-spacing: -0.02em; }
.page-head p { font-size: 14px; color: var(--ink-muted); margin: 8px 0 0; }

.btn {
  display: inline-block;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 26px;
  border: 1px solid transparent;
  font-family: inherit;
  text-align: center;
}
.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid:hover { background: var(--rust); color: var(--paper); text-decoration: none; }
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--paper-hover); color: var(--ink); text-decoration: none; }
.btn-rust {
  background: var(--rust);
  color: var(--paper);
}
.btn-rust:hover { background: var(--rust-light); color: var(--paper); text-decoration: none; }
.btn[disabled] { opacity: 0.55; cursor: default; }

/* Product / category imagery. The hatched fill is the prototype's
   placeholder look — it stays as the <img> background so a slow or
   missing image still reads as intentional rather than broken. */
.shot {
  position: relative;
  background: repeating-linear-gradient(45deg, var(--shot-a) 0 10px, var(--shot-b) 10px 20px);
  overflow: hidden;
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot-square { aspect-ratio: 1; }
.shot-wide { aspect-ratio: 16 / 10; }
.shot-hero { aspect-ratio: 4 / 3; }
.shot-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  background: var(--paper);
  padding: 4px 7px;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------
   Product cards
   ------------------------------------------------------------------ */

.product-grid {
  display: grid;
  gap: 22px;
}
.product-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

.product-card {
  display: block;
  color: var(--ink);
}
.product-card:hover { text-decoration: none; color: var(--ink); }
.product-card:hover .product-card-name { text-decoration: underline; }
.product-card-meta {
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.product-card-name { font-size: 15px; font-weight: 600; }
.product-card-price { font-family: var(--mono); font-size: 14px; }
.product-card-material {
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 3px;
}

/* ------------------------------------------------------------------
   Home
   ------------------------------------------------------------------ */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px var(--pad) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero .eyebrow { display: block; margin-bottom: 20px; }
.hero h1 {
  font-size: 60px;
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-specs {
  display: flex;
  gap: 26px;
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  flex-wrap: wrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.category-card {
  border: 1px solid var(--line);
  background: var(--paper-card);
  color: var(--ink);
  display: block;
}
.category-card:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }
.category-card-body { padding: 16px 18px 18px; }
.category-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.category-card-name { font-size: 17px; font-weight: 600; }
.category-card-count { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); }
.category-card p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.custom-band {
  max-width: var(--wrap);
  margin: 72px auto 0;
  padding: 0 var(--pad);
}
.custom-band-inner {
  background: var(--ink);
  color: var(--paper);
  padding: 52px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.custom-band .eyebrow { color: var(--rust-pale); display: block; margin-bottom: 16px; }
.custom-band h2 {
  font-size: 34px;
  margin: 0 0 14px;
  line-height: 1.15;
}
.custom-band p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-body);
  margin: 0 0 26px;
  max-width: 46ch;
}
.custom-steps {
  display: grid;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dark-body);
}
.custom-steps div {
  border-top: 1px solid var(--dark-line);
  padding-top: 12px;
}

.home-tail { height: 90px; }

/* ------------------------------------------------------------------
   Browse (shop) — sidebar filters + grid
   ------------------------------------------------------------------ */

.browse {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--pad) 90px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: start;
}

.filters .label-mono { display: block; margin-bottom: 14px; }
.filter-group { display: grid; gap: 9px; font-size: 14px; margin-bottom: 32px; }
.filter-group.tight { gap: 2px; }
.filter-group label {
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
}
.filter-group input[type="checkbox"] { accent-color: var(--ink); margin: 0; }

.filter-cat {
  cursor: pointer;
  font-size: 14px;
  padding: 7px 10px;
  margin-left: -10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--ink);
  background: transparent;
  border: 0;
  text-align: left;
  width: calc(100% + 10px);
  font-weight: 400;
}
.filter-cat:hover { background: var(--paper-hover); text-decoration: none; color: var(--ink); }
.filter-cat .n { font-family: var(--mono); font-size: 11px; opacity: 0.55; }
.filter-cat.active { background: var(--ink); color: var(--paper); }
.filter-cat.active:hover { background: var(--ink); color: var(--paper); }

.browse-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 26px;
}
.browse-head h1 { font-size: 30px; margin: 0; }
.browse-count { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

.browse-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 68ch;
  margin: -8px 0 26px;
}

.no-results {
  border: 1px dashed var(--line-dashed);
  background: var(--paper-card);
  padding: 44px 34px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 15px;
}

/* ------------------------------------------------------------------
   Search
   ------------------------------------------------------------------ */

.suggestions {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  align-items: center;
}
.suggestions .label-mono { margin: 0; letter-spacing: 0.08em; font-size: 11px; }
.chip {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--paper-card);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

.callout {
  margin-top: 56px;
  border: 1px dashed var(--line-dashed);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--paper-card);
}
.callout h3 { margin: 0 0 6px; font-size: 20px; }
.callout p { margin: 0; font-size: 15px; color: var(--ink-muted); }
.callout .btn { padding: 13px 24px; white-space: nowrap; }

/* ------------------------------------------------------------------
   Product detail
   ------------------------------------------------------------------ */

.product-page {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px var(--pad) 90px;
}

.breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-bottom: 26px;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li:not(:last-child)::after { content: " /"; color: var(--ink-faint); }
.breadcrumb a { color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--ink); }

.product-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.product-thumb {
  aspect-ratio: 1;
  background: repeating-linear-gradient(45deg, var(--shot-a) 0 8px, var(--shot-b) 8px 16px);
  border: 1px solid transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.product-thumb.active { border-color: var(--ink); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-detail .label-mono { display: block; margin-bottom: 10px; }
.product-detail .tag-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--rust);
  margin-bottom: 12px;
}
.product-detail h1 {
  font-size: 38px;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.product-price {
  font-family: var(--mono);
  font-size: 22px;
  margin-bottom: 22px;
}
.product-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 28px;
  text-wrap: pretty;
}

.swatches { display: flex; gap: 10px; margin-bottom: 26px; }
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  outline: 1px solid var(--line);
  outline-offset: 3px;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.swatch.active { outline: 2px solid var(--ink); }

.size-options { display: flex; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.size-option {
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.size-option.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.buy-row { display: flex; gap: 12px; margin-bottom: 30px; }
.buy-row .btn-solid { flex: 1; padding: 16px 26px; font-size: 16px; }
.buy-row .btn-outline { padding: 16px 22px; font-size: 15px; }

.specs { border-top: 1px solid var(--line); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-row dt {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin: 0;
}
.spec-row dd { margin: 0; text-align: right; }

.related { margin-top: 80px; }
.related .section-head h2 { font-size: 24px; }

/* ------------------------------------------------------------------
   Custom request
   ------------------------------------------------------------------ */

.narrow-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 48px var(--pad) 90px;
}

.custom-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 36px;
}
.custom-head h1 { font-size: 40px; margin: 12px 0 10px; letter-spacing: -0.025em; }
.custom-head p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
  line-height: 1.6;
}

.custom-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-stack { display: grid; gap: 26px; }
.field label,
.field .field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field .hint {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 10px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

input[type="text"],
input[type="email"],
input[type="search"],
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--line);
  background: #ffffff;
  outline: none;
  color: var(--ink);
  border-radius: 0;
}
textarea {
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}
input:focus, textarea:focus { border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--ink-ghost); }

.dropzone {
  cursor: pointer;
  border: 1px dashed var(--line-dashed);
  background: var(--paper-card);
  padding: 34px;
  text-align: center;
  display: block;
  width: 100%;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--rust);
  background: #f7f2e8;
}
.dropzone-label { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); }
.dropzone-hint { font-size: 12px; color: var(--ink-faint); margin-top: 7px; }

.submit-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.submit-row .btn { padding: 15px 30px; font-size: 16px; }
.submit-note { font-size: 13px; color: var(--ink-faint); }

.aside-card {
  border: 1px solid var(--line);
  background: var(--paper-card);
  padding: 28px 30px;
}
.aside-card .label-mono { display: block; margin-bottom: 18px; }
.aside-list {
  display: grid;
  gap: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.aside-list strong { color: var(--ink); }
.aside-foot {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.form-success {
  border: 1px solid var(--ink);
  background: var(--paper-card);
  padding: 44px 46px;
}
.form-success .label-mono {
  color: var(--rust);
  letter-spacing: 0.1em;
  font-size: 12px;
  margin-bottom: 14px;
}
.form-success h2 { font-size: 28px; margin: 0 0 12px; }
.form-success p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 26px;
  line-height: 1.6;
  max-width: 56ch;
}
.form-success .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-success .btn { padding: 13px 24px; }

.form-error {
  border: 1px solid var(--rust);
  background: #f9ece3;
  color: var(--rust-dark);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
}

/* ------------------------------------------------------------------
   Cart
   ------------------------------------------------------------------ */

.cart-page {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px var(--pad) 90px;
}
.cart-page h1 { font-size: 36px; margin: 0 0 26px; letter-spacing: -0.025em; }

.cart-empty {
  border: 1px dashed var(--line-dashed);
  background: var(--paper-card);
  padding: 60px;
  text-align: center;
}
.cart-empty p { font-size: 17px; color: var(--ink-soft); margin: 0 0 22px; }
.cart-empty .btn { padding: 13px 26px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-line-shot {
  aspect-ratio: 1;
  background: repeating-linear-gradient(45deg, var(--shot-a) 0 8px, var(--shot-b) 8px 16px);
  overflow: hidden;
}
.cart-line-shot img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-name { font-size: 16px; font-weight: 600; }
.cart-line-name a { color: var(--ink); }
.cart-line-variant { font-size: 13px; color: var(--ink-muted); margin-top: 4px; }
.cart-line-remove {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
  display: inline-block;
  text-decoration: underline;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.cart-line-remove:hover { color: var(--ink); }
.cart-line-right { display: flex; align-items: center; gap: 18px; }
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
}
.qty button {
  padding: 7px 12px;
  font-family: var(--mono);
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
}
.qty button:hover { background: var(--paper-hover); }
.qty .n {
  padding: 7px 6px;
  font-family: var(--mono);
  font-size: 14px;
  min-width: 22px;
  text-align: center;
}
.cart-line-total {
  font-family: var(--mono);
  font-size: 15px;
  min-width: 70px;
  text-align: right;
}

.shipping-block { margin-top: 40px; }
.shipping-block h2 { font-size: 22px; margin: 0 0 20px; }
.shipping-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.shipping-grid .span-2 { grid-column: span 2; }

.summary {
  border: 1px solid var(--line);
  background: var(--paper-card);
  padding: 28px 30px;
  position: sticky;
  top: 100px;
}
.summary .label-mono { display: block; margin-bottom: 20px; }
.summary-rows { display: grid; gap: 12px; font-size: 15px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-row span:first-child { color: var(--ink-soft); }
.summary-row span:last-child { font-family: var(--mono); }
.summary-total {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.summary-total .t { font-size: 17px; font-weight: 600; }
.summary-total .v { font-family: var(--mono); font-size: 22px; }
.summary .btn {
  display: block;
  width: 100%;
  padding: 15px;
  font-size: 16px;
  margin-top: 24px;
}
.summary-note {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 16px;
  line-height: 1.55;
}

/* ------------------------------------------------------------------
   Article / guide pages, blog
   ------------------------------------------------------------------ */

.prose-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px var(--pad) 90px;
}
.prose-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 34px; }
.prose-head h1 { font-size: 40px; margin: 12px 0 12px; letter-spacing: -0.025em; line-height: 1.08; }
.prose-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.prose h2 {
  font-size: 24px;
  margin: 44px 0 14px;
  letter-spacing: -0.02em;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 68ch;
  text-wrap: pretty;
}
.prose ul {
  margin: 0 0 16px;
  padding-left: 20px;
  max-width: 68ch;
}
.prose li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.prose dl.kv {
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
  max-width: 68ch;
}
.prose dl.kv > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.prose dl.kv dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0;
  flex: 0 0 auto;
}
.prose dl.kv dd { margin: 0; text-align: right; color: var(--ink-soft); }

.faq { border-top: 1px solid var(--line); margin-top: 44px; }
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 17px; margin: 0 0 8px; }
.faq-item p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; max-width: 68ch; }

.post-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.post-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.post-list-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  display: block;
  color: var(--ink);
}
.post-list-item:hover { text-decoration: none; color: var(--ink); }
.post-list-item:hover h2 { color: var(--rust); }
.post-list-item h2 { font-size: 24px; margin: 10px 0 8px; }
.post-list-item p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); margin: 0; max-width: 70ch; }

.post-nav {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}

/* 404 */
.notfound {
  max-width: 720px;
  margin: 0 auto;
  padding: 90px var(--pad);
  text-align: center;
}
.notfound h1 { font-size: 44px; margin: 14px 0 14px; letter-spacing: -0.025em; }
.notfound p { font-size: 17px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 28px; }
.notfound .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-footer);
  flex-shrink: 0;
}
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 46px var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.footer-brand p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin: 0 0 16px;
  max-width: 34ch;
}
.footer-socials { display: flex; gap: 8px; }
.footer-socials a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-dashed);
  color: var(--ink-muted);
  padding: 6px 10px;
}
.footer-socials a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.footer-col {
  display: grid;
  gap: 9px;
  font-size: 14px;
  align-content: start;
}
.footer-col a { color: var(--ink); }
.footer-col a:hover { color: var(--rust); }
.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad) 34px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom a { color: var(--ink-faint); }
.footer-bottom a:hover { color: var(--ink); }

/* ------------------------------------------------------------------
   Responsive. The prototype was desktop-only; these are the rules that
   make the same layout survive a phone. Grids use minmax(min(px,100%))
   so a column can never be forced wider than the viewport.
   ------------------------------------------------------------------ */

@media (max-width: 1080px) {
  .hero { gap: 40px; }
  .hero h1 { font-size: 48px; }
  .custom-band-inner { padding: 44px 40px; gap: 36px; }
  .product-layout { gap: 40px; }
  .browse { grid-template-columns: 180px 1fr; gap: 32px; }
}

@media (max-width: 940px) {
  :root { --pad: 24px; }

  .site-header-inner { gap: 14px; row-gap: 12px; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 2px; }
  .header-spacer { display: none; }
  .search-form { flex: 1 1 160px; width: auto; min-width: 140px; }

  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 44px;
  }
  .hero h1 { font-size: 42px; }
  .hero-media { order: -1; }

  .section { padding-top: 56px; }
  .section-head h2 { font-size: 22px; }

  .category-grid { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
  .product-grid.cols-3,
  .product-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }

  .custom-band { margin-top: 56px; }
  .custom-band-inner { grid-template-columns: 1fr; padding: 36px 28px; gap: 28px; }
  .custom-band h2 { font-size: 28px; }

  .browse {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 28px;
  }
  .filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
    gap: 0 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }

  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .custom-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; gap: 32px; }
  .summary { position: static; }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 30px;
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

@media (max-width: 620px) {
  :root { --pad: 18px; }

  .wordmark-kicker { display: none; }
  .site-header-inner { padding: 14px var(--pad); }
  .main-nav { font-size: 13px; gap: 14px; }

  .hero { padding-top: 34px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-specs { gap: 14px; font-size: 11px; }

  .section { padding-top: 44px; }
  .section-head { flex-wrap: wrap; gap: 8px; }

  .product-grid.cols-3,
  .product-grid.cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 16px; }

  .custom-head h1,
  .prose-head h1 { font-size: 30px; }
  .product-detail h1 { font-size: 30px; }
  .cart-page h1 { font-size: 28px; }
  .notfound h1 { font-size: 32px; }
  .prose-lede { font-size: 16px; }

  .callout { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px; }
  .callout .btn { width: 100%; }

  .field-pair,
  .shipping-grid { grid-template-columns: 1fr; }
  .shipping-grid .span-2 { grid-column: span 1; }

  .buy-row { flex-direction: column; }
  .buy-row .btn-outline { width: 100%; }

  .cart-line { grid-template-columns: 64px 1fr; row-gap: 12px; }
  .cart-line-right { grid-column: span 2; justify-content: space-between; }

  .form-success { padding: 30px 24px; }
  .cart-empty { padding: 40px 24px; }
  .aside-card { padding: 22px 20px; }

  .prose dl.kv > div { flex-direction: column; gap: 4px; }
  .prose dl.kv dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .filters, .buy-row, .suggestions { display: none; }
  body { background: #fff; }
}
