/**
 * Plush Toys Storefront Child Theme — Typography
 *
 * Poppins throughout. Headings lean heavy and tight; body reads light and
 * airy. A dedicated .plush-eyebrow utility provides the small pink
 * uppercase label that sits above section titles, and .plush-heading-underline
 * draws the short pink bar beneath them.
 *
 * Dependencies: variables.css
 */

/* ========================================
   BASE
   ======================================== */

body {
	font-family: var(--font-body);
	font-size: var(--text-size-base);
	line-height: var(--leading-normal);
	color: var(--color-text-primary);
	background-color: var(--color-bg-primary);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADINGS
   Bold, tight, navy.
   ======================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-display);
	font-weight: var(--font-weight-bold);
	color: var(--color-text-primary);
	line-height: var(--leading-tight);
	letter-spacing: var(--tracking-tight);
	margin: 0 0 0.5em;
}

h1 {
	font-size: var(--text-size-3xl);
}

h2 {
	font-size: var(--text-size-2xl);
}

h3 {
	font-size: var(--text-size-xl);
}

h4 {
	font-size: var(--text-size-lg);
}

h5 {
	font-size: var(--text-size-md);
	font-weight: var(--font-weight-semibold);
}

h6 {
	font-size: var(--text-size-base);
	font-weight: var(--font-weight-semibold);
}

@media (min-width: 768px) {
	h1 {
		font-size: var(--text-size-4xl);
	}

	h2 {
		font-size: var(--text-size-4xl);
	}

	h3 {
		font-size: var(--text-size-2xl);
	}
}

/* ========================================
   BODY TEXT
   ======================================== */

p {
	margin: 0 0 1.25em;
}

strong, b {
	font-weight: var(--font-weight-semibold);
}

em, i {
	font-style: italic;
}

.lead,
.text-lead {
	font-size: var(--text-size-md);
	line-height: var(--leading-relaxed);
	color: var(--color-text-secondary);
}

/* ========================================
   LINKS
   ======================================== */

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color var(--transition-base);
}

a:hover,
a:focus {
	color: var(--color-accent-hover);
}

/* Body-copy links keep the underline for legibility */
.entry-content a,
.woocommerce-info a,
.woocommerce-message a {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

/* ========================================
   EYEBROW LABEL
   The small uppercase pink text that sits above a section title.
   ======================================== */

.plush-eyebrow {
	display: inline-block;
	font-family: var(--font-display);
	font-size: var(--text-size-xs);
	font-weight: var(--font-weight-semibold);
	letter-spacing: var(--tracking-wider);
	text-transform: uppercase;
	color: var(--color-accent);
	margin: 0 0 var(--space-4);
}

/* ========================================
   HEADING UNDERLINE
   Short pink bar beneath a centred section title.
   Apply via class name on the heading element.
   ======================================== */

.plush-heading-underline {
	position: relative;
	padding-bottom: var(--space-6);
	margin-bottom: var(--space-12);
}

.plush-heading-underline::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 56px;
	height: 3px;
	border-radius: var(--radius-pill);
	background-color: var(--color-accent);
}

/* ========================================
   TEXT UTILITIES
   ======================================== */

.text-display { font-family: var(--font-display); }
.text-body    { font-family: var(--font-body); }
.text-mono    { font-family: var(--font-mono); }

.text-primary   { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted     { color: var(--color-text-muted); }
.text-accent    { color: var(--color-accent); }

.text-xs    { font-size: var(--text-size-xs); }
.text-sm    { font-size: var(--text-size-sm); }
.text-base  { font-size: var(--text-size-base); }
.text-md    { font-size: var(--text-size-md); }
.text-lg    { font-size: var(--text-size-lg); }
.text-xl    { font-size: var(--text-size-xl); }
.text-2xl   { font-size: var(--text-size-2xl); }

.font-normal    { font-weight: var(--font-weight-normal); }
.font-medium    { font-weight: var(--font-weight-medium); }
.font-semibold  { font-weight: var(--font-weight-semibold); }
.font-bold      { font-weight: var(--font-weight-bold); }

.leading-tight   { line-height: var(--leading-tight); }
.leading-snug    { line-height: var(--leading-snug); }
.leading-normal  { line-height: var(--leading-normal); }
.leading-relaxed { line-height: var(--leading-relaxed); }

.tracking-tight  { letter-spacing: var(--tracking-tight); }
.tracking-normal { letter-spacing: var(--tracking-normal); }
.tracking-wide   { letter-spacing: var(--tracking-wide); }
.tracking-wider  { letter-spacing: var(--tracking-wider); }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }

/* ========================================
   LISTS, QUOTES, MISC
   ======================================== */

blockquote {
	font-size: var(--text-size-md);
	line-height: var(--leading-relaxed);
	margin: 2em 0;
	padding-left: 1.25em;
	border-left: 3px solid var(--color-accent);
	color: var(--color-text-secondary);
}

code, kbd, pre {
	font-family: var(--font-mono);
	font-size: 0.875em;
}

code {
	background-color: var(--color-bg-muted);
	padding: 0.125em 0.375em;
	border-radius: var(--radius-sm);
}

pre {
	background-color: var(--color-bg-muted);
	padding: 1em;
	border-radius: var(--radius-md);
	overflow-x: auto;
	line-height: var(--leading-normal);
}

ul, ol {
	margin: 0 0 1.25em;
	padding-left: 1.5em;
}

li {
	margin-bottom: 0.25em;
}

hr {
	border: none;
	border-top: 1px solid var(--color-border);
	margin: 2em 0;
}

/* ========================================
   FOCUS — accessible, branded
   ======================================== */

:focus-visible {
	outline: none;
	box-shadow: var(--shadow-focus);
	border-radius: var(--radius-sm);
}
