/*
Theme Name: Glowbelle
Text Domain: glowbelle
Description: Editorial sage-green beauty and affiliate theme for glowbelle.in with light and dark modes.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
WPVibe: yes
*/

/* Glowbelle front-page styling. Sage green, light and dark.
 * Layout concept: a newspaper-style front page for beauty. Masthead, section
 * rail, three-column lead, section strips and a deals shelf. */

:root {
	--paper: #f4f7f2;
	--paper-2: #e6ede2;
	--ink: #1f2b22;
	--ink-soft: #56665a;
	--rule: #ccd8c8;
	--accent: #3f6b4c;
	--accent-ink: #ffffff;
	--tint-1: #d5e4d3;
	--tint-2: #e4e8d0;
	--tint-3: #c4d8c4;
	--tint-4: #d3e0dc;
	--tint-5: #e9e6d2;
	--art: #3f6b4c;
	--font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	html:not([data-theme="light"]) {
		--paper: #131b16; --paper-2: #1c2720; --ink: #e8f0e6; --ink-soft: #a3b5a7; --rule: #33443a;
		--accent: #8fc29a; --accent-ink: #131b16;
		--tint-1: #24372b; --tint-2: #2e3626; --tint-3: #1f3a2c; --tint-4: #243a38; --tint-5: #333a28;
		--art: #a9d4b3;
		--color-neutral: #e8f0e6; --color-background: #131b16;
		--color-primary: #8fc29a; --color-primary-500: #8fc29a; --color-primary-50: #1c2720;
		--color-secondary: #a3b5a7; --color-secondary-200: #33443a; --color-secondary-500: #a3b5a7;
		--color-secondary-600: #a3b5a7; --color-secondary-700: #c4d3c7;
		color-scheme: dark;
	}
}
html[data-theme="dark"] {
	--paper: #131b16; --paper-2: #1c2720; --ink: #e8f0e6; --ink-soft: #a3b5a7; --rule: #33443a;
	--accent: #8fc29a; --accent-ink: #131b16;
	--tint-1: #24372b; --tint-2: #2e3626; --tint-3: #1f3a2c; --tint-4: #243a38; --tint-5: #333a28;
	--art: #a9d4b3;
	--color-neutral: #e8f0e6; --color-background: #131b16;
	--color-primary: #8fc29a; --color-primary-500: #8fc29a; --color-primary-50: #1c2720;
	--color-secondary: #a3b5a7; --color-secondary-200: #33443a; --color-secondary-500: #a3b5a7;
	--color-secondary-600: #a3b5a7; --color-secondary-700: #c4d3c7;
	color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--paper); color: var(--ink);
	font-family: var(--font-body); font-size: 17px; line-height: 1.55;
	padding-block: 0 48px;
	padding-left: max(16px, env(safe-area-inset-left, 0px));
	padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-decoration: none; }
a:hover h2, a:hover h3, a:hover .hl { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.kicker { font-family: var(--font-ui); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.meta { font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-soft); }
h1, h2, h3 { text-wrap: balance; margin: 0; font-weight: 600; }

.prose {
	--tw-prose-body: var(--ink); --tw-prose-headings: var(--ink); --tw-prose-lead: var(--ink-soft);
	--tw-prose-links: var(--accent); --tw-prose-bold: var(--ink); --tw-prose-counters: var(--ink-soft);
	--tw-prose-bullets: var(--ink-soft); --tw-prose-hr: var(--rule); --tw-prose-quotes: var(--ink);
	--tw-prose-quote-borders: var(--rule); --tw-prose-captions: var(--ink-soft); --tw-prose-code: var(--ink);
	--tw-prose-th-borders: var(--rule); --tw-prose-td-borders: var(--rule);
	color: var(--ink);
}

.util { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; font-family: var(--font-ui); font-size: 12.5px; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.util strong { color: var(--ink); font-weight: 600; }
.util a { text-decoration: underline; }

.mast { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px 0 14px; }
.mast .left { font-family: var(--font-ui); font-size: 13px; color: var(--ink-soft); }
.mast .right { justify-self: end; display: flex; gap: 10px; align-items: center; }
.wordmark { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(44px, 8vw, 84px); line-height: 1; letter-spacing: -.01em; text-align: center; }
.wordmark span { font-style: normal; font-weight: 700; }
.btn { display: inline-block; font-family: var(--font-ui); font-size: 13px; font-weight: 600; padding: 9px 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; border-radius: 2px; line-height: 1.4; }
.btn.fill { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tagline { text-align: center; font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 14px; }

.rail-box { border-block: 3px double var(--ink); overflow-x: auto; }
.rail { display: flex; gap: 4px; justify-content: center; min-width: max-content; margin: 0; padding: 0; list-style: none; }
.rail li { margin: 0; padding: 0; list-style: none; }
.rail a { display: block; padding: 11px 14px; font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.rail a:hover { color: var(--accent); }
.ticker { display: flex; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--rule); overflow-x: auto; font-family: var(--font-ui); font-size: 13px; white-space: nowrap; }
.ticker b { color: var(--accent); letter-spacing: .1em; font-size: 11.5px; text-transform: uppercase; }

.art { display: grid; place-items: center; aspect-ratio: 4 / 3; max-width: 100%; color: var(--art); overflow: hidden; }
.art svg { height: 78%; width: auto; }
.t-1 { background: var(--tint-1); } .t-2 { background: var(--tint-2); } .t-3 { background: var(--tint-3); }
.t-4 { background: var(--tint-4); } .t-5 { background: var(--tint-5); }

.front { display: grid; grid-template-columns: 1fr 1.75fr 1fr; gap: 0; padding-top: 22px; }
.front > * { min-width: 0; padding: 0 22px; }
.front > :first-child { padding-left: 0; }
.front > :last-child { padding-right: 0; }
.front > * + * { border-left: 1px solid var(--rule); }
.brief { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.brief:last-child { border-bottom: 0; margin-bottom: 0; }
.brief h3 { font-size: 20px; line-height: 1.2; margin: 6px 0; }
.brief p { margin: 0 0 6px; font-size: 15.5px; color: var(--ink-soft); }
.lead h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; margin: 8px 0 12px; }
.lead .dek { font-size: 19px; color: var(--ink-soft); margin: 0 0 12px; }
.lead .art { aspect-ratio: 5 / 4; margin-bottom: 12px; }
.lead .art .duo { display: flex; gap: 6%; align-items: flex-end; justify-content: center; height: 82%; width: 100%; }
.lead .art .duo svg { height: 100%; }
.picks h2 { font-family: var(--font-ui); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 4px; }
.pick { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.pick:last-of-type { border-bottom: 0; }
.pick .n { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1; color: var(--accent); }
.pick h3 { font-size: 17px; line-height: 1.25; }
.pick .meta { margin-top: 4px; display: block; }
.pick a.buy { font-family: var(--font-ui); font-size: 12.5px; font-weight: 700; color: var(--accent); margin-top: 6px; display: inline-block; }

.sec { padding-top: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 3px double var(--ink); padding-top: 10px; margin-bottom: 18px; }
.sec-head h2 { font-family: var(--font-display); font-size: 30px; font-weight: 700; }
.sec-head a { font-family: var(--font-ui); font-size: 13px; font-weight: 600; color: var(--accent); }
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.story { min-width: 0; }
.story h3 { font-size: 20px; line-height: 1.22; margin: 10px 0 6px; }
.story p { margin: 0 0 6px; font-size: 15.5px; color: var(--ink-soft); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font-family: var(--font-ui); font-size: 13px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.shelf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prod { min-width: 0; display: flex; flex-direction: column; }
.prod .art { aspect-ratio: 1 / 1; }
.prod .art svg { height: 66%; }
.prod .tag { font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; }
.prod h3 { font-size: 18px; line-height: 1.25; margin: 4px 0; }
.prod p { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-soft); }
.prod .btn { margin-top: auto; text-align: center; }
.prod[hidden] { display: none; }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.split h2 { font-family: var(--font-display); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; margin: 8px 0 12px; }
.split p { margin: 0 0 12px; }
.tbl { overflow-x: auto; border: 1px solid var(--rule); }
.tbl table { width: 100%; border-collapse: collapse; font-family: var(--font-ui); font-size: 14px; min-width: 480px; }
.tbl th, .tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; background: var(--paper-2); }
.tbl tr:last-child td { border-bottom: 0; }

.news { margin-top: 48px; background: var(--paper-2); padding: 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.news h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.1; margin-bottom: 8px; }
.news p { margin: 0; color: var(--ink-soft); }
.news form { display: flex; gap: 8px; flex-wrap: wrap; }
.news input[type="email"] { flex: 1 1 200px; min-width: 0; padding: 11px 12px; font: 15px var(--font-ui); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 2px; }

.site-footer { margin-top: 48px; border-top: 3px double var(--ink); padding-top: 20px; font-family: var(--font-ui); font-size: 13px; color: var(--ink-soft); }
.fgrid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.fgrid h4 { margin: 0 0 8px; color: var(--ink); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.fgrid a { display: block; padding: 3px 0; }
.fgrid .wm { font-family: var(--font-display); font-style: italic; font-size: 30px; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.disc { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); line-height: 1.5; }
.disc strong { color: var(--ink); }

@media (max-width: 980px) {
	.front { grid-template-columns: 1fr; }
	.front > * { padding: 0; }
	.front > * + * { border-left: 0; border-top: 1px solid var(--rule); padding-top: 22px; margin-top: 22px; }
	.lead { order: -1; }
	.cols4, .shelf { grid-template-columns: repeat(2, 1fr); }
	.split, .news { grid-template-columns: 1fr; }
	.fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.mast { grid-template-columns: 1fr; text-align: center; }
	.mast .left { display: none; }
	.mast .right { justify-self: center; }
	.cols4, .shelf { grid-template-columns: 1fr; }
	.news { padding: 22px; }
	.fgrid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { .btn, .chip { transition: background .15s, color .15s; } }
