/* The Skin Chronicle — Editorial Stylesheet */

:root {
  --cream: #FAF8F5;
  --warm-white: #FFFFFF;
  --blush: #E8C4B8;
  --rose: #C4826E;
  --deep-rose: #9E5A47;
  --charcoal: #2C2C2C;
  --mid-grey: #6B6B6B;
  --light-grey: #E8E4E0;
  --serif: 'Playfair Display', 'Georgia', serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.25rem; color: var(--charcoal); }
a { color: var(--deep-rose); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rose); }
strong { font-weight: 600; }
em { font-style: italic; }

/* ── NAVIGATION ── */
.site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.site-logo span { color: var(--deep-rose); }

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid-grey);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

nav ul li a:hover { color: var(--charcoal); }

/* ── HERO ── */
.hero {
  background: var(--warm-white);
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--light-grey);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-rose);
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.hero h1 { 
  max-width: 700px; 
  margin: 0 auto 1.5rem;
  color: var(--charcoal);
}

.hero p {
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: var(--mid-grey);
}

.btn {
  display: inline-block;
  background: var(--charcoal);
  color: white;
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}

.btn:hover { background: var(--deep-rose); color: white; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--charcoal);
  color: var(--charcoal);
}

.btn-outline:hover { background: var(--charcoal); color: white; }

/* ── LAYOUT ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 4rem 0; }
.section-title {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--deep-rose);
  margin-bottom: 0.5rem;
}
.section-heading { margin-bottom: 2.5rem; }

/* ── ARTICLE GRID ── */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.article-card {
  background: var(--warm-white);
  border: 1px solid var(--light-grey);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.article-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.card-image {
  height: 220px;
  background: linear-gradient(135deg, var(--blush) 0%, var(--light-grey) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 2rem;
  color: rgba(255,255,255,0.8);
}

.card-body { padding: 1.5rem; }

.card-category {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep-rose);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--mid-grey);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-meta {
  font-size: 0.75rem;
  color: var(--mid-grey);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--light-grey);
  padding-top: 1rem;
}

/* ── FEATURED STRIP ── */
.featured-strip {
  background: var(--charcoal);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
}

.featured-strip h2 { color: white; margin-bottom: 0.75rem; }
.featured-strip p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 1.5rem; }

/* ── ARTICLE PAGE ── */
.article-header {
  background: var(--warm-white);
  padding: 4rem 2rem 3rem;
  border-bottom: 1px solid var(--light-grey);
  text-align: center;
}

.article-header .card-category { justify-content: center; }

.article-header h1 {
  max-width: 760px;
  margin: 0.5rem auto 1.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--mid-grey);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.article-meta span::before { content: "·"; margin-right: 1.5rem; }
.article-meta span:first-child::before { content: ""; margin: 0; }

.article-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.article-body h2 {
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blush);
}

.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.75rem; }

.article-body ul, .article-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

.article-body li { margin-bottom: 0.5rem; }

.article-body blockquote {
  border-left: 3px solid var(--rose);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--warm-white);
  font-style: italic;
  color: var(--mid-grey);
}

/* ── PRODUCT CARD ── */
.product-card {
  background: var(--warm-white);
  border: 1px solid var(--light-grey);
  padding: 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.product-badge {
  background: var(--blush);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--deep-rose);
}

.product-info h4 { margin-bottom: 0.25rem; }
.product-price { color: var(--deep-rose); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; }
.product-desc { font-size: 0.875rem; color: var(--mid-grey); margin: 0; }

.affiliate-link {
  display: inline-block;
  margin-top: 0.75rem;
  background: var(--deep-rose);
  color: white;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 2px;
  letter-spacing: 0.03em;
}

.affiliate-link:hover { background: var(--charcoal); color: white; }

/* ── DISCLOSURE ── */
.disclosure {
  background: var(--light-grey);
  border-left: 3px solid var(--blush);
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--warm-white);
  border: 1px solid var(--light-grey);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
}

.newsletter h3 { margin-bottom: 0.5rem; }
.newsletter p { color: var(--mid-grey); margin-bottom: 1.5rem; }

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-grey);
  font-family: var(--sans);
  font-size: 0.9rem;
  outline: none;
  background: var(--cream);
}

.newsletter-form input:focus { border-color: var(--rose); }

/* ── FOOTER ── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .site-logo { color: white; }
.footer-brand p { font-size: 0.875rem; margin-top: 0.75rem; color: rgba(255,255,255,0.5); }

.footer-links h5 {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-links ul li a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.affiliate-disclosure-footer {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav ul { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .article-grid { grid-template-columns: 1fr; }
  .product-card { flex-direction: column; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}
