/* ===== Blackcarat — modern affiliate edition ===== */

:root {
  --ink: #1a1a1a;
  --charcoal: #262626;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --muted: #6f6a63;
  --line: #e7e2da;
  --gold: #b08d57;
  --gold-dark: #8a6c3e;
  --radius: 4px;
  --maxw: 1200px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Top bar ===== */
.topbar {
  background: var(--charcoal);
  color: #d8d2c8;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  text-align: center;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}
.brand {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand span {
  color: var(--gold);
  font-style: italic;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 500;
}
.header-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 16px;
  gap: 8px;
  min-width: 240px;
}
.header-search input {
  border: 0;
  outline: 0;
  font-family: var(--sans);
  font-size: 14px;
  background: transparent;
  width: 100%;
  color: var(--ink);
}
.header-search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
}

/* ===== Nav ===== */
.main-nav {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 16px 18px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--gold);
}
.main-nav .tag {
  color: var(--gold-dark);
  font-weight: 600;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: 80px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 22px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
}
.hero h1 em {
  color: var(--gold);
}
.hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 36px;
}
.hero-img {
  background-image: url("images/hero.png");
  background-size: cover;
  background-position: center;
  min-height: 460px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.btn-primary {
  background: var(--charcoal);
  color: #fff;
}
.btn-primary:hover {
  background: var(--gold-dark);
}
.btn-ghost {
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: #fff;
}

/* ===== Section heading ===== */
.section {
  padding: 80px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  margin-bottom: 12px;
}
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
}
.section-head p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Categories ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: block;
}
.cat-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover img {
  transform: scale(1.06);
}
.cat-card .cat-label {
  padding: 18px 16px;
  text-align: center;
}
.cat-card .cat-label span {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}
.cat-card .cat-label small {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

/* ===== Products ===== */
.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prod-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.prod-card:hover {
  box-shadow: 0 18px 40px -24px rgba(26, 26, 26, 0.4);
  transform: translateY(-4px);
}
.prod-thumb {
  position: relative;
  background: #fff;
}
.prod-thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.prod-thumb .retailer {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(38, 38, 38, 0.88);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.prod-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.prod-body h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
}
.prod-body .desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.prod-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  margin-bottom: 16px;
}
.price {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}
.price small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.aff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--charcoal);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background 0.2s;
}
.aff-btn:hover {
  background: var(--gold-dark);
}
.aff-btn svg {
  width: 14px;
  height: 14px;
}

/* ===== About ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about .eyebrow {
  margin-bottom: 14px;
}
.about h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.12;
  margin-bottom: 22px;
}
.about p {
  color: var(--muted);
  margin-bottom: 16px;
}
.about-img {
  background-image: url("images/engagement.png");
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  min-height: 420px;
  border: 1px solid var(--line);
}
.disclosure {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  font-style: italic;
}

/* ===== Newsletter ===== */
.newsletter {
  background: var(--charcoal);
  color: #f2ede4;
  text-align: center;
}
.newsletter h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  margin-bottom: 14px;
}
.newsletter p {
  color: #c5beb1;
  max-width: 52ch;
  margin: 0 auto 30px;
}
.news-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.news-form input {
  flex: 1;
  border: 1px solid #4a4a4a;
  background: #1f1f1f;
  color: #fff;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
}
.news-form input::placeholder {
  color: #8c857a;
}
.news-form button {
  border: 0;
  cursor: pointer;
  background: var(--gold);
  color: #1a1a1a;
  font-family: var(--sans);
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  transition: background 0.2s;
}
.news-form button:hover {
  background: #c8a368;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #b7b1a6;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand {
  color: #fff;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  max-width: 34ch;
}
.footer-col h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--gold);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  font-size: 12px;
  color: #8b857a;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

/* ===== Dictionary page ===== */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 60px;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  margin-bottom: 18px;
}
.page-hero h1 em {
  color: var(--gold);
}
.page-hero p {
  color: var(--muted);
  font-size: 17px;
  max-width: 60ch;
  margin: 0 auto;
}

.az-bar {
  position: sticky;
  top: 84px;
  z-index: 40;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.az-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 12px 24px;
}
.az-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  transition: background 0.2s, color 0.2s;
}
.az-link:hover {
  background: var(--charcoal);
  color: #fff;
}
.az-link.is-empty {
  color: var(--line);
  pointer-events: none;
}

.glossary .wrap {
  max-width: 820px;
}
.letter-group {
  margin-bottom: 40px;
  scroll-margin-top: 150px;
}
.letter-head {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  padding-bottom: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.glossary dl {
  display: grid;
  gap: 22px;
}
.glossary dt {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.glossary dd {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.7;
}
.grade-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  gap: 6px;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}
.grade-list li {
  font-size: 14.5px;
}
.grade-list strong {
  color: var(--ink);
}
.back-link {
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.back-link a {
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-dark);
  transition: color 0.2s;
}
.back-link a:hover {
  color: var(--ink);
}

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-img { min-height: 340px; order: -1; }
  .hero-copy { padding: 56px 32px; }
  .about { grid-template-columns: 1fr; gap: 36px; }
  .about-img { min-height: 320px; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .header-search { display: none; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .news-form { flex-direction: column; border-radius: 12px; }
  .news-form input, .news-form button { width: 100%; }
  .section { padding: 56px 0; }
}
