/* ---------- Design tokens ---------- */
:root {
  --background: #000000;
  --ink: #ffffff;
  --paper: #ffffff;
  --paper-ink: #101012;
  --muted: #9a9a9d;
  --divider: rgba(255, 255, 255, 0.18);
  --line: rgba(16, 16, 18, 0.14);
  --line-soft: rgba(16, 16, 18, 0.08);

  --accent-ice: #c3dbe6;
  --accent-slate: #cdd1d6;
  --accent-rose: #e3cdd2;
  --accent-graphite: #b9bcc0;
  --accent-gold: #d9c68e;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-blackletter: "Blackletter", var(--font-serif);
}

@font-face {
  font-family: "Blackletter";
  src: url("../fonts/blackletter_ds/BLACEB__.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Top navigation ---------- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 6vw;
  background: var(--background);
}
.top-nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.top-nav-logo {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.top-nav-links {
  display: flex;
  gap: 28px;
}
.top-nav-links a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.top-nav-links a:hover,
.top-nav-links a[aria-current="page"] { opacity: 1; }

/* ---------- Shop sub-navigation ---------- */
.shop-subnav {
  position: sticky;
  top: 64px;
  z-index: 90;
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 6vw;
  background: var(--background);
  border-bottom: 1px solid var(--divider);
}
.shop-subnav a {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.shop-subnav a:hover { opacity: 1; }

/* ---------- Cover / full-screen pages ---------- */
.page,
.home-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 80px;
  text-align: center;
}

.brand-title {
  font-family: var(--font-blackletter);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- Intro / info ---------- */
.intro { gap: 48px; }
.statement {
  max-width: 640px;
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.5;
  font-style: italic;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 880px;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--divider);
  padding-top: 32px;
}
.info-block h3 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 12px;
  color: var(--muted);
}
.info-block li, .info-block p { margin: 0 0 4px; font-size: 13px; }
.info-block a { text-decoration: underline; }

/* ---------- Category divider ---------- */
.cat-divider {
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 6vw;
  border-top: 1px solid var(--divider);
}
.cat-divider.first { border-top: none; }
.category-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 88px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- Collections & products ---------- */
.collection {
  padding: 24px 6vw 64px;
  --accent: var(--accent-ice);
}
.collection[data-accent="ice"] { --accent: var(--accent-ice); }
.collection[data-accent="slate"] { --accent: var(--accent-slate); }
.collection[data-accent="rose"] { --accent: var(--accent-rose); }
.collection[data-accent="graphite"] { --accent: var(--accent-graphite); }
.collection[data-accent="gold"] { --accent: var(--accent-gold); }

.col-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--accent);
}
.kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.col-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-style: italic;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 24px;
}

.product {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid var(--line-soft);
}

.product-media {
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--accent) 0%, var(--paper) 75%);
}
.product-icon {
  width: 42%;
  height: 42%;
  fill: none;
  stroke: var(--paper-ink);
  stroke-width: 1.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.85;
}

.product-info { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-name {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
}
.product-prices { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.product-prices li { display: flex; justify-content: space-between; gap: 12px; }
.product-prices .material { color: var(--muted); }
.product-note { font-size: 11px; color: var(--muted); margin: 0; font-style: italic; }

.chain-lengths-label { font-size: 11px; color: var(--muted); margin: 0; }
.chain-lengths { display: flex; flex-wrap: wrap; gap: 6px; }
.chain-lengths li {
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 2px 8px;
}

.inquire {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--paper-ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.inquire:hover { background: var(--paper-ink); color: var(--paper); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 24px 120px;
  border-top: 1px solid var(--divider);
  text-align: center;
}
.footer-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.06em;
}
.footer-years { color: var(--muted); margin: 0; font-size: 12px; letter-spacing: 0.2em; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; font-size: 12px; }
.footer-links a { text-decoration: none; border-bottom: 1px solid var(--divider); }
.footer-links a:hover { border-color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie-banner[hidden] { display: none; }
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 1px solid var(--paper-ink);
  font-size: 12px;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; }
.btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 20px;
  cursor: pointer;
  border: 1px solid var(--paper-ink);
  background: var(--paper);
  color: var(--paper-ink);
}
.btn-solid { background: var(--paper-ink); color: var(--paper); }
.btn:hover { opacity: 0.8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 12px);
  background: var(--paper-ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 12px 20px;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 640px) {
  body { font-size: 13px; }
  .cat-divider { padding: 32px 6vw; }
  .collection { padding: 16px 6vw 48px; }
  .top-nav { padding: 0 20px; }
  .top-nav-links { gap: 16px; }
  .shop-subnav { padding: 14px 20px; gap: 16px; }
}
