/* Sweet Loop Home & Crafts — shared stylesheet
   Brand: warm cream, dusty rose, sage green, dark teal text.
   No external fonts, no JavaScript. System fonts only, for speed. */

:root {
  --cream: #FBF3E6;
  --cream-dark: #F5E8D3;
  --surface: #FFFFFF;
  --text: #1E4A4A;
  --text-soft: #3E6363;
  --muted: #6E7F7A;
  --rose: #C4746B;
  --rose-dark: #A85D55;
  --rose-tint: #F8E9E4;
  --sage: #7D9B76;
  --sage-dark: #5F7D58;
  --sage-tint: #EDF3EA;
  --gold: #C08A1E;
  --border: #E9DCC6;
  --shadow: 0 2px 10px rgba(30, 74, 74, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: 2rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.5rem; margin: 2.25rem 0 0.75rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--sage-tint); }
h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.35rem; }

a { color: var(--rose-dark); }
a:hover { color: var(--sage-dark); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: bold;
  color: var(--text);
  text-decoration: none;
  line-height: 1.15;
}
.logo span { color: var(--rose); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.main-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--rose-dark); }

/* ---------- Affiliate disclosure bar ---------- */
.affiliate-note {
  background: var(--sage-tint);
  color: var(--text-soft);
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
  padding: 0.5rem 1rem;
}
.affiliate-note a { color: var(--sage-dark); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { padding: 3rem 0 2.5rem; text-align: center; }
.hero h1 { font-size: 2.4rem; }
.hero .lede { font-size: 1.15rem; color: var(--text-soft); max-width: 640px; margin: 0 auto 1.5rem; }
.lede { font-size: 1.08rem; color: var(--text-soft); }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--rose-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--sage);
}
.btn-outline:hover { background: var(--sage-tint); color: var(--text); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.95rem; }

/* ---------- Sections & cards ---------- */
.section { padding: 2rem 0; }
.section-title { text-align: center; border: none; margin-bottom: 0.25rem; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 1.75rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #fff; }
.card img.img-landscape { aspect-ratio: 4 / 3; }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.card-body h3 a { color: var(--text); text-decoration: none; }
.card-body h3 a:hover { color: var(--rose-dark); }
.card-body p { color: var(--text-soft); font-size: 0.97rem; flex: 1; }
.card .btn { align-self: flex-start; margin-top: 0.25rem; }

.rating { color: var(--gold); font-weight: 700; letter-spacing: 0.03em; }
.rating .count { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.badge {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.badge-rose { background: var(--rose); }

/* ---------- Article pages ---------- */
.article { padding: 2.5rem 0 3rem; }
.article-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.article .hero-img {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 0 auto 1.5rem;
  max-width: 640px;
  width: 100%;
}
.article figure { margin: 1.5rem 0; }
.article figure img {
  border-radius: 12px;
  border: 1px solid var(--border);
  margin: 0 auto;
  max-width: 640px;
  width: 100%;
}
.article figcaption { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.toc strong { display: block; margin-bottom: 0.4rem; }
.toc ul { margin: 0; }

.verdict-box {
  background: var(--sage-tint);
  border-left: 4px solid var(--sage);
  border-radius: 0 12px 12px 0;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.verdict-box h2, .verdict-box h3 { border: none; margin-top: 0; }

.callout {
  background: var(--rose-tint);
  border-left: 4px solid var(--rose);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.quick-facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.quick-facts h2, .quick-facts h3 { border: none; margin-top: 0; }
.quick-facts ul { margin-bottom: 0; }

.cta-box { text-align: center; margin: 2rem 0; }
.cta-box .btn { font-size: 1.05rem; }
.cta-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- Listicle product blocks ---------- */
.product-block {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.product-block img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  align-self: start;
}
.product-block h2 { margin: 0 0 0.4rem; border: none; padding: 0; font-size: 1.35rem; }
.product-block .best-for { color: var(--sage-dark); font-weight: 600; margin-bottom: 0.5rem; }
.product-block .btn { margin-top: 0.5rem; }

/* ---------- About / simple pages ---------- */
.about-blurb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.social-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #D9E6E2;
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: #F5D9D4; }
.site-footer a:hover { color: #fff; }
.site-footer .disclosure { font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1rem 0; }
.footer-nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-footer .copyright { font-size: 0.85rem; color: #A8BFB9; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.7rem; }
  .product-block { grid-template-columns: 1fr; padding: 1.1rem; }
  .product-block img { max-width: 320px; margin: 0 auto; }
  .header-inner { flex-direction: column; align-items: flex-start; }
}

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}
