/* ============================================
   glycolicacidcleanser.com — Production CSS
   Version: 1.1 (extracted from SP4 design preview)
   Palette: Warm Plum (#7b4b6a) | DM Sans + Source Sans 3
   ============================================ */

/* ============================================
   DESIGN TOKENS v1.1 — glycolicacidcleanser.com
   Palette: Warm Plum | Headings: DM Sans
   ============================================ */

:root {
  /* Colors — Primary */
  --color-text: #1c1a2e;
  --color-text-secondary: #524a60;
  --color-text-muted: #9088a0;
  --color-bg: #faf9f7;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #f2efe8;

  /* Colors — Accent (Warm Plum) */
  --color-accent: #7b4b6a;
  --color-accent-hover: #5e3651;
  --color-accent-light: #f3e8ef;
  --color-accent-text: #5e3651;
  --color-amazon: #ff9900;
  --color-amazon-hover: #e68a00;

  /* Colors — Semantic */
  --color-border: #e2dfd8;
  --color-border-strong: #cac7be;
  --color-warning: #d4a017;

  /* Typography */
  --font-heading: 'DM Sans', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  --text-h1: 2.25rem;
  --text-h2: 1.625rem;
  --text-h3: 1.25rem;
  --text-body: 1.0625rem;
  --text-small: 0.875rem;
  --text-tiny: 0.75rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Layout */
  --width-content: 42rem;
  --width-wide: 52rem;
  --width-max: 64rem;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   SKIP LINK
   ============================================ */

.skip-link {
  position: absolute; top: -100%; left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent); color: white;
  border-radius: 0 0 4px 4px; font-size: var(--text-small); z-index: 100;
}
.skip-link:focus { top: 0; }

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--width-max); margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex; align-items: center; justify-content: space-between;
}

.site-name {
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--text-h3); color: var(--color-text); text-decoration: none;
}

.site-nav { display: flex; gap: var(--space-6); align-items: center; }
.site-nav a {
  font-size: var(--text-small); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--color-text-secondary); text-decoration: none; transition: color 0.15s;
}
.site-nav a:hover { color: var(--color-accent); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: var(--space-2); }
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.content-wrapper {
  max-width: var(--width-content); margin: 0 auto;
  padding: var(--space-8) var(--space-6) var(--space-16);
}

/* ============================================
   CONTENT LISTS (ol, ul inside content area)
   ============================================ */

.content-wrapper ol,
.content-wrapper ul:not(.related-links):not(.footer-links) {
  padding-left: var(--space-8);
  margin: var(--space-4) 0 var(--space-6);
}

.content-wrapper ol {
  list-style: decimal;
}

.content-wrapper ul:not(.related-links):not(.footer-links) {
  list-style: disc;
}

.content-wrapper li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.content-wrapper li strong {
  color: var(--color-text);
}

.breadcrumb {
  font-size: var(--text-small); color: var(--color-text-secondary); margin-bottom: var(--space-6);
}
.breadcrumb a { color: var(--color-text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { margin: 0 var(--space-2); }

h1 {
  font-family: var(--font-heading); font-size: var(--text-h1);
  font-weight: 700; line-height: 1.2; color: var(--color-text);
  margin-bottom: var(--space-6);
}

h2 {
  font-family: var(--font-heading); font-size: var(--text-h2);
  font-weight: 700; line-height: 1.3; color: var(--color-text);
  margin-top: var(--space-12); margin-bottom: var(--space-4);
}

h3 {
  font-family: var(--font-heading); font-size: var(--text-h3);
  font-weight: 600; line-height: 1.4; color: var(--color-text);
  margin-top: var(--space-8); margin-bottom: var(--space-3);
}

p { margin-bottom: var(--space-4); }
a { color: var(--color-accent); transition: color 0.15s; }
a:hover { color: var(--color-accent-hover); }

/* ============================================
   AFFILIATE DISCLOSURE
   ============================================ */

.affiliate-notice {
  background: var(--color-bg-subtle);
  border-left: 3px solid var(--color-accent);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-small); color: var(--color-text-muted);
  margin-bottom: var(--space-8); border-radius: 0 4px 4px 0;
}
.affiliate-notice a { color: var(--color-text-secondary); }

/* ============================================
   PRODUCT CARD
   ============================================ */

.product-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border); border-radius: 8px;
  padding: var(--space-6); margin-bottom: var(--space-8);
  display: grid; grid-template-columns: 120px 1fr; gap: var(--space-6);
}

.product-card__image {
  width: 120px; height: 120px; background: var(--color-bg-subtle);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  font-size: var(--text-small); color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.product-card__badge {
  display: inline-block; background: var(--color-accent-light);
  color: var(--color-accent-text); font-size: var(--text-tiny); font-weight: 600;
  padding: var(--space-1) var(--space-2); border-radius: 3px;
  margin-bottom: var(--space-3); text-transform: uppercase; letter-spacing: 0.3px;
}

.product-card__name {
  font-family: var(--font-heading); font-size: var(--text-h3);
  font-weight: 600; line-height: 1.3; margin-bottom: var(--space-1);
}

.product-card__rating {
  font-size: var(--text-small); color: var(--color-text-secondary); margin-bottom: var(--space-3);
}
.product-card__stars { color: var(--color-amazon); }

.product-card__meta {
  font-size: var(--text-small); color: var(--color-text-secondary); margin-bottom: var(--space-3);
}

.product-card__specs {
  font-size: var(--text-small); color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-3); margin-bottom: var(--space-4);
}
.product-card__specs div { margin-bottom: var(--space-1); }

.btn-amazon {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--color-amazon); color: #1a1a2e;
  font-weight: 700; font-size: var(--text-small);
  padding: var(--space-3) var(--space-6);
  border: none; border-radius: 6px; text-decoration: none;
  cursor: pointer; transition: background 0.15s;
}
.btn-amazon:hover { background: var(--color-amazon-hover); color: #1a1a2e; }

@media (max-width: 480px) {
  .product-card { grid-template-columns: 1fr; text-align: center; }
  .product-card__image { margin: 0 auto; }
  .btn-amazon { width: 100%; justify-content: center; }
}

/* ============================================
   COMPARISON TABLE
   ============================================ */

.comparison-table {
  margin: var(--space-6) 0 var(--space-8);
  overflow-x: auto;
}
.comparison-table table {
  width: 100%; border-collapse: collapse;
  font-size: var(--text-body);
}
.comparison-table th {
  background: var(--color-bg-subtle); font-weight: 600;
  padding: var(--space-3) var(--space-4); text-align: left;
  border: 1px solid var(--color-border-strong);
  font-size: var(--text-small);
}
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  font-size: var(--text-body);
  line-height: 1.6;
}
.comparison-table .highlight-row td {
  background: var(--color-accent-light);
}

/* ============================================
   STEP-BY-STEP TUTORIAL
   ============================================ */

.steps { margin: var(--space-6) 0 var(--space-8); }

.step {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}
.step:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step__number {
  position: absolute; left: 0; top: 0;
  font-family: var(--font-heading); font-weight: 700;
  font-size: var(--text-h2); color: var(--color-accent);
  line-height: 1.2;
}

.step__content { min-width: 0; }

.step__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: var(--text-body); color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step__text {
  font-size: var(--text-body); color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   RESULTS TIMELINE
   ============================================ */

.timeline {
  background: var(--color-bg-subtle); border-radius: 8px;
  padding: var(--space-6); margin: var(--space-6) 0 var(--space-8);
}

.timeline__item {
  position: relative;
  padding-left: var(--space-8);
  padding-bottom: var(--space-6);
  border-left: 3px solid var(--color-accent-light);
  margin-left: var(--space-3);
}
.timeline__item:last-child { padding-bottom: 0; border-left-color: transparent; }

.timeline__item::before {
  content: '';
  position: absolute; left: -8px; top: 0.35em;
  width: 13px; height: 13px;
  background: var(--color-accent); border-radius: 50%;
  border: 2px solid var(--color-bg-subtle);
}

.timeline__label {
  font-family: var(--font-heading); font-weight: 600;
  font-size: var(--text-small); color: var(--color-accent-text);
  text-transform: uppercase; letter-spacing: 0.3px;
  margin-bottom: var(--space-1);
}

.timeline__title {
  font-family: var(--font-heading); font-weight: 600;
  font-size: var(--text-body); color: var(--color-text);
  margin-bottom: var(--space-1);
}

.timeline__text {
  font-size: var(--text-body); color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
  background: var(--color-bg-subtle); border-radius: 8px;
  padding: var(--space-6); margin-top: var(--space-12);
}
.faq-section h2 { margin-top: 0; }

.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  padding: var(--space-4) 0; font-weight: 600; font-size: var(--text-body);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: '+'; font-size: 1.25rem; font-weight: 400;
  color: var(--color-text-muted); transition: transform 0.2s;
  flex-shrink: 0; margin-left: var(--space-4);
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary::-webkit-details-marker { display: none; }

.faq-answer {
  padding-bottom: var(--space-4); font-size: var(--text-body);
  color: var(--color-text-secondary); line-height: 1.7;
}

/* ============================================
   RELATED PAGES
   ============================================ */

.related-pages {
  margin-top: var(--space-12); padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.related-pages h3 { margin-top: 0; }

.related-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.related-links a {
  display: flex; align-items: center; gap: var(--space-2);
  font-weight: 600; text-decoration: none;
}
.related-links a::before { content: '\2192'; color: var(--color-accent); }

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-text); color: #e2dfd8;
  padding: var(--space-12) var(--space-6) var(--space-8);
  margin-top: var(--space-16);
}
.footer-site-name {
  font-family: var(--font-heading); font-size: var(--text-h3);
  font-weight: 700; color: #ffffff; margin-bottom: var(--space-6);
  max-width: var(--width-max); margin-left: auto; margin-right: auto;
}
.footer-inner {
  max-width: var(--width-max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8);
}
.footer-section h4 {
  font-family: var(--font-heading); font-size: var(--text-small);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  color: #ffffff; margin-bottom: var(--space-4);
}
.footer-section a {
  color: var(--color-accent-light); text-decoration: none; font-size: var(--text-small);
}
.footer-section a:hover { color: #ffffff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-bottom {
  max-width: var(--width-max); margin: var(--space-8) auto 0;
  padding-top: var(--space-6); border-top: 1px solid #3a3a52;
  font-size: var(--text-tiny); color: var(--color-text-muted); text-align: center;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: var(--space-6); }
}

/* ============================================
   FOCUS STYLES
   ============================================ */

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ============================================
   CAUTION NOTE
   ============================================ */

.caution-note {
  background: #fdf8e8;
  border-left: 3px solid var(--color-warning);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-body);
  color: #6b5a10;
  margin: var(--space-4) 0 var(--space-6);
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
}
/* ============================================
   .product-context — Add to src/css/styles.css
   Context block that follows a product card with
   editorial commentary (why we recommend, best for,
   honest limitations)
   ============================================ */

.product-context {
  background: var(--color-bg-subtle);
  border-radius: 8px;
  padding: var(--space-4) var(--space-6);
  margin-top: calc(-1 * var(--space-4));
  margin-bottom: var(--space-8);
}

.product-context h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  margin-top: 0;
}

.product-context p {
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
}

.product-context p:last-child {
  margin-bottom: 0;
}