:root {
  --ivory: #F7EFE0;
  --paper: #FBF6EC;
  --ivory-deep: #EFE4CE;
  --ink: #0B0B09;
  --ink-body: #4A4433;
  --ink-soft: #7A7360;
  --gold: #D79A2B;
  --gold-ink: #96650F;
  --sand: #CBBBA7;
  --sage: #B8C1B3;
  --line: rgba(11, 11, 9, 0.1);
  --line-on-ink: rgba(247, 239, 224, 0.16);
  --shadow: 0 20px 60px rgba(11, 11, 9, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink-body);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, .aspect { max-width: 100%; }

h1, h2, h3, blockquote, p { margin: 0; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

a { color: inherit; }

.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- shared section pattern: eyebrow / heading / body ---------- */
.section-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 2.5vw, 28px);
}
.section-heading {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--ink);
  line-height: 1.3;
  max-width: 840px;
  text-wrap: balance;
}
.section-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- spark glyph ---------- */
.spark { display: inline-block; color: var(--gold); }
.spark svg { display: block; }
.spark-spin { animation: spark-in 1.1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes spark-in {
  0% { opacity: 0; transform: rotate(-35deg) scale(0.4); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .spark-spin { animation: none; }
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 239, 224, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}
.logotype {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logotype img { display: block; }
nav ul {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
}
nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-body);
  position: relative;
  padding-bottom: 3px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.25s ease;
}
nav a:hover::after { right: 0; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(56px, 9vw, 108px) clamp(64px, 10vw, 120px);
}
.hero .section-heading {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  line-height: 1.12;
  max-width: 20ch;
}

/* ---------- spark card (quote widget) ---------- */
.spark-card {
  position: relative;
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(18px, 3vw, 44px) clamp(28px, 4vw, 40px);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 820px;
}
.spark-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(155deg, rgba(215,154,43,0.55), rgba(215,154,43,0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
#spark-text {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  min-height: 84px;
}
#spark-category {
  display: block;
  margin-top: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.spark-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn svg { display: block; transition: transform 0.15s ease; }
#like-btn:hover:not(:disabled) svg { transform: scale(1.14); }
#like-btn:disabled { cursor: default; }
#like-btn svg { color: var(--ink-soft); }
#like-btn.liked svg { color: var(--gold); }

.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border: 1px solid var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary:hover:not(:disabled) {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-primary:disabled { opacity: 0.55; cursor: default; }

/* ---------- section shell ---------- */
section { padding-block: clamp(64px, 9vw, 120px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 11px 26px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-outline:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

/* ---------- section: categories ---------- */
.category-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(48px, 7vw, 76px);
  flex-wrap: wrap;
}
.category-row::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent);
  z-index: 0;
}
.category {
  position: relative;
  z-index: 1;
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform 0.25s ease;
}
.category:hover { transform: translateY(-6px); }
.category-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tint, var(--sand));
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(11,11,9,0.08);
}
.category-icon img {
  height: 28px;
  width: auto;
  display: block;
}
.category-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-body);
}

/* ---------- section: the ripple ---------- */
.ripple {
  background: var(--ink);
  color: var(--ivory);
}
.ripple .eyebrow { color: var(--gold); }
.ripple .section-heading { color: var(--ivory); }
.ripple .section-body { color: #D9CFB8; }
.ripple .btn-outline { color: var(--ivory); border-color: var(--ivory); }
.ripple .btn-outline:hover { color: var(--ink); border-color: var(--gold); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-row nav ul { gap: 26px; }
.footer-row nav a { font-weight: 500; letter-spacing: 0.1em; }
.footer-copy {
  font-size: 0.76rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  nav ul { display: none; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
