/*!
Theme Name: Sequence
Theme URI: https://mysequence.org
Author: Sequence
Author URI: https://mysequence.org
Description: A WooCommerce theme for the Sequence reference system. Six locked earth-tone categories, every product rendered as a full reference monograph from native post meta. Classic (non-FSE) theme.
Version: 2.0.5
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: Proprietary
License URI: https://mysequence.org/license
Text Domain: sequence
Tags: e-commerce, custom-menu, custom-logo, featured-images, translation-ready, full-width-template
WC requires at least: 8.0
WC tested up to: 9.9
*/

/*
  This file carries the theme header plus a small set of utilities that must be
  present in every context.

  The page-specific design lives in assets/css/, one stylesheet per page
  context, enqueued conditionally from functions.php:

    assets/css/page-home.css        front page
    assets/css/page-about.css       about + generic pages, archives, search, 404
    assets/css/page-video.css       video guide
    assets/css/page-dosing.css      shop / dosing index
    assets/css/page-calculator.css  reconstitution calculator
    assets/css/compound.css         product monograph, cart, checkout, account

  Those files are verbatim copies of the source design's stylesheets. Several
  selectors (.eyebrow, .wrap, .card, .hero h1, .hero-inner) legitimately carry
  different declarations from page to page, so they are deliberately NOT merged
  into one file: merging them would change the rendering. Do not consolidate.
*/

/* --- Accessibility ---------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	background-color: #f1e8dc;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #2a1a14;
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Visible keyboard focus everywhere — the design has none by default. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

/* --- Reduced motion --------------------------------------------------- */

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

	[data-reveal],
	[data-stagger] > * {
		opacity: 1 !important;
		transform: none !important;
	}
}

/* --- WordPress core alignment + caption ------------------------------- */

.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text {
	font-size: 11px;
	letter-spacing: 0.04em;
	opacity: 0.7;
	padding: 8px 0;
}

.sticky,
.gallery-caption,
.bypostauthor {
	display: block;
}

/* --- WooCommerce notices, kept inside the design grid ----------------- */

.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-notices-wrapper {
	max-width: 1160px;
	margin: 0 auto;
	padding: 96px 24px 0;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	list-style: none;
	border: 1px solid var(--mid, #3e2a22);
	border-left-width: 2px;
	border-radius: 12px;
	padding: 14px 18px;
	margin: 0 0 12px;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.woocommerce-error {
	border-left-color: var(--repair, #742406);
}

.woocommerce-message {
	border-left-color: var(--regenerate, #797559);
}

/* --- Nav cart pill ---------------------------------------------------- */

.nav .tail a.seq-cart {
	white-space: nowrap;
}
