/* style.css — Colorway Soda Co / Articles design system
   Rainbow, playful, social-coded identity per colorway-soda-co skill.
   NOT the monochrome JLCC parent identity. */

:root,
[data-theme='light'] {
  /* Surfaces — clean white, matches the colorwaysoda.com storefront */
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #fafafa;
  --color-surface-offset: #fdf3ea;
  --color-surface-offset-2: #fbe9cd;
  --color-surface-dynamic: #f5e2bd;
  --color-divider: #ececec;
  --color-border: #e3e3e3;

  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-text-faint: #999999;
  --color-text-inverse: #ffffff;

  /* Primary accent — storefront's signature green CTA color */
  --color-primary: #2f8a4e;
  --color-primary-hover: #226b3b;
  --color-primary-active: #164d2a;
  --color-primary-highlight: #cfe9d6;

  --color-warning: #b8560f;
  --color-warning-hover: #8f420c;
  --color-warning-active: #6b3109;
  --color-warning-highlight: #f0d8c2;

  --color-error: #b8203f;
  --color-error-hover: #8f1830;
  --color-error-active: #6b1223;
  --color-error-highlight: #f0cdd4;

  --color-success: #2f8a4e;
  --color-success-hover: #226b3b;
  --color-success-active: #164d2a;
  --color-success-highlight: #cfe9d6;

  /* Rainbow band colors — used for the logo mark, wordmark letters, and sparing accents */
  --color-red: #e0473e;
  --color-orange: #ee8a2e;
  --color-yellow: #eec230;
  --color-green: #46a35a;
  --color-blue: #2e7fc1;
  --color-purple: #7d4fbf;

  /* Warm coral accent — pulled from the storefront's product photography backdrops.
     Used for eyebrows, kickers, and small highlights instead of a flat brand color. */
  --color-coral: #e2683f;
  --color-coral-hover: #c8552f;
  --color-coral-highlight: #fbe4d8;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.3 0.06 40 / 0.08);
  --shadow-md: 0 6px 16px oklch(0.3 0.06 40 / 0.1);
  --shadow-lg: 0 16px 40px oklch(0.3 0.06 40 / 0.14);

  --content-narrow: 640px;
  --content-default: 780px;
  --content-wide: 1180px;
  --content-full: 100%;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
}

[data-theme='dark'] {
  --color-bg: #1b140f;
  --color-surface: #221a13;
  --color-surface-2: #271e15;
  --color-surface-offset: #2c2117;
  --color-surface-offset-2: #33261a;
  --color-surface-dynamic: #3c2c1c;
  --color-divider: #3a2c1d;
  --color-border: #4a3924;

  --color-text: #f5ecdc;
  --color-text-muted: #b7a789;
  --color-text-faint: #7d7053;
  --color-text-inverse: #1b140f;

  --color-primary: #4fae6d;
  --color-primary-hover: #6ec98c;
  --color-primary-active: #8fdba7;
  --color-primary-highlight: #1e3a28;

  --color-coral: #e88a63;
  --color-coral-hover: #ee9d7a;
  --color-coral-highlight: #3a2419;

  --color-warning: #e08a4c;
  --color-warning-hover: #eba473;
  --color-warning-active: #f3bd98;
  --color-warning-highlight: #4a3323;

  --color-error: #e0687c;
  --color-error-hover: #e988a1;
  --color-error-active: #f0abbe;
  --color-error-highlight: #4a2530;

  --color-success: #6ec98c;
  --color-success-hover: #8fdba7;
  --color-success-active: #b1e8c3;
  --color-success-highlight: #244a34;

  --color-red: #ea6b62;
  --color-orange: #f2a256;
  --color-yellow: #f2d05a;
  --color-green: #6cbf82;
  --color-blue: #6ba7dd;
  --color-purple: #a17fdb;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 6px 16px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.45);
}

/* ---------- Type scale ---------- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.25rem, 1rem + 3.5vw, 4.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.wrap-narrow {
  width: 100%;
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* ---------- Rainbow arch mark (SVG, injected via build.py RAINBOW_ARCH_SVG) ---------- */

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
  text-decoration: none;
}
.rainbow-arch {
  flex-shrink: 0;
  display: block;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.wordmark {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.wm-letter {
  display: inline;
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.header-nav {
  display: flex;
  gap: var(--space-6);
  align-items: center;
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  align-items: center;
  white-space: nowrap;
}
.header-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.header-nav a:hover {
  color: var(--color-coral);
}
.header-nav a.btn-shop,
.btn-shop {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: #ffffff !important;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.header-nav a.btn-shop:hover,
.btn-shop:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  color: #ffffff !important;
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .btn-shop { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
  .brand small { display: none; }
  .rainbow-arch { width: 32px; height: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24)) clamp(var(--space-8), 5vw, var(--space-16));
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: var(--space-4);
}
h1.page-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: var(--space-5);
}
.dek {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-6);
}

/* ---------- TL;DR box ---------- */
.tldr {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-coral);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin-block: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.tldr strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-coral);
  margin-bottom: var(--space-2);
}
.tldr p {
  color: var(--color-text);
  font-size: var(--text-base);
}

/* ---------- Article body ---------- */
.article-body {
  max-width: var(--content-default);
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}
.article-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.article-body p {
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.article-body ul,
.article-body ol {
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}
.article-body li {
  margin-bottom: var(--space-2);
}
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--color-primary) 40%, transparent);
  text-underline-offset: 2px;
  font-weight: 600;
}
.article-body a:hover {
  color: var(--color-primary-hover);
}
.article-body table {
  margin-block: var(--space-6);
  font-size: var(--text-sm);
}
.article-body th,
.article-body td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
}
.article-body th {
  font-weight: 700;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- FAQ accordion-style blocks (also schema source) ---------- */
.faq-block {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-6);
}
.faq-block h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

/* ---------- Product callout card ---------- */
.product-callout {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-block: var(--space-8);
  box-shadow: var(--shadow-sm);
}
.product-callout img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.product-callout .pc-body { flex: 1; }
.product-callout .pc-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-1);
}
.product-callout h4 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.product-callout p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.product-callout .pc-link {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}
.product-callout .pc-link:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-surface-offset);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  margin-block: var(--space-16);
  border: 1px solid var(--color-border);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}
.cta-band p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 50ch;
  margin-inline: auto;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-7);
  border-radius: var(--radius-full);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
}

/* ---------- Related links / card grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-block: var(--space-8);
}
.link-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.link-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-coral);
}
.link-card .lc-kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-coral);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.link-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.link-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--color-coral); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-16) var(--space-10);
  margin-top: var(--space-16);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}
.footer-brand .rainbow-arch { width: 32px; height: 32px; }
.footer-brand .wordmark { font-size: var(--text-base); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.footer-grid h4 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.footer-grid a {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: var(--space-2);
}
.footer-grid a:hover { color: var(--color-coral); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  border-top: 1px solid var(--color-divider);
  padding-top: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-callout { flex-direction: column; text-align: center; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  color: var(--color-coral);
  border-color: var(--color-coral);
}

/* ---------- Index page grid (FAQ / How-To hubs) ---------- */
.index-hero {
  text-align: center;
  padding-block: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-10);
}
.index-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}
.index-hero p {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 60ch;
  margin-inline: auto;
}
