/*
Theme Name: Vandana Portfolio
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A clean, minimal essay/newsletter-style personal-brand theme with a narrow single-column layout, serif headings, and a light/dark toggle.
Version: 1.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: vandana-portfolio
*/

/*
 * This file holds only the SHARED / global styles used by three or more
 * templates: fonts, design tokens, the reset, and small reusable
 * components (buttons, page-hero, confirm callouts, plain-list, etc).
 * Page-specific styles (hero, teasers, about-hero, arthive gallery,
 * contact form, etc.) live in <style> blocks inside their own PHP
 * templates. The site header/footer styles live in header.php/footer.php.
 */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/Fraunces-Variable.woff2') format('woff2-variations'), url('assets/fonts/Fraunces-Variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Fraunces';
	font-style: italic;
	font-weight: 300 700;
	font-display: swap;
	src: url('assets/fonts/Fraunces-Italic-Variable.woff2') format('woff2-variations'), url('assets/fonts/Fraunces-Italic-Variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Instrument Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/InstrumentSans-Variable.woff2') format('woff2-variations'), url('assets/fonts/InstrumentSans-Variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Instrument Sans';
	font-style: italic;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/InstrumentSans-Italic-Variable.woff2') format('woff2-variations'), url('assets/fonts/InstrumentSans-Italic-Variable.woff2') format('woff2');
}
@font-face {
	font-family: 'Dancing Script';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/DancingScript-Variable.woff2') format('woff2-variations'), url('assets/fonts/DancingScript-Variable.woff2') format('woff2');
}

/* ---------- Design tokens ---------- */
:root {
	--color-bg: #fbfaf7;
	--color-surface: #ffffff;
	--color-text: #1c1b18;
	--color-text-muted: #6b675e;
	--color-text-tag: #7a6a4f;
	--color-border: #e6e1d6;
	--color-icon-bg: #efeae0;
	--color-accent: #7a6a4f;
	--color-accent-contrast: #ffffff;
	--color-olive: #3f4a3c;

	--strata-1: #c9b89a;
	--strata-2: #a98d68;
	--strata-3: #7a6a4f;
	--strata-4: #4e4636;

	--font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

	--container-width: 700px;
	--radius-sm: 8px;
	--radius-md: 14px;
}

html[data-theme="dark"] {
	--color-bg: #17160f;
	--color-surface: #201f17;
	--color-text: #f1efe6;
	--color-text-muted: #a8a294;
	--color-text-tag: #c9b89a;
	--color-border: #35331f;
	--color-icon-bg: #2a2818;
	--color-accent: #c9b89a;
	--color-accent-contrast: #17160f;
	--color-olive: #8fa389;
}

/* ---------- Strata divider (signature element, used across most pages) ---------- */
.strata {
	display: flex;
	height: 5px;
	width: 100%;
	max-width: 220px;
	border-radius: 3px;
	overflow: hidden;
}
.strata span { flex: 1; }
.strata span:nth-child(1) { background: var(--strata-1); }
.strata span:nth-child(2) { background: var(--strata-2); }
.strata span:nth-child(3) { background: var(--strata-3); }
.strata span:nth-child(4) { background: var(--strata-4); }
.strata--divider { max-width: 100%; margin: 56px 0; }
.strata--hero { height: 7px; max-width: 260px; margin: 22px 0 26px; border-radius: 4px; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	transition: background-color 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 {
	font-family: var(--font-serif);
	font-weight: 500;
	line-height: 1.2;
	margin: 0 0 0.5em;
	letter-spacing: -0.01em;
}
em, i { font-family: var(--font-serif); font-style: italic; }

.container {
	width: 100%;
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 24px;
}

.eyebrow {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--color-text-tag);
	margin-bottom: 14px;
}

/* ---------- Buttons (used on the Contact page and the Subscribe CTA) ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: 0.9; }
.btn-primary { background: var(--color-accent); color: var(--color-accent-contrast); }

/* ---------- Page hero (shared header block used by most inner pages) ---------- */
.page-hero { padding-top: 56px; padding-bottom: 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.4rem); margin-bottom: 0.3em; }
.page-hero__subtext { color: var(--color-text-muted); font-size: 16px; max-width: 560px; margin: 0; }

@media (max-width: 640px) {
	.page-hero { padding-top: 28px; }
}

/* ---------- Page banner image (shared across Research/Publications/Presentations/Awards/Courses) ---------- */
.page-banner {
	margin: 0 0 8px;
	border-radius: var(--radius-md);
	overflow: hidden;
	height: 180px;
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Confirm / confirm-note callouts (shared editorial markers) ---------- */
.confirm {
	background: color-mix(in srgb, var(--color-accent) 12%, transparent);
	color: var(--color-text);
	padding: 0 4px;
	border-radius: 3px;
	font-size: 0.94em;
}
.confirm-note { font-size: 13px; color: var(--color-text-muted); font-style: italic; }

/* ---------- Plain list (shared across About/Awards/Presentations/Publications/Research) ---------- */
.plain-list { margin: 0; padding: 0; }
.plain-list li {
	list-style: none;
	padding: 14px 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 15px;
}
.plain-list li:first-child { padding-top: 0; }

/* ---------- Paper entry (shared across Blog/Awards/Publications) ---------- */
.paper-entry {
	padding: 18px 0;
	border-bottom: 1px solid var(--color-border);
	font-size: 15px;
}
.paper-entry__meta { font-size: 13px; color: var(--color-text-muted); display: block; margin-top: 4px; }

/* ---------- Icon logo links (shared across footer, Contact, Research) ---------- */
.icon-link-list { margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.icon-link-list li { list-style: none; }
.icon-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px 9px 10px;
	border: 1px solid var(--color-border);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	color: var(--color-text);
	background: var(--color-surface);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.icon-link:hover { border-color: var(--color-accent); transform: translateY(-1px); }
.icon-link__badge {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.icon-link__badge svg { width: 16px; height: 16px; }
.icon-link--linkedin .icon-link__badge,
.icon-link--scholar .icon-link__badge,
.icon-link--orcid .icon-link__badge,
.icon-link--researchgate .icon-link__badge { background: var(--color-accent); color: var(--color-accent-contrast); }

/* ---------- Bio content (shared prose block: About page + ArtHive artist-statement paragraph) ---------- */
.bio-content { padding-bottom: 8px; }
.bio-content p { font-size: 16px; margin: 0 0 20px; }
.bio-content a { text-decoration: underline; text-underline-offset: 3px; }
.bio-content h2 { font-size: 1.5rem; margin: 48px 0 18px; }
.bio-content h2:first-child { margin-top: 0; }

/*
 * ---------- AOS reliability net ----------
 * aos.css hides every [data-aos^="fade"] element (opacity: 0) purely
 * because the attribute exists in the HTML — with no dependency on its
 * JS ever running. If aos.js fails to load or errors out (network
 * hiccup, a blocked script, JS disabled), that content would stay
 * invisible forever. AOS.init() stamps data-aos-easing onto <body> the
 * moment it actually runs, so we use that as the real gate: content is
 * visible by default, and the hide-then-reveal treatment only kicks in
 * once AOS has genuinely initialised.
 */
[data-aos] { opacity: 1 !important; transform: none !important; }
body[data-aos-easing] [data-aos^="fade"] { opacity: 0 !important; }
body[data-aos-easing] [data-aos="fade-up"] { transform: translate3d(0, 40px, 0) !important; }
body[data-aos-easing] [data-aos^="fade"].aos-animate {
	opacity: 1 !important;
	transform: translateZ(0) !important;
}
