/* Archival — the "oxblood" style variant (Mike, 2026-09-02).
 *
 * Loaded only when archival_style_variant() returns 'oxblood'; every rule is
 * scoped to body.style-oxblood so nothing here can leak into the gold canon.
 * Switch: `wp option update archival_style_variant oxblood|gold`, or append
 * ?style=oxblood / ?style=gold to any URL to compare for one request.
 *
 * What it changes, and nothing else:
 *   1. Every call to action is a red plate — the theme's own oxblood token,
 *      the red already used for entry numbers and scores — with paper
 *      lettering, a 2px corner and a flat colour fade on hover. The rev-3
 *      liquid pour is switched off. Outline buttons go red-on-transparent
 *      and fill on hover. On ink grounds the plate keeps a pale-gold hairline
 *      so it has an edge.
 *   2. The wine's codename (the quoted house name — "Archivist") sets in
 *      gold-dark wherever a name is composed. Bright gold on cream is ~2:1
 *      and fails even at headline size, which is why it is gold-dark here.
 *
 * Two reds were previewed: the "Linen & Oxblood" brief's #7A2E2E (hover
 * #5A1F22) and this one. Mike chose the theme's own token, so no new token.
 * The stepper and quick-add tiers are controls, not asks — they stay as
 * main.css leaves them.
 */

body.style-oxblood {
	--ox-plate: var(--wp--preset--color--oxblood);
	--ox-plate-hover: #4F1B1E;
	--ox-lettering: var(--wp--preset--color--paper);
}

/* --- Primary: every plate goes red ------------------------------------- */
/* Exempt: the quantity steppers (buy box and sticky bar), the quick-add cards,
   and the producer's-note tabs — those are switches and shortcuts, not calls to
   action. .bb-qty-step was missing until 2026-09-15: the bar's +/- came out as
   two red squares on the ink bar. */
body.style-oxblood button:not(.pdpx-step):not(.bb-qty-step):not(.pdpx-quickadd-btn):not(.pdpx-tab),
body.style-oxblood .wp-block-button__link,
body.style-oxblood .ledger-atc button,
body.style-oxblood .pdp-atc button,
body.style-oxblood .pdpx-atc,
body.style-oxblood .arch-nav a.arch-login,
body.style-oxblood .rc-btn--solid {
	background: var(--ox-plate);
	color: var(--ox-lettering);
	border: 1px solid var(--ox-plate);
	border-radius: 2px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-indent: 0.16em;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
/* the pour is painted by ::before in main.css; a flat fade wants it gone */
body.style-oxblood button::before,
body.style-oxblood .wp-block-button__link::before,
body.style-oxblood .ledger-atc button::before,
body.style-oxblood .pdp-atc button::before,
body.style-oxblood .pdpx-atc::before {
	content: none;
}
body.style-oxblood button:not(.pdpx-step):not(.bb-qty-step):not(.pdpx-quickadd-btn):not(.pdpx-tab):hover,
body.style-oxblood button:not(.pdpx-step):not(.bb-qty-step):not(.pdpx-quickadd-btn):not(.pdpx-tab):focus-visible,
body.style-oxblood .wp-block-button__link:hover,
body.style-oxblood .wp-block-button__link:focus-visible,
body.style-oxblood .pdpx-atc:hover,
body.style-oxblood .pdpx-atc:focus-visible,
body.style-oxblood .arch-nav a.arch-login:hover,
body.style-oxblood .arch-nav a.arch-login:focus-visible,
body.style-oxblood .rc-btn--solid:hover,
body.style-oxblood .rc-btn--solid:focus-visible {
	background: var(--ox-plate-hover);
	border-color: var(--ox-plate-hover);
	color: var(--ox-lettering);
	text-decoration: none;
}

/* On ink the plate needs an edge. Same list of dark grounds main.css keeps. */
body.style-oxblood .arch-bar .arch-login,
body.style-oxblood .home-hero .wp-block-button__link,
body.style-oxblood .home-hero button,
body.style-oxblood .home-proof .wp-block-button__link,
body.style-oxblood .home-proof button,
body.style-oxblood .home-manifesto .wp-block-button__link,
body.style-oxblood .arch-footer button,
body.style-oxblood .arch-footer .wp-block-button__link,
body.style-oxblood .pdpx-hero6 .wp-block-button__link,
body.style-oxblood .pdpx-buybar button {
	border-color: var(--wp--preset--color--gold-light);
}

/* Standalone buttons get the generous plate; full-width ones keep their own. */
body.style-oxblood .wp-block-button__link { padding: 16px 42px; }

/* --- Secondary / outline ----------------------------------------------- */
body.style-oxblood .rc-btn--outline,
body.style-oxblood .home-sec-cta .wp-block-button__link {
	background: transparent;
	color: var(--ox-plate);
	border: 1px solid var(--ox-plate);
	border-radius: 2px;
}
body.style-oxblood .rc-btn--outline:hover,
body.style-oxblood .rc-btn--outline:focus-visible,
body.style-oxblood .home-sec-cta .wp-block-button__link:hover,
body.style-oxblood .home-sec-cta .wp-block-button__link:focus-visible {
	background: var(--ox-plate);
	color: var(--ox-lettering);
	border-color: var(--ox-plate);
}

/* --- The codename in gold ----------------------------------------------- */
body.style-oxblood .wine-code { color: var(--wp--preset--color--gold-dark); }
/* on ink grounds the dark gold vanishes; use the bright one there */
body.style-oxblood .arch-footer .wine-code,
body.style-oxblood .home-proof .wine-code,
body.style-oxblood .pdpx-dark .wine-code { color: var(--wp--preset--color--gold); }
