/* pal-charcoal + dir-b, product layouts L2 / L3 / L4 from catalog templates. */
:root {
  --dark: #1c1714;
  --gold: #b08d57;
  --red: #9e2f28;
  --cream: #f2e8d8;
  --accent: #2b2926;
  --accent2: #b08d57;
  --soft: #f2eee7;
  --ink: #2b2926;
  --muted: #8b857c;
  --paper: #ffffff;
  --line: #e6e1d8;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Songti SC", "STSong", "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.chrome {
  position: sticky;
  top: 0;
  z-index: 5;
  font-family: var(--serif);
}
.mast {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 24px;
  padding: 10px 28px;
  background: var(--dark);
  color: var(--cream);
}
.brand {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0 14px;
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
}
.brand .name {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--gold);
  line-height: 1.2;
}
.brand .role {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
  color: #cbb999;
  line-height: 1.2;
}
.tools { display: flex; align-items: center; gap: 18px; }
.langs {
  display: flex;
  border: 1px solid rgba(176, 141, 87, .55);
}
.langs button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #cbb999;
  font: inherit;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
}
.langs button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--dark);
}
.mail {
  font-size: 12px;
  letter-spacing: .02em;
  text-decoration: none;
  color: #cbb999;
}
.mail:hover { color: var(--cream); }

.cats {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 20px;
  background: var(--dark);
  border-top: .2mm solid rgba(176, 141, 87, .5);
}
.cats a {
  flex: 0 0 auto;
  padding: 10px 16px 8px;
  text-decoration: none;
  color: #cbb999;
  letter-spacing: .08em;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: .4mm solid transparent;
}
.cats a[aria-current="true"],
.cats a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.board-empty { padding: 80px 28px; color: var(--muted); }

.cat {
  padding: 8mm 14mm 12mm;
  scroll-margin-top: 130px;
}
.cat-inner { max-width: 1112pt; margin: 0 auto; }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 13mm;
  border-bottom: .3mm solid var(--accent);
}
.bar-title {
  font-size: 13pt;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}
.count {
  font-size: 9pt;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.count b {
  font-size: 16pt;
  color: var(--accent);
  margin-right: 1.5mm;
  letter-spacing: 0;
}
.blurb {
  margin: 4mm 0 7mm;
  font-size: 10pt;
  padding: 2.2mm 0;
  border-bottom: .2mm solid var(--line);
}

.no { font-size: 7pt; font-weight: 700; color: var(--accent2); letter-spacing: .12em; }
.name { font-weight: 700; color: var(--ink); }
.wt { color: var(--muted); }
.hl { color: var(--ink); opacity: .85; }
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 8pt;
  background: var(--soft);
}

.l2-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12mm;
  margin-top: 8mm;
}
.l2-row.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 9mm; }
.l2-row.cols-6 { grid-template-columns: repeat(6, 1fr); gap: 6mm; }
.l2-row.cols-2 { grid-template-columns: repeat(2, 1fr); gap: 20mm; padding: 0 30mm; }
.l2-card { display: flex; flex-direction: column; min-width: 0; }
.l2-card img, .l2-card .ph { width: 100%; height: 85mm; object-fit: contain; }
.l2-row.cols-4 .l2-card img,
.l2-row.cols-4 .l2-card .ph { height: 78mm; }
.l2-row.cols-6 .l2-card img,
.l2-row.cols-6 .l2-card .ph { height: 42mm; }
.l2-row.cols-6 .l2-card .name { font-size: 10pt; }
.l2-row.cols-6 .l2-card .hl { font-size: 7.5pt; }
.l2-card .text { border-top: .3mm solid var(--accent); padding-top: 2.5mm; margin-top: 2mm; }
.l2-card .name { font-size: 12pt; }
.l2-card .wt { font-size: 9pt; margin-top: 1mm; }
.l2-card .no { margin-top: 1mm; }
.l2-card .hl { font-size: 8.5pt; margin-top: 1.5mm; }

.l3 {
  display: grid;
  grid-template-columns: 172mm 1fr;
  gap: 10mm;
  margin-top: 8mm;
}
.l3-hero {
  display: grid;
  grid-template-columns: 112mm 1fr;
  gap: 6mm;
  align-items: center;
  padding: 4mm 0;
}
.l3-hero img, .l3-hero .ph { width: 100%; height: 105mm; object-fit: contain; }
.l3-hero .name { font-size: 16pt; margin-top: 2mm; line-height: 1.2; }
.l3-hero .wt { font-size: 10pt; margin-top: 2mm; }
.l3-hero .hl { font-size: 9pt; margin-top: 4mm; border-top: .3mm solid var(--accent2); padding-top: 3mm; line-height: 1.5; }
.l3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5mm 8mm;
}
.l3-small {
  display: grid;
  grid-template-columns: 50mm 1fr;
  gap: 4mm;
  align-items: center;
  border-bottom: .2mm solid var(--line);
  min-width: 0;
}
.l3-small img, .l3-small .ph { width: 100%; height: 50mm; object-fit: contain; }
.l3-small .name { font-size: 10pt; margin-top: 1mm; }
.l3-small .wt { font-size: 8.5pt; margin-top: 1mm; }
.l3-small .hl { font-size: 7.5pt; margin-top: 1.5mm; }

.l4-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5mm 8mm;
  margin-top: 8mm;
}
.l4-grid .l3-small { grid-template-columns: 42mm 1fr; }
.l4-grid .l3-small img, .l4-grid .l3-small .ph { height: 48mm; }

.cat-dark {
  background: var(--dark);
  color: #efe4d2;
  font-family: var(--serif);
  padding: 0 14mm 12mm;
}
.cat-dark .bar { border-bottom-color: rgba(176, 141, 87, .6); }
.cat-dark .bar-title { color: #e2c48e; letter-spacing: .15em; }
.cat-dark .count { color: #a8977c; }
.cat-dark .count b { color: var(--gold); font-family: Georgia, serif; font-weight: 400; }
.cat-dark .blurb {
  font-style: italic;
  color: #c2ad88;
  border-bottom-color: rgba(176, 141, 87, .5);
}
.cat-dark .no { color: var(--gold); letter-spacing: .2em; font-family: var(--sans); }
.cat-dark .name { color: #efe4d2; }
.cat-dark .wt { color: #a8977c; }
.cat-dark .hl { color: #c2ad88; opacity: 1; }
.cat-dark .l2-card .text { border-top-color: rgba(176, 141, 87, .6); }
.gift-row {
  display: grid;
  grid-template-columns: minmax(0, 90mm) minmax(0, 1fr) minmax(0, 88mm);
  gap: 12mm;
  min-height: 110mm;
  padding: 8mm 0 10mm;
  border-bottom: .2mm solid rgba(176, 141, 87, .25);
}
.gift-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.gift-box img, .gift-box .ph {
  width: 100%;
  height: 100mm;
  object-fit: contain;
}
.gift-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gift-visual .mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 44mm));
  gap: 4mm;
  justify-content: center;
}
.gift-visual .mini.n1 { grid-template-columns: minmax(0, 82mm); }
.gift-visual .mini.n4 { grid-template-columns: repeat(2, minmax(0, 46mm)); }
.gift-visual .mini.n5 figure:nth-child(4) { grid-column: 1 / span 1; margin-left: 50%; margin-right: -50%; }
.gift-visual .mini.n5 figure:nth-child(5) { margin-left: 50%; margin-right: -50%; }
.gift-visual .mini figure {
  background: #f5efe3;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #2a211b;
  overflow: hidden;
}
.gift-visual .mini .mini-img { width: 74%; height: 66%; object-fit: contain; }
.gift-visual .mini.n1 .mini-img { height: 72%; }
.gift-visual .mini .ph {
  width: 66%;
  height: 66%;
  border: none;
  background: transparent;
  font-size: 5.5pt;
  color: #8a7a62;
}
.gift-visual .mini figcaption {
  font-size: 6.5pt;
  margin-top: -.5mm;
  text-align: center;
  padding: 0 2mm;
  line-height: 1.1;
}
.gift-info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.gift-info .contents li span:first-child { min-width: 0; }
.gift-info .no {
  font-family: Georgia, serif;
  font-size: 7.5pt;
  letter-spacing: .3em;
  color: var(--gold);
}
.gift-info h3 {
  font-size: 15pt;
  letter-spacing: .01em;
  line-height: 1.2;
  margin-top: 1.5mm;
  color: #efe4d2;
  font-weight: 400;
}
.gift-info .contents {
  list-style: none;
  margin-top: 4mm;
  border-top: .2mm solid rgba(176, 141, 87, .5);
}
.gift-info .contents li {
  display: flex;
  justify-content: space-between;
  gap: 3mm;
  font-size: 8pt;
  padding: 1.1mm 0;
  border-bottom: .2mm solid rgba(176, 141, 87, .25);
}
.gift-info .contents li span:last-child {
  font-family: Georgia, serif;
  color: #e2c48e;
  white-space: nowrap;
}
.gift-info .total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 2mm;
  font-size: 8pt;
  color: #a8977c;
}
.gift-info .total b {
  font-family: Georgia, serif;
  font-size: 14pt;
  color: #e2c48e;
  font-weight: 400;
}
.gift-note {
  margin: 4mm 0 2mm;
  font-size: 8pt;
  color: #8f806a;
}

.inquire {
  background: var(--dark);
  color: #efe4d2;
  font-family: var(--serif);
  text-align: center;
  padding: 20mm 14mm 16mm;
}
.kicker {
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.points {
  list-style: none;
  max-width: 150mm;
  margin: 8mm auto 0;
  border-top: .2mm solid rgba(176, 141, 87, .5);
  text-align: left;
}
.points li {
  padding: 2.4mm 0;
  border-bottom: .2mm solid rgba(176, 141, 87, .5);
  font-size: 10pt;
}
.sign {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 14px;
  margin-top: 8mm;
}
.firm {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: 14pt;
  color: var(--gold);
}
.tag {
  font-style: italic;
  font-size: 11pt;
  color: #cbb999;
}
.inquire-mail {
  display: inline-block;
  margin-top: 3mm;
  font-size: 10pt;
  color: #e2c48e;
  text-decoration: none;
}
.inquire-mail:hover { border-bottom: 1px solid #e2c48e; }
.pdf-line { margin-top: 8mm; }
.pdf-line a {
  font-size: 8pt;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #cbb999;
  text-decoration: none;
  border-bottom: .2mm solid rgba(176, 141, 87, .55);
  padding-bottom: 1mm;
}

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

@media (max-width: 900px) {
  .mast { grid-template-columns: 1fr; padding: 10px 16px; }
  .brand { flex-wrap: wrap; white-space: normal; }
  .brand .name { font-size: 16px; }
  .tools { justify-content: flex-start; }
  .mail { display: none; }
  .cats { padding: 0 8px; }
  .cat, .cat-dark { padding-left: 12px; padding-right: 12px; }
  .l2-row, .l2-row.cols-4, .l2-row.cols-6, .l2-row.cols-2, .l4-grid { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .l2-row.cols-4 .l2-card img, .l2-row.cols-4 .l2-card .ph,
  .l2-row.cols-6 .l2-card img, .l2-row.cols-6 .l2-card .ph,
  .l2-card img, .l2-card .ph { height: 70mm; }
  .l3 { grid-template-columns: 1fr; }
  .l3-hero { grid-template-columns: 1fr; }
  .l3-hero img, .l3-hero .ph { height: 70mm; }
  .l4-grid .l3-small, .l3-small { grid-template-columns: 36mm 1fr; }
  .gift-row { grid-template-columns: 1fr; min-height: 0; }
  .gift-box img, .gift-box .ph { height: 70mm; }
  .gift-visual .mini,
  .gift-visual .mini.n1,
  .gift-visual .mini.n4 { grid-template-columns: repeat(2, minmax(0, 46mm)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
