/* ============================================================
   1983 HATTERS — Vintage catalog design system
   Palette: espresso ink on aged paper, leather, brass, bordeaux
   ============================================================ */

:root {
  --ink: #241b12;
  --ink-soft: #4c4033;
  --ink-faint: #7a6c5a;
  --paper: #f4ecdc;
  --paper-deep: #ece0c8;
  --paper-card: #f8f2e5;
  --leather: #8a5a2b;
  --tan: #b08d57;
  --brass: #a97e2f;
  --brass-bright: #c9a227;
  --bordeaux: #6e2f36;
  --pink: #d23b6e;
  --rule: #c9b989;
  --shadow: rgba(36, 27, 18, 0.18);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* aged paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.10 0 0 0 0 0.06 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

main, header, footer { position: relative; z-index: 1; }

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

a { color: var(--bordeaux); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }

/* ---------- type ---------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: 0.005em; }

.overline {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--leather);
}

.lede { font-size: 1.16rem; color: var(--ink-soft); font-weight: 400; }

.small { font-size: 0.85rem; color: var(--ink-faint); }

/* ornamental divider */
.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 18px;
  color: var(--brass);
}
.ornament::before, .ornament::after {
  content: "";
  height: 1px;
  flex: 0 0 54px;
  background: linear-gradient(90deg, transparent, var(--brass));
}
.ornament::after { background: linear-gradient(90deg, var(--brass), transparent); }
.ornament.center { justify-content: center; }
.ornament svg { flex: 0 0 auto; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { padding: 72px 0; }

/* ---------- top strip ---------- */
.topstrip {
  background: var(--ink);
  color: var(--paper);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
  font-weight: 600;
}
.topstrip .sep { color: var(--brass-bright); margin: 0 10px; }

/* ---------- masthead ---------- */
.masthead {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 var(--paper), 0 10px 30px -18px var(--shadow);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: var(--ink); }
.brand .year {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.9rem;
  color: var(--bordeaux);
  letter-spacing: 0.02em;
}
.brand .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand .locale {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2px;
}

nav.mainnav { display: flex; align-items: center; gap: 26px; }
nav.mainnav a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.mainnav a:hover { color: var(--ink); border-bottom-color: var(--brass); }
nav.mainnav a.active { color: var(--ink); border-bottom-color: var(--bordeaux); }

.cartlink { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.cartlink .count {
  min-width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--bordeaux);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  letter-spacing: 0;
}

.navtoggle {
  display: none;
  background: none;
  border: 1.5px solid var(--ink);
  padding: 7px 10px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper-card);
  border: 2px solid var(--ink);
  padding: 13px 26px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--brass);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--brass); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--brass); }
.btn.primary { background: var(--bordeaux); color: var(--paper); border-color: var(--bordeaux); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { box-shadow: none; background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.slim { padding: 9px 18px; font-size: 0.72rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- frames & cards ---------- */
.frame {
  border: 1px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 5px;
  background: var(--paper-card);
}

.photo-frame {
  border: 1px solid var(--ink);
  padding: 10px;
  background: var(--paper-card);
  box-shadow: 0 18px 40px -22px var(--shadow);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-frame figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px 6px 2px;
}

.card {
  background: var(--paper-card);
  border: 1px solid var(--ink);
  box-shadow: 0 14px 34px -24px var(--shadow);
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 76px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.3rem); font-weight: 900; margin: 18px 0 20px; }
.hero h1 em { font-style: italic; color: var(--bordeaux); }
.hero .actions { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.hero-photo { position: relative; }
.hero-photo .photo-frame { transform: rotate(1.2deg); }
.hero-photo .stamp {
  position: absolute;
  top: -34px;
  right: -30px;
  width: 118px;
  height: 118px;
  z-index: 2;
  filter: drop-shadow(0 6px 12px var(--shadow));
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-points { display: flex; gap: 26px; margin-top: 30px; flex-wrap: wrap; }
.hero-points .pt { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.hero-points .pt svg { color: var(--brass); }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper-deep);
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
}
.marquee-track { display: inline-block; animation: marquee 30s linear infinite; }
.marquee span {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 26px;
}
.marquee .star { color: var(--brass); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- feature trio ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 44px; }
.trio .card { padding: 0; display: flex; flex-direction: column; }
.trio .card .img { aspect-ratio: 4 / 3.4; overflow: hidden; border-bottom: 1px solid var(--ink); }
.trio .card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.trio .card:hover .img img { transform: scale(1.045); }
.trio .card .body { padding: 24px 24px 28px; }
.trio .card h3 { font-size: 1.35rem; margin: 6px 0 10px; }
.trio .card p { font-size: 0.95rem; color: var(--ink-soft); }
.trio .num { font-family: var(--serif); font-style: italic; color: var(--brass); font-size: 1rem; }

/* ---------- story ---------- */
.story { background: var(--ink); color: var(--paper); }
.story .overline { color: var(--brass-bright); }
.story-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: center; }
.story h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); margin: 14px 0 20px; }
.story p { color: #d9cfbc; margin-bottom: 16px; }
.story .crest {
  border: 1px solid var(--brass);
  outline: 1px solid var(--brass);
  outline-offset: 6px;
  padding: 18px;
  background: #17110b;
  transform: rotate(-1.4deg);
}
.story .crest img { width: 100%; }
.story .crest figcaption { text-align: center; font-family: var(--serif); font-style: italic; font-size: 0.88rem; color: var(--tan); padding-top: 12px; }
.story blockquote {
  border-left: 3px solid var(--brass);
  padding: 6px 0 6px 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.18rem;
  color: var(--paper);
  margin: 22px 0;
}

/* ---------- sizing callout ---------- */
.sizing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.sizing-list { list-style: none; margin: 22px 0; }
.sizing-list li { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.sizing-list .tick {
  flex: 0 0 26px; height: 26px;
  border: 1.5px solid var(--brass);
  border-radius: 50%;
  color: var(--brass);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.8rem; margin-top: 2px;
}

/* ---------- section headers ---------- */
.sechead { max-width: 720px; }
.sechead.center { margin: 0 auto; text-align: center; }
.sechead h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin: 12px 0 14px; }
.sechead p { color: var(--ink-soft); }

/* ---------- gallery ---------- */
.gallery-grid {
  columns: 3;
  column-gap: 26px;
  margin-top: 46px;
}
.gitem {
  break-inside: avoid;
  margin-bottom: 26px;
  cursor: zoom-in;
  border: 1px solid var(--ink);
  background: var(--paper-card);
  padding: 9px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gitem:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px var(--shadow); }
.gitem img { width: 100%; }
.gitem .cap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 4px 3px; }
.gitem .cap .t { font-family: var(--serif); font-style: italic; font-size: 0.95rem; }
.gitem .cap .tag { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leather); white-space: nowrap; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 14, 8, 0.93);
  display: none;
  align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(88vw, 1000px); max-height: 82vh; object-fit: contain; border: 1px solid var(--tan); padding: 8px; background: var(--paper); }
.lightbox .lb-cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--paper); font-family: var(--serif); font-style: italic; }
.lightbox button {
  position: absolute;
  background: none; border: 1.5px solid var(--tan); color: var(--paper);
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
}
.lightbox button:hover { background: var(--tan); color: var(--ink); }
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 46px; }
.review { padding: 30px 28px; position: relative; }
.review .qmark {
  font-family: var(--serif);
  font-size: 4.4rem;
  line-height: 0.6;
  color: var(--brass);
  opacity: 0.65;
  display: block;
  margin-bottom: 16px;
}
.review .stars { color: var(--brass); letter-spacing: 3px; margin-bottom: 10px; font-size: 0.95rem; }
.review .txt { font-family: var(--serif); font-size: 1.14rem; font-style: italic; margin-bottom: 18px; }
.review .who { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.review .via { font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.06em; }

.review-form { margin-top: 60px; padding: 40px; }
.review-form h3 { font-size: 1.6rem; margin-bottom: 8px; }

/* ---------- forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field select, .field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink-soft);
  padding: 12px 14px;
  outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bordeaux); box-shadow: 0 0 0 3px rgba(110, 47, 54, 0.14); }
.field textarea { min-height: 120px; resize: vertical; }
.field .hint { font-size: 0.78rem; color: var(--ink-faint); margin-top: 5px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.starpick { display: flex; gap: 6px; font-size: 1.6rem; cursor: pointer; color: #c9b989; }
.starpick .s.on { color: var(--brass); }

/* ---------- home: lineup strip ---------- */
.lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; }
.lineup-item {
  display: flex; flex-direction: column; gap: 3px;
  text-decoration: none; color: inherit;
  border: 1px solid var(--rule);
  background: var(--paper-card);
  padding: 0 0 16px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.lineup-item:hover { transform: translateY(-4px); box-shadow: 0 18px 34px -20px var(--shadow); }
.lineup-item .shot {
  display: block; background: #fff; aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--rule); overflow: hidden; margin-bottom: 14px;
}
.lineup-item .shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.lineup-item .n { font-family: var(--serif); font-size: 1.12rem; font-weight: 700; padding: 0 18px; }
.lineup-item .m { font-size: 0.76rem; color: var(--ink-faint); padding: 0 18px; }
.lineup-item .p { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--bordeaux); padding: 6px 18px 0; }
.lineup-item .p .cur { font-family: var(--sans); font-size: 0.68rem; font-weight: 600; color: var(--ink-faint); }

/* ---------- shop filter bar ---------- */
.shopbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px 26px;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  background: var(--paper-card);
}
.filtgroup { display: flex; flex-direction: column; gap: 9px; }
.filtlabel {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ink-faint);
}
.shopbar .chip { padding: 6px 11px; font-size: 0.75rem; }
.shopbar .optrow { gap: 8px; }
.sortgroup { margin-left: auto; }
.sortgroup select {
  font-family: var(--sans); font-size: 0.82rem; padding: 8px 12px;
  border: 1.5px solid var(--ink-soft); background: var(--paper); color: var(--ink);
}
.shopcount { margin-top: 14px; text-align: right; letter-spacing: 0.06em; }
.nohits { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--ink-faint); font-style: italic; }

/* ---------- catalog (shop) ---------- */
.plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 18px; }
.plate { display: flex; flex-direction: column; }
.plate .shot {
  position: relative;
  border-bottom: 1px solid var(--ink);
  background: #fff;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.plate .shot img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.5s ease;
}
.plate:hover .shot img { transform: scale(1.045); }
.plate .badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--bordeaux); color: var(--paper);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 10px;
}
.plate .colorname { font-size: 0.84rem; color: var(--ink-soft); }
.plate .colorname strong { color: var(--ink); }
.plate .plate-no {
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 12px;
}
.plate .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plate h3 { font-size: 1.45rem; }
.plate .desc { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.plate .meta { display: flex; justify-content: space-between; align-items: center; }
.plate .price { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--bordeaux); }
.plate .price .cur { font-size: 0.8rem; color: var(--ink-faint); font-family: var(--sans); font-weight: 600; }
.plate .row { display: flex; gap: 10px; }
.plate select {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 10px 12px;
  border: 1.5px solid var(--ink-soft);
  background: var(--paper);
  color: var(--ink);
}

/* ---------- shared controls (shop filters, checkout options) ---------- */
.optrow { display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  border: 1.5px solid var(--ink-soft);
  background: var(--paper-card);
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s ease;
  color: var(--ink-soft);
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 3px 3px 0 var(--brass); }
.chip .plus { font-size: 0.72rem; color: var(--brass); font-weight: 700; }
.chip.on .plus { color: var(--brass-bright); }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--paper-card);
  outline: 1.5px solid var(--ink-soft);
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease;
}
.swatch:hover { transform: scale(1.1); }
.swatch.on { outline: 2.5px solid var(--bordeaux); transform: scale(1.12); }
.swatch.on::after {
  content: "✓";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}
.swatch .tip {
  position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%);
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-faint); white-space: nowrap; opacity: 0; transition: opacity 0.12s;
  pointer-events: none;
}
.swatch:hover .tip, .swatch.on .tip { opacity: 1; }

/* compact swatch row inside a shop card */
.swatches.mini { gap: 8px; }
.swatches.mini .swatch { width: 26px; height: 26px; border-width: 1.5px; }
.swatches.mini .swatch.on::after { font-size: 0.7rem; }
.swatches.mini .swatch .tip { bottom: -22px; font-size: 0.58rem; }

/* ---------- checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 44px; align-items: start; margin-top: 38px; }
.cartlist { display: flex; flex-direction: column; gap: 16px; }
.cartitem { display: grid; grid-template-columns: 92px 1fr auto; gap: 18px; padding: 16px; align-items: center; }
.cartitem .thumb { border: 1px solid var(--ink-soft); background: #fff; padding: 4px; }
.cartitem .thumb svg, .cartitem .thumb img { width: 100%; height: auto; display: block; }
.cartitem h4 { font-family: var(--serif); font-size: 1.12rem; }
.cartitem .spec { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; }
.cartitem .qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cartitem .qty button {
  width: 26px; height: 26px; border: 1.5px solid var(--ink-soft); background: var(--paper);
  cursor: pointer; font-weight: 700; color: var(--ink);
}
.cartitem .qty button:hover { background: var(--ink); color: var(--paper); }
.cartitem .line-price { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--bordeaux); text-align: right; }
.cartitem .rm { font-size: 0.72rem; color: var(--ink-faint); background: none; border: none; cursor: pointer; text-decoration: underline; margin-top: 6px; }
.cartitem .rm:hover { color: var(--bordeaux); }

.summary { padding: 30px; position: sticky; top: 110px; }
.summary h3 { font-size: 1.4rem; margin-bottom: 18px; }
.sumrow { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.95rem; color: var(--ink-soft); }
.sumrow.total { border-top: 2px solid var(--ink); margin-top: 10px; padding-top: 16px; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.sumrow .amt { font-variant-numeric: tabular-nums; }
.taxnote { font-size: 0.78rem; color: var(--ink-faint); margin-top: 12px; line-height: 1.5; }

.empty-cart { text-align: center; padding: 70px 30px; }
.empty-cart .big { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink-soft); margin-bottom: 20px; }

/* order confirmation */
.confirm-panel { padding: 44px; text-align: center; }
.confirm-panel h2 { font-size: 2rem; margin-bottom: 10px; }
.confirm-panel .ordno { font-family: var(--serif); font-size: 1.2rem; color: var(--bordeaux); font-style: italic; }
.ordertext {
  text-align: left;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  background: var(--paper);
  border: 1.5px dashed var(--ink-soft);
  padding: 20px;
  margin: 24px 0;
  max-height: 320px;
  overflow: auto;
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--bordeaux); color: var(--paper); text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-bottom: 14px; }
.cta-band p { color: #ecd9cf; max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn { border-color: var(--paper); color: var(--paper); background: transparent; box-shadow: 4px 4px 0 rgba(0,0,0,0.35); }
.cta-band .btn:hover { background: var(--paper); color: var(--bordeaux); }

/* ---------- footer ---------- */
footer { background: var(--ink); color: #cfc3ad; padding: 64px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; }
footer .brandline { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--paper); letter-spacing: 0.08em; }
footer .motto { font-family: var(--serif); font-style: italic; color: var(--tan); margin: 10px 0 16px; }
footer h4 { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass-bright); margin-bottom: 16px; }
footer a { color: #cfc3ad; text-decoration: none; }
footer a:hover { color: var(--paper); text-decoration: underline; }
footer ul { list-style: none; }
footer li { margin-bottom: 9px; font-size: 0.92rem; }
.foot-bottom {
  border-top: 1px solid #3d3324;
  margin-top: 46px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #8d8069;
}

/* ---------- creator credit (bottom right of every footer) ---------- */
/* Deliberately quiet: it sits below the shop's own footer line, at low
   opacity, and only comes forward on hover. */
.creator-row { display: flex; justify-content: flex-end; margin-top: 20px; }
.creator-credit {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.creator-credit:hover,
.creator-credit:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  text-decoration: none;
}
.creator-credit img {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 50%;
  flex: 0 0 auto;
}
.creator-credit .cc-txt {
  font-size: 0.58rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d8069;
}
.creator-credit .cc-txt strong {
  display: block;
  color: #c4712f;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.creator-credit:hover .cc-txt strong { color: #e8843f; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--brass);
  padding: 14px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.5);
}
.toast.show { transform: translate(-50%, 0); }
.toast a { color: var(--brass-bright); }

/* ---------- size guide modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 14, 8, 0.8);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.modal.open { display: flex; }
.modal-box { max-width: 620px; width: 100%; max-height: 86vh; overflow: auto; padding: 38px; position: relative; }
.modal-box h3 { font-size: 1.6rem; margin-bottom: 6px; }
.modal-box .x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: none; border: 1.5px solid var(--ink-soft); border-radius: 50%;
  font-size: 1rem; cursor: pointer; color: var(--ink);
}
.modal-box .x:hover { background: var(--ink); color: var(--paper); }
table.sizes { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
table.sizes th, table.sizes td { border: 1px solid var(--ink-soft); padding: 9px 12px; text-align: center; }
table.sizes th { background: var(--paper-deep); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
table.sizes tr:nth-child(even) td { background: var(--paper); }

/* ---------- page hero (interior pages) ---------- */
.pagehero { padding: 66px 0 8px; }
.pagehero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 900; margin: 14px 0 12px; }
.pagehero p { max-width: 640px; color: var(--ink-soft); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .story-grid, .sizing-grid, .checkout-grid { grid-template-columns: 1fr; gap: 44px; }
  .trio, .review-grid, .plates, .lineup { grid-template-columns: 1fr 1fr; }
  .gallery-grid { columns: 2; }
  .summary { position: static; }
  .hero-photo .stamp { right: 6px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 20px; }
  .trio, .review-grid, .plates { grid-template-columns: 1fr; }
  .shopbar { gap: 20px; padding: 18px; }
  .sortgroup { margin-left: 0; }
  .gallery-grid { columns: 1; }
  .frow { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .creator-row { justify-content: center; margin-top: 24px; }
  .brand .name { font-size: 1.1rem; }
  .brand .year { font-size: 1.5rem; }

  .navtoggle { display: block; }
  nav.mainnav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
    flex-direction: column;
    gap: 0;
    padding: 10px 0 16px;
  }
  nav.mainnav.open { display: flex; }
  nav.mainnav a { padding: 12px 28px; width: 100%; }
  .masthead-inner { position: relative; }
}

/* ============================================================
   UTILITIES
   These exist so no element needs a style="" attribute. That is
   what allows the Content-Security-Policy to forbid inline styles
   outright (style-src 'self') instead of weakening it with
   'unsafe-inline'. Please add a class here rather than an inline
   style when adjusting layout.
   ============================================================ */
.plain-link      { text-decoration: none; color: inherit; }
.foot-blurb      { font-size: 0.9rem; max-width: 300px; }
.overline-light  { color: #e3b9a8; }
.is-hidden       { display: none !important; }

.pt-0            { padding-top: 0; }
.pt-6            { padding-top: 6px; }
.pt-10           { padding-top: 10px; }
.pt-14           { padding-top: 14px; }
.pt-18           { padding-top: 18px; }
.pad-26          { padding: 26px; }

.mt-22           { margin-top: 22px; }
.mb-6            { margin-bottom: 6px; }
.mb-26           { margin-bottom: 26px; }

.center-26       { text-align: center; margin-top: 26px; }
.center-36       { text-align: center; margin-top: 36px; }
.center-44       { text-align: center; margin-top: 44px; }

.btnrow          { display: flex; gap: 16px; flex-wrap: wrap; }
.btnrow-center   { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-block-20    { width: 100%; margin-top: 20px; }

.subhead         { font-size: 1.4rem; margin-bottom: 16px; }
.subhead-spaced  { font-size: 1.4rem; margin: 44px 0 16px; }
.sizing-head     { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 12px 0 16px; }

.note-soft       { font-size: 0.9rem; color: var(--ink-soft); }
.modal-intro     { font-size: 0.95rem; color: var(--ink-soft); }
.fineprint       { margin-top: 14px; line-height: 1.55; }
.lead-centered   { max-width: 620px; margin: 14px auto 0; color: var(--ink-soft); }
.dim             { opacity: 0.5; }
.tilt-left       { transform: rotate(-1.2deg); }
.outset-6        { outline-offset: 6px; }

.quote-frame     { padding: 46px 40px; text-align: center; max-width: 760px; margin: 0 auto; }
.pullquote       { font-family: var(--serif); font-style: italic; font-size: 1.45rem; margin: 14px 0 12px; }
.stars-lg        { color: var(--brass); letter-spacing: 4px; font-size: 1.05rem; }

.service-frame   { margin-top: 56px; padding: 44px 40px; }
.service-grid    { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.service-head    { font-size: 1.7rem; margin: 8px 0 10px; }
.service-copy    { color: var(--ink-soft); max-width: 640px; }

.sizeguide-link  { text-decoration: underline; }

@media (max-width: 680px) {
  .service-grid { grid-template-columns: 1fr; }
}
.btn-block       { width: 100%; }
.field-invalid   { border-color: #a33 !important; }

/* ---------- support / fundraiser band ---------- */
/* Deliberately not styled like .cta-band (which sells) — this one is warm
   parchment with a brass rule, so it reads as a genuine ask rather than
   another advert, and never gets mistaken for a checkout step. */
.support-band {
  padding: 52px 0;                 /* lighter than a full section — it supports, not sells */
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(169, 126, 47, 0.10), transparent 70%),
    var(--paper-deep);
}
.support-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.support-mark { width: 88px; height: 88px; flex: 0 0 auto; }
.support-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 10px; }
.support-band p { color: var(--ink-soft); font-size: 0.98rem; }
.support-band .btn { white-space: nowrap; }
.support-note { font-size: 0.78rem; color: var(--ink-faint); margin-top: 10px; }

@media (max-width: 900px) {
  .support-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .support-mark { margin: 0 auto; }
  .support-band .ornament { justify-content: center; }
}
