/* ============================================================
   Almost Hot — beauty & self-improvement magazine
   Design system: editorial serif display + clean sans body
   Accent: warm coral / rose. Dark mode via prefers-color-scheme.
   ============================================================ */

:root {
  --bg: #fbf7f4;
  --surface: #ffffff;
  --surface-2: #f6efe9;
  --text: #241d1a;
  --text-muted: #6b5f58;
  --border: #ece2da;
  --accent: #e0567a;          /* warm rose-coral */
  --accent-deep: #b83c5c;
  --accent-soft: #fbe6ec;
  --gold: #c99a63;
  --ink-invert: #ffffff;
  --shadow: 0 1px 2px rgba(60,30,20,.05), 0 8px 24px rgba(60,30,20,.06);
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1140px;
  --readw: 68ch;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130f;
    --surface: #201a16;
    --surface-2: #2a221d;
    --text: #f2e9e3;
    --text-muted: #b6a89f;
    --border: #362c25;
    --accent: #f27a99;
    --accent-deep: #f27a99;
    --accent-soft: #33222a;
    --gold: #d7b183;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-top: 2.4rem; }
h3 { font-size: 1.25rem; margin-top: 1.8rem; }

p { margin: 0 0 1.1rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; max-width: var(--maxw); margin: 0 auto; padding: 12px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.32rem;
  color: var(--text); letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.nav ul { display: flex; flex-wrap: wrap; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: inline-block; padding: 7px 11px; border-radius: 8px;
  color: var(--text-muted); font-size: .95rem; font-weight: 500;
}
.nav ul a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 90% at 82% 12%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%),
    radial-gradient(55% 80% at 8% 90%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 60%),
    linear-gradient(160deg, var(--surface), var(--bg));
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) 20px;
}
.kicker {
  display: inline-block; font-family: var(--font-body); font-weight: 700;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-deep); background: var(--accent-soft);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { margin: 0 0 1rem; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; color: var(--text-muted); max-width: 52ch; }
.hero-cta { margin-top: 1.7rem; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }

/* ---------- Pillar grid (home) ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 3rem 0 1.2rem; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .16s ease, box-shadow .16s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(60,30,20,.12); }
.card a.card-link { position: absolute; inset: 0; z-index: 3; text-indent: -9999px; }
.card-thumb { height: 150px; position: relative; }
.card-body { padding: 18px 20px 22px; }
.card .tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent-deep); }
.card h3 { margin: .5rem 0 .4rem; font-size: 1.3rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .96rem; }

/* gradient thumbnails, no photos */
.g1 { background: linear-gradient(135deg,#ffd3b6,#e0567a); }
.g2 { background: linear-gradient(135deg,#c1e6ff,#7a86e0); }
.g3 { background: linear-gradient(135deg,#ffe6a7,#c99a63); }
.g4 { background: linear-gradient(135deg,#b8f0d8,#3fa587); }
.g5 { background: linear-gradient(135deg,#f6c1ff,#a05be0); }
.g6 { background: linear-gradient(135deg,#2a221d,#e0567a); }
.g-motif {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 2.6rem; filter: drop-shadow(0 2px 6px rgba(0,0,0,.15));
}

/* ---------- Article layout ---------- */
.article-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--surface), var(--bg));
}
.article-hero .wrap { padding-top: 2.6rem; padding-bottom: 2.4rem; }
.breadcrumbs { font-size: .82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--text-muted); }
.article-meta { font-size: .86rem; color: var(--text-muted); margin-top: 1rem; }
.article-meta strong { color: var(--text); }

.prose { max-width: var(--readw); margin: 2.2rem auto; }
.prose h2 { border-bottom: 1px solid var(--border); padding-bottom: .35rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4rem 0; }
.prose blockquote {
  margin: 1.6rem 0; padding: 1rem 1.3rem; border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: 1.15rem; color: var(--text);
}

/* AI/BLUF summary + callouts */
.ai-summary {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; margin: 0 auto 1.4rem;
  max-width: var(--readw); font-size: 1.02rem; color: var(--text);
}
.ai-summary strong { color: var(--accent-deep); }
.callout {
  max-width: var(--readw); margin: 1.6rem auto; padding: 1rem 1.3rem;
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .96rem; color: var(--text-muted);
}
.callout strong { color: var(--text); }
.safety {
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- Affiliate / shop placeholders ---------- */
.shelf {
  max-width: var(--readw); margin: 2rem auto; padding: 1.4rem 1.4rem;
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.shelf h3 { margin-top: 0; }
.shelf .disclosure { font-size: .78rem; color: var(--text-muted); margin-top: .6rem; }
.shelf .placeholder-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); margin: 1rem 0 0; }
.shelf .ph {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; text-align: center; color: var(--text-muted); font-size: .86rem;
  background: var(--surface-2);
}

/* ---------- Ad slots (reserve space to protect CLS) ---------- */
.ad-slot {
  display: block; margin: 2rem auto; max-width: var(--maxw);
  min-height: 100px; text-align: center;
}
.ad-slot ins { display: block; }

/* ---------- Trust page ---------- */
.page-narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem; border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 2.6rem 20px 1.4rem;
  display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr;
}
.footer-grid h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 .8rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }
.footer-brand .dot { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-muted);
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 20px 2.2rem;
}
.footer-bottom .disclaimer { margin-bottom: .5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .nav ul a { padding: 6px 8px; font-size: .9rem; }
  .brand { font-size: 1.18rem; }
}
