:root {
  --navy: #17324d;
  --ink: #1b2430;
  --muted: #5c6b7a;
  --line: #e3e8ee;
  --paper: #ffffff;
  --wash: #f5f7fa;
  --accent: #8f3d32;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
  font-size: 1.05rem;
  line-height: 1.55;
}

::selection { background: #d9e4f0; }

a { color: var(--navy); }
img { max-width: 100%; display: block; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--navy);
  color: white;
  padding: 0.45rem 0.7rem;
  z-index: 30;
}
.skip:focus { top: 0.5rem; }

.page-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  background: var(--navy);
  color: #e8eef4;
  font-size: 0.82rem;
}
.topbar-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}
.topbar p { margin: 0; }

.mast {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.mast-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}
.brand {
  text-decoration: none;
  color: var(--ink);
}
.brand strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.brand em {
  display: block;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
}
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding-bottom: 0.15rem;
  border-bottom: 2px solid transparent;
}
.site-nav a[aria-current="page"] { border-color: var(--accent); color: var(--navy); }
.tally {
  display: inline-block;
  min-width: 1.25rem;
  text-align: center;
  background: var(--navy);
  color: white;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0 0.35rem;
  margin-left: 0.2rem;
}
.menu-btn {
  display: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-weight: 600;
}

.flash { background: #e8f2ea; border-bottom: 1px solid #c9e2d0; }
.flash.bad { background: #fdecea; border-color: #f3c7c0; }
.flash p { margin: 0; padding: 0.7rem 0; }

main { padding: 0 0 3.5rem; }
main > .page-wrap { padding-top: 2.2rem; }
section.relative h1,
section.relative p { color: #fff; }

body h1, body h2, body h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}
body h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); margin: 0 0 0.8rem; }
body h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin: 0 0 0.6rem; }
body h3 { font-size: 1.25rem; margin: 0 0 0.35rem; }

.kicker {
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}
.lede { font-size: 1.15rem; color: #314052; margin: 0 0 1rem; max-width: 42rem; }
.muted, .note { color: var(--muted); }
.note { font-size: 0.92rem; }

.btn, button.btn, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1rem;
  cursor: pointer;
}
.btn:hover, button.btn:hover { background: #102538; }
.btn-line { background: white; color: var(--navy); }
.btn-line:hover { background: var(--wash); }
.btn[disabled], button.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0; }

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.product-photo, .hero-photo, .section-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: white;
}
.product-photo { object-fit: contain; background: #f3f5f8; }

.split, .split-7, .product-layout, .hero, .band-head, .pay-grid, .foot-grid, .pair {
  display: grid;
  gap: 1.75rem;
}
.split, .product-layout, .hero, .pay-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
.split-7 { grid-template-columns: 1.05fr 0.95fr; }
.split > *, .split-7 > * { min-width: 0; }
.band { margin-top: 2.5rem; }
.band-head { grid-template-columns: 140px 1fr; align-items: end; }
.index-no { color: var(--muted); font-size: 0.85rem; font-weight: 700; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.facts div { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }
.facts strong {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.7rem;
  color: var(--navy);
}
.facts span { color: var(--muted); font-size: 0.85rem; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .shot {
  height: 280px;
  background: #f3f5f8;
  display: grid;
  place-items: center;
}
.product-card .shot img { width: 100%; height: 280px; object-fit: contain; }
.product-card .body { padding: 1rem 1.1rem 1.15rem; }
.price {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.45rem;
  color: var(--navy);
  margin: 0.3rem 0;
}
.sku { color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }

table.spec { width: 100%; border-collapse: collapse; background: white; }
table.spec th, table.spec td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--line);
}
table.spec th { font-size: 0.82rem; color: var(--muted); font-weight: 700; }

.ledger article {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger .num { color: var(--accent); font-family: "Source Serif 4", Georgia, serif; font-size: 1.3rem; }

.survey {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.3rem;
}
.survey header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: -1.1rem -1.15rem 1rem;
  padding: 0.75rem 1.15rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.field { margin: 0 0 0.85rem; }
.field label, .check span { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 0.25rem; }
.field input, .field textarea, .field select, .qty {
  width: 100%;
  background: white;
  border: 1px solid #cfd6e0;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.7rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.qty { width: 5rem; }
.field input:focus, .field textarea:focus, .field select:focus, .qty:focus {
  outline: 2px solid #9db6d2;
  border-color: var(--navy);
}
.checks { display: grid; gap: 0.35rem; margin: 0.3rem 0 1rem; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; }
.check input { margin-top: 0.25rem; }
.err { color: var(--accent); font-size: 0.88rem; margin: 0.15rem 0 0.5rem; }
.callout {
  border-left: 3px solid var(--accent);
  padding: 0.15rem 0 0.15rem 0.9rem;
  margin: 1rem 0;
}
.meta-list { list-style: none; margin: 1rem 0; padding: 0; }
.meta-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.7rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.meta-list span:first-child { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.trolley-line {
  display: grid;
  grid-template-columns: 1fr 6rem 8rem 7rem;
  gap: 0.8rem;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.totals { margin-left: auto; width: min(100%, 22rem); display: grid; gap: 0.35rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 0.45rem; font-size: 1.25rem; font-family: "Source Serif 4", Georgia, serif; }
.pay-box { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
#card-element { padding: 0.7rem 0; border-bottom: 1px solid var(--line); margin-bottom: 0.8rem; }
pre.bill {
  white-space: pre-wrap;
  background: #13202e;
  color: #e7eef5;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.78rem;
}
.db-down { background: #fff6e8; border: 1px solid #ecd7b2; border-radius: 8px; padding: 0.8rem 1rem; margin: 1rem 0; }
.figure { margin: 0; }
.figure figcaption, .caption { color: var(--muted); font-size: 0.85rem; padding-top: 0.4rem; }

.site-footer { background: var(--navy); color: #d5e0ea; padding: 2rem 0; }
.site-footer a { color: white; }
.site-footer p { margin: 0 0 0.4rem; }
.foot-title { color: #9eb4c9; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.legal { margin-top: 1.2rem; padding-top: 0.8rem; border-top: 1px solid #2c4a66; font-size: 0.85rem; color: #b7c7d6; }

.page-pad { padding-top: 2rem; }

@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: white;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1rem 1rem;
  }
  .site-nav.open { display: flex; }
  .mast { position: sticky; }
  .split, .split-7, .product-layout, .hero, .band-head, .pay-grid, .foot-grid, .pair, .catalog-grid, .facts, .trolley-line {
    grid-template-columns: 1fr;
  }
  .topbar-row { flex-direction: column; gap: 0.1rem; }
}
