/**
* Theme Name: Eroica Child
* Description: This is a child theme of Eroica.
* Author: <a href="http://themeforest.net/user/vankarwai">HeyThemers</a>
* Template: eroica
* Version: 1.0
*/

/* ==========================================================================
   Alexa Oaks PR
   Palette tokens are defined in theme.json and the Customizer.
   Everything below is only what those two cannot express.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Type rendering
   Bodoni is a Didone: hairline strokes that subpixel rendering likes to
   thicken. These three lines are the difference between crisp and muddy.
   -------------------------------------------------------------------------- */

body {
	-webkit-font-smoothing: auto;
	-moz-osx-font-smoothing: auto;
	text-rendering: optimizeLegibility;
}

/* Never let the browser fake a weight we do not own. */
h1, h2,
.wp-block-quote,
.wp-block-quote p {
	font-weight: 400;
	font-synthesis: none;
}

/* --------------------------------------------------------------------------
   0a. Optical size
   Bodoni Moda carries a second axis: opsz, 6 to 96. The default sits near
   text size, which at 100px renders a reading cut blown up — thick, muddy
   hairlines. Pinning opsz to 96 selects the display cut, where the
   hairline-to-stem contrast is the entire reason to use a Didone.
   font-variation-settings overrides font-weight, so wght is stated too.
   -------------------------------------------------------------------------- */

.aopr-display {
	font-variation-settings: "opsz" 40, "wght" 450;
}

.aopr-h2,
h1, h2 {
	font-variation-settings: "opsz" 32, "wght" 450;
}

.wp-block-quote,
.wp-block-quote p {
	font-variation-settings: "opsz" 28, "wght" 450;
}

/* --------------------------------------------------------------------------
   0b. Reading size
   Eroica's --base font size clamps to 3rem: body copy would hit roughly 33px
   on a laptop. That is a display size, not a reading size. Long-form copy
   needs to sit near 19px no matter how wide the monitor gets.
   Declared early so the .aopr-* display classes below still win.
   -------------------------------------------------------------------------- */

body,
p,
li,
.wp-block-paragraph {
	font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
	line-height: 1.65;
}

/* --------------------------------------------------------------------------
   1. Measure
   Eroica's content width is deliberately enormous. Long-form copy needs a
   reading measure regardless of how wide the viewport gets.
   -------------------------------------------------------------------------- */

.entry-content p,
.entry-content ul,
.entry-content ol {
	max-width: 68ch;
}

.aopr-measure-wide p {
	max-width: 84ch;
}


/* --------------------------------------------------------------------------
   2. The lacquer rule
   The single decorative element on the entire site.
   -------------------------------------------------------------------------- */

.aopr-rule {
	display: block;
	width: 4.5rem;
	height: 1px;
	background: var(--wp--preset--color--primary);
	border: 0;
	margin: 2.5rem 0;
}

.aopr-rule--wide {
	width: 100%;
	background: var(--wp--preset--color--base-neutral);
	opacity: 0.35;
}


/* --------------------------------------------------------------------------
   3. Section numerals — 01, 02, 03
   -------------------------------------------------------------------------- */

.aopr-numeral {
	display: block;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--looser);
	text-transform: uppercase;
	color: var(--wp--preset--color--base-neutral);
	margin-bottom: 0.75rem;
}


/* --------------------------------------------------------------------------
   4. Links
   -------------------------------------------------------------------------- */

.entry-content a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	transition: color 0.15s ease;
}

.entry-content a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--accent-deep);
}


/* --------------------------------------------------------------------------
   5. Buttons
   Eroica defaults buttons to Sumi on Rice Paper. Lacquer, squared off.
   -------------------------------------------------------------------------- */

.wp-block-button__link {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border-radius: 0;
	padding: 1.1rem 2rem;
	transition: background-color 0.15s ease;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
	background-color: var(--wp--preset--color--accent-deep);
	color: var(--wp--preset--color--base);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background-color: transparent;
	color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--primary);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}


/* --------------------------------------------------------------------------
   6. Pull quotes
   Lacquer, no quotation marks, no left border.
   -------------------------------------------------------------------------- */

.wp-block-quote {
	border: 0;
	padding: 0;
	color: var(--wp--preset--color--primary);
	font-style: normal;
}

.wp-block-quote::before,
.wp-block-quote::after {
	content: none;
}

.wp-block-quote p {
	max-width: 24ch;
}


/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */

.current-menu-item > a {
	color: var(--wp--preset--color--primary);
}


/* --------------------------------------------------------------------------
   8. Forms — WPForms, matched to the site rather than the plugin
   -------------------------------------------------------------------------- */

.wpforms-container .wpforms-field-label {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--loose);
	text-transform: uppercase;
	color: var(--wp--preset--color--base-neutral);
}

.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="url"],
.wpforms-container select,
.wpforms-container textarea {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--base-neutral);
	border-radius: 0;
	padding: 0.75rem 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--secondary);
	box-shadow: none;
}

.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
	border-bottom-color: var(--wp--preset--color--primary);
	outline: none;
	box-shadow: none;
}

.wpforms-container button[type="submit"] {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
	border: 0;
	border-radius: 0;
	padding: 1.1rem 2rem;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: var(--wp--custom--letter-spacing--looser);
	text-transform: uppercase;
}

.wpforms-container button[type="submit"]:hover {
	background-color: var(--wp--preset--color--accent-deep);
}


/* --------------------------------------------------------------------------
   10. Page architecture
   One vertical interval, used everywhere. The discipline that makes
   minimalist editorial work is monotony in the spacing, not variety.
   -------------------------------------------------------------------------- */

.aopr-section {
	padding-block: clamp(5.5rem, 11vw, 12rem);
}

.aopr-section--tight {
	padding-block: clamp(3.5rem, 6vw, 6rem);
}

.aopr-hero {
	padding-block: clamp(4.5rem, 11vw, 11rem) clamp(5rem, 10vw, 10rem);
}


/* --------------------------------------------------------------------------
   11. Display type
   Eroica's fluid scale was tuned for a 2560px canvas. These are tuned
   for 1600 and for a Didone, which needs tighter tracking than a grotesk.
   -------------------------------------------------------------------------- */

.aopr-display {
	font-family: var(--wp--preset--font-family--primary);
	font-size: clamp(3rem, 9.2vw, 8.75rem);
	line-height: 0.9;
	letter-spacing: -0.035em;
	font-weight: 400;
	font-synthesis: none;
	margin: 0;
	text-wrap: balance;
}

.aopr-h2 {
	font-family: var(--wp--preset--font-family--primary);
	font-size: clamp(2.1rem, 4.6vw, 4.25rem);
	line-height: 1;
	letter-spacing: -0.025em;
	font-weight: 400;
	font-synthesis: none;
	margin: 0 0 2rem;
	max-width: 17ch;
	text-wrap: balance;
}

.aopr-lede {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	line-height: 1.4;
	font-weight: 400;
	max-width: 42ch;
}

.aopr-eyebrow {
	display: block;
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--base-neutral);
	margin: 0 0 1.5rem;
}

.aopr-caption {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--wp--preset--color--base-neutral);
	max-width: 40ch;
}


/* --------------------------------------------------------------------------
   12. Pillars — the numbered three-up
   -------------------------------------------------------------------------- */

.aopr-pillar h3 {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
	margin: 0 0 0.75rem;
}

.aopr-pillar p {
	font-size: 1rem;
	line-height: 1.6;
	max-width: none;
}

.aopr-pillar img {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	margin-bottom: 1.75rem;
}


/* --------------------------------------------------------------------------
   13. The refusal list
   No bullets. Each item is a statement, not an inventory entry.
   -------------------------------------------------------------------------- */

.aopr-refusals {
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 62ch;
}

.aopr-refusals li {
	padding: 1.5rem 0;
	border-top: 1px solid rgba(138, 129, 119, 0.3);
	font-size: 1.0625rem;
	line-height: 1.6;
}

.aopr-refusals li:last-child {
	border-bottom: 1px solid rgba(138, 129, 119, 0.3);
}

.aopr-refusals strong {
	font-weight: 600;
}


/* --------------------------------------------------------------------------
   13b. Deliverables
   Hanging lacquer dashes rather than bullets. A bullet is a shopping list;
   a rule is a specification.
   -------------------------------------------------------------------------- */

.aopr-deliverables {
	list-style: none;
	margin: 2.75rem 0 0;
	padding: 0;
	max-width: 58ch;
}

.aopr-deliverables li {
	position: relative;
	padding: 0 0 0 2rem;
	margin: 0 0 1.15rem;
	line-height: 1.55;
}

.aopr-deliverables li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.75em;
	width: 0.75rem;
	height: 1px;
	background: var(--wp--preset--color--primary);
}


/* --------------------------------------------------------------------------
   13c. Mobile disclosure
   Desktop shows everything. Small screens get a toggle, styled as an
   eyebrow between two hairlines so it reads as a section marker rather
   than as a widget.
   -------------------------------------------------------------------------- */

.aopr-disclosure {
	margin: 0;
}

.aopr-disclosure > summary {
	display: none;
	cursor: pointer;
	list-style: none;
	margin-top: 2.5rem;
	padding: 1.1rem 0;
	border-top: 1px solid rgba(138, 129, 119, 0.3);
	border-bottom: 1px solid rgba(138, 129, 119, 0.3);
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}

.aopr-disclosure > summary::-webkit-details-marker {
	display: none;
}

.aopr-disclosure > summary::after {
	content: " +";
}

.aopr-disclosure[open] > summary::after {
	content: " –";
}

@media (max-width: 781px) {
	.aopr-disclosure > summary {
		display: block;
	}

	.aopr-disclosure .aopr-deliverables {
		margin-top: 1.75rem;
	}
}


/* --------------------------------------------------------------------------
   13d. Process steps
   Numeral in a left gutter, content to the right, hairlines between.
   The gutter is what makes a numbered list read as a specification
   rather than as instructions on the back of a box.
   -------------------------------------------------------------------------- */

.aopr-steps {
	margin: 3rem 0 0;
}

.aopr-step {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 2.5rem;
	padding: 3rem 0;
	border-top: 1px solid rgba(138, 129, 119, 0.3);
	align-items: start;
}

.aopr-step:last-child {
	border-bottom: 1px solid rgba(138, 129, 119, 0.3);
}

.aopr-step__num {
	font-family: var(--wp--preset--font-family--secondary);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	padding-top: 0.5rem;
}

.aopr-step__body h3 {
	font-family: var(--wp--preset--font-family--primary);
	font-size: clamp(1.5rem, 2.4vw, 2.25rem);
	font-variation-settings: "opsz" 28, "wght" 450;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 1rem;
}

.aopr-step__body p {
	margin: 0;
	max-width: 56ch;
}

@media (max-width: 781px) {
	.aopr-step {
		grid-template-columns: 1fr;
		gap: 0.75rem;
		padding: 2.25rem 0;
	}

	.aopr-step__num {
		padding-top: 0;
	}
}


/* --------------------------------------------------------------------------
   13e. Inverted block
   Used exactly once, on The First Five. This is the only commercial
   moment on the site and it should read as a different kind of object.
   Light text on dark is the one place antialiasing is correct — it
   thins strokes that subpixel rendering would otherwise bloat.
   -------------------------------------------------------------------------- */

.aopr-invert {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding-inline: clamp(1.5rem, 5vw, 5rem);
}

.aopr-invert h2,
.aopr-invert h3,
.aopr-invert p,
.aopr-invert li,
.aopr-invert strong {
	color: var(--wp--preset--color--base);
}

.aopr-invert .aopr-eyebrow {
	color: var(--wp--preset--color--base-neutral);
}

.aopr-invert .aopr-refusals li {
	border-color: rgba(247, 244, 239, 0.18);
}

.aopr-invert .aopr-rule--wide {
	background: var(--wp--preset--color--primary);
	opacity: 1;
}

.aopr-invert .wp-block-button__link {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--base);
}

.aopr-invert .wp-block-button__link:hover {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}


/* --------------------------------------------------------------------------
   14. Media
   -------------------------------------------------------------------------- */

.aopr-figure img {
	width: 100%;
	height: auto;
	display: block;
}

.aopr-figure--tall img {
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.aopr-figure--wide img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}


/* --------------------------------------------------------------------------
   15. Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 781px) {
	.aopr-h2 {
		max-width: none;
	}

	.aopr-pillar {
		margin-bottom: 3rem;
	}
}


/* --------------------------------------------------------------------------
   9. Accessibility
   -------------------------------------------------------------------------- */

:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}
