/*
 * 2HR Aquarist NZ site system. Values come from The 2HR Aquarist's own packaging and site:
 * the packshot cream, the logo red, and Source Sans set lowercase and heavy as on the boxes.
 * Libre Baskerville italic is for quoted lines only.
 */

@font-face {
	font-family: 'Source Sans 3';
	src: url('../fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Libre Baskerville';
	src: url('../fonts/libre-baskerville-latin-400-italic.woff2') format('woff2');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

:root {
	/* Raw values */
	--color-cream: #f8f4e8;
	--color-paper: #fffdf7;
	--color-ink: #231f1c;
	--color-red: #c72913;
	--color-red-deep: #a32010;
	--color-ink-soft: rgba(35, 31, 28, 0.68);
	--color-line: rgba(35, 31, 28, 0.16);
	--color-white: #ffffff;

	/* Roles */
	--background-color-primary: var(--color-cream);
	--background-color-secondary: var(--color-paper);
	--background-color-inverse: var(--color-red);
	--text-color-primary: var(--color-ink);
	--text-color-secondary: var(--color-ink-soft);
	--text-color-accent: var(--color-red);
	--text-color-inverse: var(--color-cream);
	--border-color: var(--color-line);

	--font-sans: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
	--font-quote: 'Libre Baskerville', Georgia, serif;

	--text-size-tiny: 0.8125rem;
	--text-size-small: 0.9375rem;
	--text-size-regular: 1.0625rem;
	--text-size-large: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
	--heading-display: clamp(3.2rem, 1.6rem + 6vw, 7.4rem);
	--heading-h1: clamp(2.6rem, 1.6rem + 4vw, 5.2rem);
	--heading-h2: clamp(2.2rem, 1.4rem + 3.2vw, 4.4rem);
	--heading-h3: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
	--heading-h4: 1.5rem;
	--heading-h5: 1.25rem;
	--heading-h6: 1.0625rem;

	--space-gutter: clamp(1rem, 4vw, 3.5rem);
	--space-section-small: clamp(2rem, 5vh, 3.5rem);
	--space-section-medium: clamp(3.5rem, 9vh, 6rem);
	--space-section-large: clamp(4rem, 12vh, 8.5rem);
	--radius: 0.25rem;
	--ease-settle: cubic-bezier(0, 0, 0.3, 1);
	--ease-snap: cubic-bezier(0.14, 1, 0.2, 1);
}

body.twohr {
	background: var(--background-color-primary);
	color: var(--text-color-primary);
	font-family: var(--font-sans);
	font-size: var(--text-size-regular);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.twohr .fl-page { background: var(--background-color-primary); }
body.twohr a { color: inherit; }
body.twohr a:hover, body.twohr a:focus { color: var(--text-color-accent); }
body.twohr :focus-visible { outline: 3px solid var(--color-red); outline-offset: 3px; }

/* Headings: the tag sets the default, a heading-style class keeps the tag and changes the look. */
body.twohr h1, body.twohr h2, body.twohr h3, body.twohr h4, body.twohr h5, body.twohr h6 {
	font-family: var(--font-sans);
	color: var(--text-color-primary);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 0.95;
	margin: 0;
	text-transform: none;
}
body.twohr h1, body.twohr .heading-style-h1 { font-size: var(--heading-h1); }
body.twohr h2, body.twohr .heading-style-h2 { font-size: var(--heading-h2); }
body.twohr h3, body.twohr .heading-style-h3 { font-size: var(--heading-h3); letter-spacing: -0.02em; }
body.twohr h4, body.twohr .heading-style-h4 { font-size: var(--heading-h4); letter-spacing: -0.015em; line-height: 1.1; }
body.twohr h5, body.twohr .heading-style-h5 { font-size: var(--heading-h5); letter-spacing: -0.01em; line-height: 1.15; }
body.twohr h6, body.twohr .heading-style-h6 { font-size: var(--heading-h6); letter-spacing: 0; line-height: 1.2; font-weight: 700; }
body.twohr .heading-style-display { font-size: var(--heading-display); line-height: 0.84; letter-spacing: -0.045em; color: var(--text-color-accent); }

body.twohr .text-size-tiny { font-size: var(--text-size-tiny); }
body.twohr .text-size-small { font-size: var(--text-size-small); }
body.twohr .text-size-regular { font-size: var(--text-size-regular); }
body.twohr .text-size-large { font-size: var(--text-size-large); line-height: 1.45; }
body.twohr .text-weight-bold { font-weight: 700; }
body.twohr .text-style-quote { font-family: var(--font-quote); font-style: italic; font-weight: 400; letter-spacing: 0; }
body.twohr .text-color-secondary { color: var(--text-color-secondary); }
body.twohr .text-color-accent { color: var(--text-color-accent); }
body.twohr .background-color-secondary { background: var(--background-color-secondary); }
body.twohr .background-color-inverse { background: var(--background-color-inverse); color: var(--text-color-inverse); }

/* Structure */
body.twohr .padding-global { padding-left: var(--space-gutter); padding-right: var(--space-gutter); }
body.twohr .container-large { max-width: 85rem; margin-left: auto; margin-right: auto; }
body.twohr .container-medium { max-width: 64rem; margin-left: auto; margin-right: auto; }
body.twohr .container-small { max-width: 44rem; margin-left: auto; margin-right: auto; }
body.twohr .padding-section-small { padding-top: var(--space-section-small); padding-bottom: var(--space-section-small); }
body.twohr .padding-section-medium { padding-top: var(--space-section-medium); padding-bottom: var(--space-section-medium); }
body.twohr .padding-section-large { padding-top: var(--space-section-large); padding-bottom: var(--space-section-large); }

/* Buttons, including WooCommerce's, so the store and the pages agree. */
body.twohr .button,
body.twohr a.button,
body.twohr button.button,
body.twohr input.button,
body.twohr .woocommerce a.button,
body.twohr .woocommerce button.button,
body.twohr .woocommerce input.button,
body.twohr .woocommerce #respond input#submit,
body.twohr .woocommerce a.button.alt,
body.twohr .woocommerce button.button.alt,
body.twohr .woocommerce input.button.alt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.125rem;
	border: 0;
	border-radius: var(--radius);
	background: var(--color-red);
	color: var(--color-white);
	font-family: var(--font-sans);
	font-size: var(--text-size-regular);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	box-shadow: none;
	transition: background-color 0.2s ease;
}
body.twohr .button:hover,
body.twohr .woocommerce a.button:hover,
body.twohr .woocommerce button.button:hover,
body.twohr .woocommerce input.button:hover,
body.twohr .woocommerce a.button.alt:hover,
body.twohr .woocommerce button.button.alt:hover { background: var(--color-red-deep); color: var(--color-white); }
body.twohr .button-large { min-height: 3.25rem; padding: 0 1.5rem; font-size: var(--text-size-large); }
body.twohr .button-secondary,
body.twohr .woocommerce a.button:not(.alt):not(.checkout-button):not(.add_to_cart_button):not(.single_add_to_cart_button) {
	background: transparent;
	color: var(--text-color-primary);
	box-shadow: inset 0 0 0 2px var(--color-ink);
}
body.twohr .button-secondary:hover { background: var(--color-ink); color: var(--color-cream); }
body.twohr .woocommerce button.button:disabled,
body.twohr .woocommerce button.button.disabled { opacity: 0.5; }

body.twohr .twohr-link {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: var(--color-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}
body.twohr .twohr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.875rem 1.5rem; margin: 0; }
body.twohr .twohr-tag { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--color-ink); color: var(--color-cream); font-size: var(--text-size-tiny); font-weight: 700; }
body.twohr .twohr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	body.twohr *, body.twohr *::before, body.twohr *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
