/* ==========================================================================
   Sugarloom Artisan Confections
   Main stylesheet
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL Open Font License) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --c-bg: #fff9f4;
  --c-surface: #ffffff;
  --c-cream: #fbf1e7;
  --c-blush: #fdeef3;
  --c-ink: #2b1a28;
  --c-text: #3f2d3b;
  --c-muted: #6f5b69;
  --c-border: #eedfe5;
  --c-primary: #c2306a;
  --c-primary-dark: #9d1f52;
  --c-primary-soft: #fbe3ec;
  --c-plum: #3a1634;
  --c-plum-deep: #2a1027;
  --c-honey: #e7b04a;
  --c-mint-soft: #e2f4ee;
  --c-lavender-soft: #efe9fb;
  --c-amber-soft: #fbedd5;
  --c-success: #1d5b3c;
  --c-error: #b42318;
  --c-focus: #9d1f52;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(58, 22, 52, 0.06), 0 4px 12px rgba(58, 22, 52, 0.05);
  --shadow: 0 14px 34px -14px rgba(58, 22, 52, 0.3);
  --shadow-lg: 0 34px 70px -24px rgba(58, 22, 52, 0.42);

  --header-h: 76px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--c-ink);
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--c-primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover {
  color: var(--c-primary);
}

ul,
ol {
  padding-left: 1.25em;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

address {
  font-style: normal;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

::selection {
  background: #ffd3e1;
  color: var(--c-ink);
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.narrow {
  max-width: 880px;
}

.section {
  padding: 96px 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.clipboard-helper {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 2000;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--c-plum);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.section-lead {
  font-size: 1.125rem;
  color: var(--c-muted);
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-primary-dark);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--c-primary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(194, 48, 106, 0.9);
}

.btn-primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--c-plum);
  color: var(--c-plum);
}

.btn-outline:hover {
  background: var(--c-plum);
  color: #fff;
}

.btn-ghost {
  background: rgba(58, 22, 52, 0.06);
  color: var(--c-plum);
}

.btn-ghost:hover {
  background: rgba(58, 22, 52, 0.12);
  color: var(--c-plum);
}

.btn-text {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--c-primary-dark);
  white-space: normal;
  text-align: left;
}

.btn-text:hover {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-xs {
  padding: 5px 12px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 249, 244, 0.95);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.site-header.is-scrolled {
  border-color: var(--c-border);
  box-shadow: 0 10px 30px -24px rgba(58, 22, 52, 0.55);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--c-ink);
}

.brand-logo {
  width: 44px;
  height: 44px;
  transition: transform 0.7s var(--ease);
}

.brand:hover .brand-logo {
  transform: rotate(-24deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-list {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--c-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.reading-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 3px;
  border: 0;
  background: transparent;
  color: var(--c-primary);
  -webkit-appearance: none;
  appearance: none;
}

.reading-progress::-webkit-progress-bar {
  background: transparent;
}

.reading-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--c-honey), var(--c-primary));
}

.reading-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--c-honey), var(--c-primary));
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px 0 88px;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.hero::before {
  top: -240px;
  right: -200px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle at 35% 35%, #ffd6e2, rgba(255, 214, 226, 0) 66%);
}

.hero::after {
  bottom: -280px;
  left: -220px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, #ffe7c4, rgba(255, 231, 196, 0) 66%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.hero-title {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.text-gradient {
  color: var(--c-primary);
  background: linear-gradient(100deg, var(--c-primary) 15%, #d9541e 85%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 32px;
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--c-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  padding-left: 16px;
  border-left: 3px solid var(--c-primary-soft);
}

.hero-facts strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--c-ink);
}

.hero-facts span {
  font-size: 0.9rem;
  color: var(--c-muted);
}

.hero-media {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.hero-figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 260px 260px 32px 32px;
  box-shadow: var(--shadow-lg);
  background: var(--c-cream);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-seal {
  position: absolute;
  top: 8px;
  right: -14px;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: var(--c-plum);
  box-shadow: var(--shadow);
  color: #ffd1df;
}

.hero-seal-ring {
  width: 100%;
  height: 100%;
  animation: spin 26s linear infinite;
}

.hero-seal-text {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  fill: #ffe3ec;
}

.hero-seal-icon {
  position: absolute;
  width: 34px;
  height: 34px;
  color: var(--c-honey);
}

.hero-badge {
  position: absolute;
  left: -36px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 330px;
  padding: 12px 18px 12px 12px;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--c-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.hero-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hero-badge-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary-dark);
}

.hero-badge-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.hero-badge-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-muted);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Candy swatches ---------- */
.swatch {
  --sw-1: #f3c6d6;
  --sw-2: #c2306a;
  position: relative;
  display: inline-block;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.92) 0 7%, rgba(255, 255, 255, 0) 16%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24) 0 2px, rgba(255, 255, 255, 0) 2px 7px),
    radial-gradient(circle at 40% 35%, var(--sw-1), var(--sw-2) 78%);
  box-shadow: inset -4px -6px 12px rgba(0, 0, 0, 0.14), inset 3px 4px 8px rgba(255, 255, 255, 0.45), 0 8px 16px -8px rgba(58, 22, 52, 0.45);
}

.swatch--sm {
  width: 34px;
  height: 34px;
}

.swatch--xl {
  width: 180px;
  height: 180px;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.92) 0 6%, rgba(255, 255, 255, 0) 15%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24) 0 5px, rgba(255, 255, 255, 0) 5px 16px),
    radial-gradient(circle at 40% 35%, var(--sw-1), var(--sw-2) 78%);
}

.swatch--lavender { --sw-1: #d5c6f5; --sw-2: #7d5cc6; }
.swatch--rose { --sw-1: #ffd3de; --sw-2: #e06a90; }
.swatch--elderflower { --sw-1: #fff7d1; --sw-2: #d9bf55; }
.swatch--hibiscus { --sw-1: #ff8cc0; --sw-2: #b0105a; }
.swatch--buckthorn { --sw-1: #ffc46b; --sw-2: #e2620c; }
.swatch--mango { --sw-1: #ffe08a; --sw-2: #ef8a17; }
.swatch--matcha { --sw-1: #bfe8c7; --sw-2: #4b9a66; }
.swatch--basil { --sw-1: #e1f59e; --sw-2: #74ad12; }
.swatch--grapefruit { --sw-1: #ffd2c2; --sw-2: #e8694b; }
.swatch--blood-orange { --sw-1: #ff9c6e; --sw-2: #bd2418; }
.swatch--caramel { --sw-1: #f8cf7d; --sw-2: #ad6212; }
.swatch--sesame { --sw-1: #d8cfc6; --sw-2: #463c37; }

/* ---------- Highlights ---------- */
.highlights {
  padding: 0 0 16px;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.highlight {
  padding: 26px 24px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.highlight-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
}

.highlight-icon svg {
  width: 24px;
  height: 24px;
}

.highlight:nth-child(2) .highlight-icon {
  background: var(--c-mint-soft);
  color: #22705c;
}

.highlight:nth-child(3) .highlight-icon {
  background: var(--c-lavender-soft);
  color: #5b3fa0;
}

.highlight:nth-child(4) .highlight-icon {
  background: var(--c-amber-soft);
  color: #8a4b0c;
}

.highlight-title {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.highlight p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-muted);
}

/* ---------- Article layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 72px;
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.toc-inner {
  padding: 22px 20px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.toc-toggle-icon {
  width: 20px;
  height: 20px;
  color: var(--c-muted);
  transition: transform 0.25s var(--ease);
}

.toc.is-open .toc-toggle-icon {
  transform: rotate(180deg);
}

.js .toc:not(.is-open) .toc-body {
  display: none;
}

.toc-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  border-left: 2px solid var(--c-border);
}

.toc-list li {
  counter-increment: toc;
}

.toc-list a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  color: var(--c-muted);
  font-size: 0.93rem;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.toc-list a::before {
  content: counter(toc, decimal-leading-zero);
  margin-right: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #a98ea0;
}

.toc-list--plain a::before {
  content: none;
}

.toc-list a:hover {
  color: var(--c-ink);
}

.toc-list a.is-active {
  border-left-color: var(--c-primary);
  color: var(--c-primary-dark);
  font-weight: 600;
}

.toc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}

/* ---------- Article typography ---------- */
.article {
  min-width: 0;
  max-width: 800px;
  font-size: 1.0625rem;
  line-height: 1.78;
}

.article-header {
  margin-bottom: 32px;
}

.article-title {
  margin-bottom: 18px;
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-muted);
}

.article-meta-sep {
  color: #c9b3c1;
}

.article-lead {
  font-size: 1.24rem;
  line-height: 1.68;
  color: var(--c-ink);
}

.article-lead::first-letter {
  float: left;
  margin: 0.06em 0.12em 0 0;
  font-family: var(--font-display);
  font-size: 4.1em;
  font-weight: 700;
  line-height: 0.8;
  color: var(--c-primary);
}

.article-section {
  padding-top: 8px;
}

.article h3 {
  margin: 64px 0 18px;
  font-size: clamp(1.55rem, 2.6vw, 2.05rem);
  line-height: 1.2;
}

.article h4 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.article ul li,
.article ol li {
  margin-bottom: 8px;
}

.article-figure {
  margin: 34px 0;
}

.article-figure img {
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

figcaption {
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  color: var(--c-muted);
}

.check-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 38px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%239d1f52' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.callout {
  margin: 34px 0;
  padding: 22px 26px;
  border: 1px solid;
  border-radius: 20px;
}

.callout p:last-child,
.callout ul:last-child {
  margin-bottom: 0;
}

.callout-title {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-ink);
}

.callout-info {
  border-color: #ddd2f5;
  background: var(--c-lavender-soft);
}

.callout-warning {
  border-color: #f3d39c;
  background: #fff4e0;
}

.callout-warning ul {
  margin: 10px 0 0;
  padding-left: 1.1em;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
}

.fact-grid div {
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: #fff;
}

.fact-grid dt {
  margin-bottom: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  line-height: 1.4;
}

.fact-grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-ink);
}

/* ---------- Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--c-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.tag--floral { background: var(--c-lavender-soft); color: #5b3fa0; }
.tag--fruity { background: #fde4ea; color: #a3214f; }
.tag--herbal { background: var(--c-mint-soft); color: #22705c; }
.tag--bold { background: var(--c-amber-soft); color: #8a4b0c; }

/* ---------- Signature flavor cards ---------- */
.flavor-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 8px;
}

.flavor-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.flavor-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.flavor-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--c-cream);
}

.flavor-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.flavor-card:hover .flavor-card-media img {
  transform: scale(1.05);
}

.flavor-card-media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  box-shadow: var(--shadow-sm);
}

.flavor-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 22px 22px;
}

.article .flavor-card-title {
  margin-bottom: 8px;
  font-size: 1.28rem;
}

.flavor-card-body p {
  flex: 1;
  margin-bottom: 16px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--c-muted);
}

/* ---------- Flavor library ---------- */
.library-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 28px 0 14px;
}

.search-field {
  position: relative;
  flex: 1 1 240px;
  max-width: 340px;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--c-muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  padding: 11px 16px 11px 42px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(194, 48, 106, 0.14);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  background: #fff;
  color: var(--c-text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.filter-btn:hover {
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}

.filter-btn.is-active {
  border-color: var(--c-plum);
  background: var(--c-plum);
  color: #fff;
}

.article .library-count {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.library-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article .library-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.article .library-item:hover {
  border-color: #e7c6d4;
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.article .library-item-title {
  margin: 0 0 2px;
  font-size: 1.08rem;
}

.article .library-item-notes {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.article .library-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--c-muted);
}

.library-empty {
  margin: 12px 0 0;
  padding: 18px 20px;
  border: 1px dashed #e2c9d4;
  border-radius: 16px;
  background: #fff;
  color: var(--c-muted);
  font-size: 0.97rem;
}

/* ---------- Process steps ---------- */
.steps {
  position: relative;
  margin: 32px 0;
  padding: 0;
  list-style: none;
}

.article .step {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  margin: 0;
  padding-bottom: 28px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 60px;
  bottom: 4px;
  left: 27px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, #efc7d6 0 6px, transparent 6px 12px);
}

.step-number {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--c-primary-soft);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--c-primary-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.article .step-body h4 {
  margin: 12px 0 6px;
}

.step-body p {
  margin: 0;
}

.figure-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 8px 0 12px;
}

.figure-pair figure {
  margin: 0;
}

.figure-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

/* ---------- Tasting list ---------- */
.tasting-list {
  margin: 24px 0;
  padding: 0;
  list-style: none;
  counter-reset: taste;
}

.article .tasting-list li {
  position: relative;
  counter-increment: taste;
  margin-bottom: 16px;
  padding-left: 52px;
}

.tasting-list li::before {
  content: counter(taste);
  position: absolute;
  top: 0.1em;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-plum);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

/* ---------- Pairing table ---------- */
.table-wrap {
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.pairing-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.5;
}

.pairing-table th,
.pairing-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.pairing-table thead th {
  background: var(--c-plum);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pairing-table tbody th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-ink);
}

.pairing-table tbody tr:nth-child(even) {
  background: #fdf6f8;
}

.pairing-table tbody tr:last-child th,
.pairing-table tbody tr:last-child td {
  border-bottom: 0;
}

.inline-cta {
  margin-top: 28px;
}

/* ---------- Article footer ---------- */
.article-footer {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.article .tag-list li {
  margin: 0;
  padding: 6px 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  color: var(--c-muted);
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background: #fff;
}

.author-avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9fbb, var(--c-primary));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.author-name {
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--c-ink);
}

.author-box p {
  margin-bottom: 0;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--c-muted);
}

.author-box .author-name {
  color: var(--c-ink);
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.article-share-label {
  margin: 0 6px 0 0;
  font-weight: 600;
  color: var(--c-ink);
}

/* ---------- Flavor finder ---------- */
.finder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 90% -10%, rgba(226, 74, 127, 0.38), rgba(226, 74, 127, 0) 60%),
    radial-gradient(900px 420px at -10% 110%, rgba(231, 176, 74, 0.2), rgba(231, 176, 74, 0) 60%),
    var(--c-plum);
  color: #f5e9f0;
}

.finder h2,
.finder h3 {
  color: #fff;
}

.finder .eyebrow {
  color: #ffb3c9;
}

.finder :focus-visible {
  outline-color: #ffd27a;
}

.finder-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 64px;
}

.finder-intro p {
  font-size: 1.1rem;
  color: #ead8e2;
}

.finder-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.finder-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f5e9f0;
}

.finder-points svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: #ff9fbb;
}

.finder-last {
  margin: 24px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.98rem;
}

.finder .link-btn {
  color: #ffb3c9;
  font-weight: 600;
}

.finder .link-btn:hover {
  color: #fff;
}

.finder-panel {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
}

.finder-question {
  min-width: 0;
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

.finder-question legend {
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.option-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option {
  position: relative;
  display: block;
  cursor: pointer;
}

.option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  height: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.option-title {
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}

.option-hint {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #dcc7d4;
}

.option:hover .option-label {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.option input:checked + .option-label {
  border-color: #ff8fb1;
  background: rgba(255, 143, 177, 0.16);
  box-shadow: inset 0 0 0 1px #ff8fb1;
}

.option input:focus-visible + .option-label {
  outline: 3px solid #ffd27a;
  outline-offset: 2px;
}

.finder-error {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 99, 140, 0.18);
  color: #ffe0e8;
  font-size: 0.95rem;
}

.finder-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.finder .btn-primary {
  background: #ff8fb1;
  color: #2b0f24;
  box-shadow: 0 12px 26px -12px rgba(255, 143, 177, 0.8);
}

.finder .btn-primary:hover {
  background: #ffb3c9;
  color: #2b0f24;
}

.finder .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.finder .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.finder .btn-outline {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.finder .btn-outline:hover {
  background: #fff;
  color: var(--c-plum);
}

.finder .btn-text {
  color: #ffb3c9;
}

.finder .btn-text:hover {
  color: #fff;
}

.result-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.result-media {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.result-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-media .swatch--xl {
  width: 150px;
  height: 150px;
}

.result-title {
  margin: 10px 0 8px;
  font-size: 1.85rem;
}

.result-notes {
  color: #f3e3eb;
}

.result-why {
  font-size: 0.95rem;
  color: #dcc7d4;
}

.result-more {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.result-more-title {
  margin: 0 0 10px;
  font-weight: 600;
  color: #fff;
}

.result-alt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.result-alt-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.result-alt-btn:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- FAQ ---------- */
.faq {
  background: linear-gradient(180deg, var(--c-bg), #fdf0f4);
}

.faq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}

.faq-head .section-title {
  margin-bottom: 0;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--c-border);
  border-radius: 18px;
  background: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.accordion-item.is-open {
  border-color: #e9c3d3;
  box-shadow: var(--shadow-sm);
}

.accordion-heading {
  margin: 0;
  font-size: inherit;
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  border-radius: 18px;
  background: none;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.accordion-icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  transition: background-color 0.3s;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-primary-dark);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-item.is-open .accordion-icon {
  background: var(--c-primary);
}

.accordion-item.is-open .accordion-icon::before,
.accordion-item.is-open .accordion-icon::after {
  background: #fff;
}

.accordion-item.is-open .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s linear 0.35s;
}

.accordion-item.is-open .accordion-panel,
html:not(.js) .accordion-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.35s var(--ease), visibility 0s linear 0s;
}

.accordion-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.accordion-answer {
  padding: 0 24px 22px;
}

.accordion-answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  gap: 64px;
}

.contact-list {
  display: grid;
  gap: 24px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list > li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--c-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: var(--c-primary-dark);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-label {
  margin: 0 0 4px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contact-list address,
.contact-value {
  margin: 0 0 6px;
  line-height: 1.55;
  color: var(--c-ink);
}

.contact-value a {
  font-weight: 600;
  word-break: break-word;
}

.contact-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.card {
  padding: 36px;
  border: 1px solid var(--c-border);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  margin-bottom: 6px;
  font-size: 1.55rem;
}

.form-intro {
  margin-bottom: 24px;
  color: var(--c-muted);
}

.form-row.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink);
}

.req {
  color: var(--c-primary);
}

.optional {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--c-muted);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: 12px;
  background: #fffdfb;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%236f5b69' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(194, 48, 106, 0.14);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--c-error);
}

.form-field.is-highlighted input {
  border-color: var(--c-primary);
  animation: field-glow 1.4s var(--ease) 2;
}

@keyframes field-glow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(194, 48, 106, 0);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(194, 48, 106, 0.2);
  }
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--c-error);
}

.field-error:empty {
  display: none;
}

.field-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.char-count {
  margin: 6px 0 0 auto;
  font-size: 0.8rem;
  color: var(--c-muted);
  white-space: nowrap;
}

.form-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 4px 12px;
}

.form-check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--c-primary);
  cursor: pointer;
}

.form-field.form-check label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--c-text);
}

.form-check .field-error {
  grid-column: 2;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--c-muted);
}

.form-status {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.form-status p {
  margin: 0 0 6px;
}

.form-status p:last-child {
  margin-bottom: 0;
}

.form-status.is-success {
  border: 1px solid #b7e2cb;
  background: #e8f6ef;
  color: var(--c-success);
}

.form-status.is-error {
  border: 1px solid #f5c2c2;
  background: #fdecec;
  color: #8a1f1f;
}

.form-status-title {
  font-weight: 700;
}

.form-status .link-btn {
  color: inherit;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 72px 0 28px;
  background: var(--c-plum-deep);
  color: #e9d8e3;
}

.site-footer a {
  color: #ffd1df;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer .brand,
.site-footer .brand:hover {
  color: #fff;
  text-decoration: none;
}

.site-footer .brand-tagline {
  color: #cdb3c4;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 18px;
  font-size: 0.95rem;
  color: #d8c3d0;
}

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.site-footer .link-btn {
  color: #ffd1df;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: left;
}

.site-footer .link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer address {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact p {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 32px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #c4abbb;
}

.footer-bottom p {
  margin: 0;
}

.footer-disclaimer {
  max-width: 72ch;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 900;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  border: 1px solid var(--c-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 60px -18px rgba(42, 16, 39, 0.5);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.cookie-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--c-amber-soft);
  color: #8a4b0c;
}

.cookie-icon svg {
  width: 28px;
  height: 28px;
}

.cookie-text {
  flex: 1;
  font-size: 0.93rem;
  line-height: 1.55;
}

.cookie-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--c-ink);
}

.cookie-text p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 12, 29, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  width: 100%;
  max-width: 900px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal-dialog {
  transform: none;
}

.modal-dialog:focus {
  outline: none;
}

.modal-dialog--narrow {
  display: block;
  max-width: 620px;
}

.modal-media {
  position: relative;
  min-height: 280px;
  background: var(--c-cream);
}

.modal-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-media--swatch {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 40%, #fff, var(--c-cream) 70%);
}

.modal-body {
  padding: 38px 34px 30px;
}

.modal-title {
  margin: 12px 0 10px;
  font-size: 1.9rem;
}

.modal-dialog--narrow .modal-title {
  margin-top: 0;
}

.modal-lead {
  font-size: 1.04rem;
}

.modal-details {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.modal-details div {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--c-border);
}

.modal-details dt {
  margin-bottom: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.modal-details dd {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--c-ink);
}

.flavor-scales {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-muted);
}

.scale-dots {
  display: inline-flex;
  gap: 6px;
}

.scale-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-border);
}

.scale-dots .dot.is-filled {
  background: var(--c-primary);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  color: var(--c-ink);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}

.modal-close:hover {
  background: #fff;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

body.modal-open {
  overflow: hidden;
}

/* Cookie preferences */
.cookie-options {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: #fffdfb;
}

.cookie-option-title {
  margin: 0 0 2px;
  font-weight: 700;
  color: var(--c-ink);
}

.cookie-option p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--c-muted);
}

.cookie-option .cookie-option-title {
  color: var(--c-ink);
}

.switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 50px;
  height: 28px;
  margin-top: 2px;
}

.switch input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d6c5cf;
  transition: background-color 0.25s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease);
}

.switch input:checked + .switch-track {
  background: var(--c-primary);
}

.switch input:checked + .switch-track::after {
  transform: translateX(22px);
}

.switch input:disabled {
  cursor: not-allowed;
}

.switch input:disabled + .switch-track {
  background: #4f9d86;
}

.switch input:focus-visible + .switch-track {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}

.gpc-note {
  padding: 12px 16px;
  border: 1px solid #b7e2cb;
  border-radius: 12px;
  background: #e8f6ef;
  font-size: 0.9rem;
  color: var(--c-success);
}

/* ---------- Toast & back to top ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 1100;
  width: max-content;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 22px;
  border-radius: 16px;
  background: var(--c-plum);
  box-shadow: var(--shadow);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.3s, transform 0.3s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--c-plum);
  box-shadow: 0 0 0 2px rgba(255, 249, 244, 0.9), var(--shadow);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0.3s, background-color 0.2s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0s linear 0s, background-color 0.2s;
}

.back-to-top:hover {
  background: var(--c-primary);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

body.cookie-banner-open .back-to-top {
  opacity: 0;
  visibility: hidden;
}

/* ---------- Reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Legal pages ---------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(180deg, #fdeef3, var(--c-bg));
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--c-muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #c9b3c1;
}

.page-title {
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
}

.page-intro {
  max-width: 720px;
  font-size: 1.12rem;
  color: var(--c-text);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 22px;
  font-size: 0.95rem;
  color: var(--c-muted);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  padding-top: 56px;
  padding-bottom: 96px;
}

.legal-content {
  min-width: 0;
  max-width: 800px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.legal-content h2 {
  margin: 52px 0 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}

.legal-content h3 {
  margin: 28px 0 10px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-summary {
  margin-bottom: 8px;
  padding: 24px 26px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.legal-summary h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.legal-summary ul {
  margin-bottom: 0;
}

.legal-table-wrap {
  margin: 18px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--c-border);
  text-align: left;
  vertical-align: top;
}

.legal-table thead th {
  background: #fbf1f5;
  font-weight: 700;
  color: var(--c-ink);
}

.legal-table tbody tr:last-child td {
  border-bottom: 0;
}

.legal-table code,
.legal-content code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f6edf1;
  font-size: 0.86em;
}

.consent-status {
  padding: 12px 16px;
  border: 1px solid #ddd2f5;
  border-radius: 12px;
  background: var(--c-lavender-soft);
  font-size: 0.95rem;
  color: var(--c-ink);
}

.legal-contact {
  padding: 24px 26px;
  border: 1px solid var(--c-border);
  border-radius: 20px;
  background: #fff;
}

.legal-contact address {
  margin-bottom: 8px;
}

.legal-contact p {
  margin-bottom: 8px;
}

.legal-contact .contact-inline-actions {
  margin-top: 14px;
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    max-height: calc(100vh - var(--header-h));
    padding: 14px 20px 24px;
    overflow-y: auto;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-bg);
    box-shadow: 0 24px 40px -24px rgba(58, 22, 52, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    gap: 2px;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1.05rem;
  }

  .nav-cta {
    align-self: flex-start;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-media {
    justify-self: center;
  }

  .article-layout,
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 56px;
  }

  .toc {
    position: static;
  }

  .finder-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .highlights-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 72px 0;
  }

  .modal {
    align-items: flex-end;
    padding: 10px;
  }

  .modal-dialog {
    display: block;
    max-height: calc(100vh - 20px);
    border-radius: 22px;
  }

  .modal-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .modal-media--swatch .swatch--xl {
    width: 140px;
    height: 140px;
  }

  .modal-body {
    padding: 26px 22px 24px;
  }

  .modal-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 640px) {
  .table-wrap {
    overflow: hidden;
  }

  .pairing-table {
    min-width: 0;
  }

  .pairing-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .pairing-table tbody,
  .pairing-table tr,
  .pairing-table th,
  .pairing-table td {
    display: block;
    width: 100%;
  }

  .pairing-table tbody tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--c-border);
  }

  .pairing-table tbody tr:last-child {
    border-bottom: 0;
  }

  .pairing-table tbody th,
  .pairing-table td,
  .pairing-table tbody tr:last-child th,
  .pairing-table tbody tr:last-child td {
    padding: 3px 0;
    border: 0;
  }

  .pairing-table tbody th {
    margin-bottom: 4px;
    font-size: 1.12rem;
  }

  .pairing-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
  }

  .legal-table-wrap {
    overflow: hidden;
  }

  .legal-table {
    min-width: 0;
  }

  .legal-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
  }

  .legal-table tbody tr:last-child {
    border-bottom: 0;
  }

  .legal-table td,
  .legal-table tbody tr:last-child td {
    padding: 3px 0;
    border: 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-muted);
  }

  .toast {
    bottom: 86px;
  }

  .hero {
    padding: 32px 0 64px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-badge {
    right: 12px;
    bottom: 16px;
    left: 12px;
    max-width: none;
  }

  .hero-seal {
    top: 0;
    right: -4px;
    width: 96px;
    height: 96px;
  }

  .hero-seal-icon {
    width: 26px;
    height: 26px;
  }

  .highlights-grid,
  .flavor-cards,
  .figure-pair,
  .fact-grid,
  .option-grid,
  .option-grid--3,
  .result-alt,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row.two {
    grid-template-columns: 1fr;
  }

  .card,
  .finder-panel {
    padding: 24px 20px;
  }

  .result-card {
    grid-template-columns: 1fr;
  }

  .result-media {
    max-width: 240px;
  }

  .article .library-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .article .library-item .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .author-box {
    flex-direction: column;
  }

  .accordion-trigger {
    padding: 18px;
    font-size: 1.02rem;
  }

  .accordion-answer {
    padding: 0 18px 18px;
  }

  .cookie-banner {
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 18px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header,
  .skip-link,
  .cookie-banner,
  .back-to-top,
  .toast,
  .modal,
  .toc,
  .hero-actions,
  .hero-badge,
  .hero-seal,
  .article-share,
  .page-actions,
  .library-tools,
  .finder,
  .contact-form,
  .footer-grid,
  .btn {
    display: none !important;
  }

  body.printing-article .hero,
  body.printing-article .highlights,
  body.printing-article .faq,
  body.printing-article .contact,
  body.printing-article .site-footer {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .article-layout,
  .legal-layout {
    display: block;
    padding: 0;
  }

  .article,
  .legal-content {
    max-width: none;
  }

  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .accordion-panel {
    grid-template-rows: 1fr !important;
    visibility: visible !important;
  }

  .legal-content a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
  }

  img {
    break-inside: avoid;
    box-shadow: none !important;
  }

  h2,
  h3,
  h4 {
    break-after: avoid;
  }
}
