/*
Theme Name: GlowReview HQ
Theme URI: https://glowreviewhq.com
Author: GlowReview HQ
Description: Lightweight luxury beauty-magazine theme for affiliate review blogs. Editorial typography, gold accents, and auto-generated cover art so posts never look broken. Built to be reused across niche blogs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: glowreview
*/

:root{
  --ink:#1d1813; --ink-soft:#4a4138; --paper:#f7f2ea; --paper-2:#efe7da;
  --card:#fffdf9; --gold:#b08d57; --gold-dim:#c9a96e; --blush:#e8c9c4;
  --rule:#e3d8c6; --shadow:0 18px 50px -28px rgba(45,32,20,.45); --maxw:1180px;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0; font-family:'Jost',sans-serif; background:var(--paper); color:var(--ink);
  -webkit-font-smoothing:antialiased; line-height:1.65;
}
::selection{ background:var(--gold); color:#fff; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 26px; }
.eyebrow{ font-weight:500; font-size:11px; letter-spacing:.32em; text-transform:uppercase; color:var(--gold); }
.serif{ font-family:'Fraunces',serif; }
.screen-reader-text{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); }

/* Topbar */
.topbar{ background:var(--ink); color:#cdbfa8; font-size:11px; letter-spacing:.22em; text-transform:uppercase; text-align:center; padding:9px 16px; }
.topbar b{ color:var(--gold-dim); font-weight:500; }

/* Header */
header.site{ position:sticky; top:0; z-index:50; background:rgba(247,242,234,.86); backdrop-filter:saturate(140%) blur(10px); border-bottom:1px solid var(--rule); }
.nav{ display:flex; align-items:center; justify-content:space-between; height:78px; }
.brand{ display:flex; flex-direction:column; line-height:1; }
.brand .mark{ font-family:'Fraunces',serif; font-weight:500; font-size:25px; letter-spacing:.06em; color:var(--ink); }
.brand .sub{ font-size:9.5px; letter-spacing:.42em; text-transform:uppercase; color:var(--ink-soft); margin-top:5px; }
.brand img.logo{ max-height:46px; width:auto; }
nav.menu ul{ display:flex; gap:30px; list-style:none; margin:0; padding:0; }
nav.menu a{ font-size:12.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); padding:6px 0; position:relative; }
nav.menu a::after{ content:""; position:absolute; left:0; bottom:0; height:1px; width:0; background:var(--gold); transition:width .28s ease; }
nav.menu a:hover{ color:var(--ink); } nav.menu a:hover::after{ width:100%; }
nav.menu .current-menu-item a{ color:var(--ink); } nav.menu .current-menu-item a::after{ width:100%; }
.burger{ display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px; }
.burger span{ width:24px; height:1.5px; background:var(--ink); display:block; }

/* Hero */
.hero{ padding:74px 0 60px; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero h1{ font-family:'Fraunces',serif; font-weight:400; font-size:clamp(40px,5.6vw,68px); line-height:1.03; letter-spacing:-.01em; margin:18px 0 22px; }
.hero h1 em{ font-style:italic; color:var(--gold); }
.hero p.lede{ font-size:17px; color:var(--ink-soft); max-width:480px; margin-bottom:30px; }
.btn{ display:inline-flex; align-items:center; gap:10px; background:var(--ink); color:var(--paper); font-size:12.5px; letter-spacing:.18em; text-transform:uppercase; font-weight:500; padding:15px 30px; border:0; cursor:pointer; transition:.25s; border-radius:2px; }
.btn:hover{ background:var(--gold); color:#fff; }
.btn.ghost{ background:transparent; color:var(--ink); border:1px solid var(--ink); }
.btn.ghost:hover{ background:var(--ink); color:var(--paper); }
.hero-stats{ display:flex; gap:38px; margin-top:38px; }
.hero-stats .n{ font-family:'Fraunces',serif; font-size:30px; color:var(--ink); }
.hero-stats .l{ font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); }
.hero-art{ position:relative; aspect-ratio:4/4.4; }
.hero-art .frame{ position:absolute; inset:0; border-radius:200px 200px 14px 14px; overflow:hidden; box-shadow:var(--shadow); }
.hero-art .frame img,.hero-art .frame .gen{ width:100%; height:100%; object-fit:cover; }
.hero-art .tag{ position:absolute; left:-22px; bottom:46px; background:var(--card); box-shadow:var(--shadow); padding:16px 22px; border-radius:4px; border-left:2px solid var(--gold); }
.hero-art .tag .s{ font-family:'Fraunces',serif; font-size:22px; }
.hero-art .tag .t{ font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--ink-soft); }

/* Section heads */
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; margin:0 0 30px; gap:20px; flex-wrap:wrap; }
.sec-head h2{ font-family:'Fraunces',serif; font-weight:400; font-size:clamp(26px,3.4vw,38px); line-height:1.05; margin:0; }
.sec-head .more{ font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--gold); border-bottom:1px solid var(--gold); padding-bottom:3px; }
.divider{ height:1px; background:var(--rule); }

/* Grid + cards */
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:34px; padding:56px 0 20px; }
.card .art{ aspect-ratio:4/3; border-radius:6px; overflow:hidden; position:relative; margin-bottom:18px; }
.card .art .badge{ position:absolute; top:12px; left:12px; background:rgba(29,24,19,.78); color:#f0e6d4; font-size:9.5px; letter-spacing:.2em; text-transform:uppercase; padding:5px 11px; border-radius:2px; }
.card .art img,.card .art .gen{ width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.2,.7,.2,1); }
.card:hover .art img,.card:hover .art .gen{ transform:scale(1.05); }
.card .cat{ font-size:10.5px; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); }
.card h3{ font-family:'Fraunces',serif; font-weight:500; font-size:21px; line-height:1.22; margin:8px 0 9px; transition:color .2s; }
.card:hover h3{ color:var(--gold); }
.card p{ font-size:14px; color:var(--ink-soft); margin:0; }
.card .meta{ margin-top:12px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#9c907e; }

/* Featured */
.featured{ display:grid; grid-template-columns:1.15fr 1fr; gap:46px; align-items:center; padding:8px 0 44px; }
.featured .art{ aspect-ratio:5/4; border-radius:8px; overflow:hidden; box-shadow:var(--shadow); }
.featured .art img,.featured .art .gen{ width:100%; height:100%; object-fit:cover; }
.featured h3{ font-family:'Fraunces',serif; font-weight:400; font-size:clamp(28px,3.6vw,40px); line-height:1.08; margin:14px 0 16px; }
.featured p{ font-size:16px; color:var(--ink-soft); margin-bottom:24px; max-width:460px; }

/* Editor band */
.band{ background:var(--ink); color:var(--paper); margin-top:46px; }
.band-in{ display:grid; grid-template-columns:repeat(3,1fr); gap:40px; padding:64px 0; }
.band .col .ico{ font-size:22px; color:var(--gold-dim); }
.band .col h4{ font-family:'Fraunces',serif; font-weight:400; font-size:21px; margin:14px 0 8px; }
.band .col p{ font-size:14px; color:#bdb09a; margin:0; }

/* Newsletter */
.news{ text-align:center; padding:74px 0; }
.news h2{ font-family:'Fraunces',serif; font-weight:400; font-size:clamp(28px,4vw,42px); margin:0 0 14px; }
.news p{ color:var(--ink-soft); max-width:440px; margin:0 auto 28px; }
.news .row{ display:flex; gap:10px; max-width:440px; margin:0 auto; }
.news input{ flex:1; padding:14px 16px; border:1px solid var(--rule); background:var(--card); font-family:inherit; font-size:14px; border-radius:2px; }
.news input:focus{ outline:none; border-color:var(--gold); }

/* Single article */
.art-head{ max-width:760px; margin:0 auto; padding:64px 0 8px; text-align:center; }
.art-head h1{ font-family:'Fraunces',serif; font-weight:400; font-size:clamp(32px,4.6vw,52px); line-height:1.08; margin:16px 0 18px; }
.art-head .by{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-soft); }
.art-hero{ max-width:980px; margin:34px auto 0; aspect-ratio:16/7; border-radius:8px; overflow:hidden; box-shadow:var(--shadow); }
.art-hero img,.art-hero .gen{ width:100%; height:100%; object-fit:cover; }
.article-body{ max-width:720px; margin:0 auto; padding:44px 0 30px; }
.article-body p{ font-size:17px; line-height:1.85; color:#322a22; margin-bottom:22px; }
.article-body > p:first-of-type::first-letter{ font-family:'Fraunces',serif; font-size:62px; float:left; line-height:.78; padding:6px 12px 0 0; color:var(--gold); }
.article-body h2{ font-family:'Fraunces',serif; font-weight:500; font-size:28px; margin:42px 0 16px; padding-left:16px; border-left:3px solid var(--gold); }
.article-body h3{ font-family:'Fraunces',serif; font-weight:500; font-size:23px; margin:30px 0 12px; }
.article-body ul,.article-body ol{ font-size:17px; line-height:1.85; color:#322a22; margin:0 0 22px 22px; }
.article-body img{ border-radius:8px; margin:24px 0; }
.article-body a{ color:var(--gold); border-bottom:1px solid var(--gold); }

/* Product comparison cards (output by the publisher inside post content) */
.prod{ background:var(--card); border:1px solid var(--rule); border-radius:8px; padding:24px; margin:22px 0; display:grid; grid-template-columns:120px 1fr; gap:22px; box-shadow:var(--shadow); }
.prod .pimg{ border-radius:6px; overflow:hidden; aspect-ratio:1; }
.prod .pimg img,.prod .pimg .gen{ width:100%; height:100%; object-fit:cover; }
.prod .rank{ font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); }
.prod h3{ font-family:'Fraunces',serif; font-weight:500; font-size:22px; margin:4px 0 6px; }
.prod .price{ font-family:'Fraunces',serif; font-size:24px; color:var(--ink); margin-bottom:10px; }
.stars{ color:var(--gold); letter-spacing:2px; font-size:15px; margin-bottom:12px; }
.pill{ display:inline-block; font-size:11px; padding:3px 10px; border-radius:99px; margin:0 6px 6px 0; }
.pill.pro{ color:#3f7d4f; background:#e8f1e8; }
.pill.con{ color:#a8534b; background:#f6e9e7; }
.amz{ display:inline-flex; align-items:center; gap:8px; background:var(--gold); color:#fff !important; font-size:12px; letter-spacing:.12em; text-transform:uppercase; font-weight:500; padding:11px 20px; border-radius:3px; margin-top:6px; transition:.2s; border-bottom:0 !important; }
.amz:hover{ background:var(--ink); }
.verdict{ background:linear-gradient(135deg,#fbf6ed,#f3e9d8); border:1px solid var(--gold-dim); border-radius:10px; padding:32px; margin:38px 0; }
.verdict q{ font-family:'Fraunces',serif; font-style:italic; font-size:23px; line-height:1.5; display:block; margin:12px 0 0; quotes:none; }
.disc{ font-size:12px; color:#9c907e; border-top:1px solid var(--rule); padding-top:18px; margin-top:30px; }

/* Page (e.g. About) */
.page-hero{ max-width:760px; margin:0 auto; padding:64px 0 8px; }
.page-hero h1{ font-family:'Fraunces',serif; font-weight:400; font-size:clamp(34px,4.6vw,54px); line-height:1.06; margin:14px 0 0; }
.page-body{ max-width:720px; margin:0 auto; padding:34px 0 50px; }
.page-body p{ font-size:17px; line-height:1.85; color:#322a22; margin-bottom:22px; }
.page-body h2{ font-family:'Fraunces',serif; font-weight:500; font-size:28px; margin:36px 0 14px; }

/* Pagination */
.pager{ display:flex; gap:10px; justify-content:center; padding:30px 0 70px; }
.pager .page-numbers{ border:1px solid var(--rule); padding:9px 16px; font-size:13px; color:var(--ink-soft); border-radius:2px; }
.pager .page-numbers.current{ background:var(--ink); color:var(--paper); border-color:var(--ink); }
.pager a.page-numbers:hover{ border-color:var(--gold); color:var(--gold); }

/* Footer */
footer.site{ background:var(--ink); color:#b3a691; padding:58px 0 30px; }
.foot{ display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:40px; padding-bottom:38px; border-bottom:1px solid #34291d; }
footer .mark{ font-family:'Fraunces',serif; font-size:22px; color:var(--gold-dim); }
footer p{ font-size:13.5px; max-width:300px; margin-top:14px; }
footer h5{ font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--gold-dim); margin-bottom:14px; }
footer .links a{ display:block; font-size:13.5px; margin-bottom:9px; color:#cdbfa8; }
footer .links a:hover{ color:#fff; }
.copy{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:12px; color:#7d7160; padding-top:22px; }

/* Responsive */
@media(max-width:880px){
  .hero-grid,.featured,.band-in,.foot{ grid-template-columns:1fr; }
  .grid{ grid-template-columns:repeat(2,1fr); }
  .hero-art{ max-width:420px; margin:0 auto; }
  nav.menu{ display:none; }
  nav.menu.open{ display:block; position:absolute; top:78px; left:0; right:0; background:var(--paper); border-bottom:1px solid var(--rule); padding:8px 26px 18px; }
  nav.menu.open ul{ flex-direction:column; gap:0; }
  nav.menu.open li{ padding:13px 0; border-bottom:1px solid var(--rule); }
  .burger{ display:flex; }
  .prod{ grid-template-columns:1fr; } .prod .pimg{ max-width:140px; }
}
@media(max-width:540px){ .grid{ grid-template-columns:1fr; } }
