/*
 * Sector B. Direction and color decisions: DESIGN.md in the project root.
 */

@font-face {
	font-family: "Russo One";
	src: url("../fonts/russo-one-cyrillic-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Russo One";
	src: url("../fonts/russo-one-latin-400-normal.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
	font-weight: 400 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Golos Text";
	src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 400 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--blue: #07569b;
	--navy: #101d47;
	--white: #ffffff;
	--gold: #ab9f67;
	--red: #cc252d;
	--green: #1d7a46;

	--text: var(--navy);
	--muted: #5a6380;        /* 5.95:1 on white */
	--muted-on-dark: #c9cedc; /* 10.36:1 on navy */
	--on-blue-soft: #c7d6ea;  /* 5.06:1 on blue */
	--line: #5a6380;          /* input borders: 3:1+ on white */
	--rule: #d5dae6;          /* decorative rules only */

	--font-display: "Russo One", "Arial Black", sans-serif;
	--font-text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

	--gutter: clamp(16px, 4vw, 48px);
	--container: 1320px;
	--header-h: 76px;
	--section-y: clamp(72px, 11vw, 160px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--font-text);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 0.2em; text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.05;
	text-wrap: balance;
	margin: 0 0 0.5em;
}

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible,
.site-footer :focus-visible,
.merch-band :focus-visible,
.join-close :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible,
.menu-panel :focus-visible,
.site-header :focus-visible { outline-color: var(--white); }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}
/* Same as .screen-reader-text, for header text that is hidden only at small widths. */
@media (max-width: 1119px) {
	.cart-link > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 420px) {
	.brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.skip-link {
	position: fixed; left: var(--gutter); top: 12px; z-index: 300;
	padding: 10px 16px; background: var(--white); color: var(--navy); font-weight: 700;
	transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Preloader: the crest-tile stripes rise, the crest appears, the whole layer lifts away ---------- */

.preloader { display: none; }

html.is-preloading { overflow: hidden; }
html.is-preloading .preloader {
	position: fixed; inset: 0; z-index: 400;
	display: grid; place-items: center;
	/* Failsafe: if the script never runs, the layer goes away by itself. */
	animation: sb-hide 0s 4s forwards;
}
.preloader__stripes { position: absolute; inset: 0; display: grid; grid-template-columns: 18fr 18fr 28fr 18fr 18fr; }
.preloader__stripes span { background: var(--navy); transform-origin: 50% 100%; }
.preloader__stripes span:nth-child(2),
.preloader__stripes span:nth-child(4) { background: var(--blue); }
.preloader__stripes span:nth-child(3) { background: var(--white); }
.preloader__crest { position: relative; width: clamp(120px, 18vw, 200px); }

@keyframes sb-hide { to { visibility: hidden; } }
@keyframes sb-show { to { visibility: visible; } }

/* ---------- Header ---------- */

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	background: var(--navy);
	color: var(--white);
	transition: transform 300ms var(--ease-out), background-color 200ms ease;
	view-transition-name: site-header;
}
.site-header.is-hidden { transform: translateY(-100%); }
body.menu-open .site-header { transform: none; background: transparent; }

body { padding-top: var(--header-h); }
body.has-blue-top { padding-top: 0; }

.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; margin-right: auto; }
.brand__crest { width: 46px; height: auto; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.02em; }

.primary-nav__list { display: flex; gap: clamp(16px, 2.2vw, 36px); list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	position: relative; display: block; padding: 10px 0;
	color: inherit; text-decoration: none; font-weight: 600; font-size: 0.98rem; white-space: nowrap;
}
.primary-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
	background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
	transition: transform 250ms var(--ease-out);
}
.primary-nav .current-menu-item > a::after,
.primary-nav .current_page_parent > a::after,
.primary-nav .current-menu-ancestor > a::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
	.primary-nav a:hover::after { transform: scaleX(1); }
}

.site-header__actions { display: flex; align-items: center; gap: 8px; }

.cart-link {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 4px;
	color: inherit; text-decoration: none; font-weight: 600;
}
.cart-count {
	display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding-inline: 6px;
	background: var(--white); color: var(--navy); font-size: 0.8rem; font-weight: 700;
}

.menu-toggle {
	display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
	border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 24px; height: 12px; }
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
	transition: transform 250ms var(--ease-out);
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1119px) {
	.primary-nav { display: none; }
	.menu-toggle { display: inline-flex; }
}

/* ---------- Menu panel (below 1120px: the 5 menu items need this width) ---------- */

.menu-panel {
	position: fixed; inset: 0; z-index: 90;
	background: var(--navy); color: var(--white);
	display: flex; align-items: center;
	padding-top: var(--header-h);
	overflow-y: auto;
}
.menu-panel[hidden] { display: none; }
.menu-panel__stripes { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; pointer-events: none; }
.menu-panel__stripes span { background: var(--blue); transform: scaleY(0); transform-origin: 50% 0; }
.menu-panel__nav { position: relative; }
.menu-panel__list { list-style: none; margin: 0; padding: 0; }
.menu-panel__list li { overflow: hidden; }
.menu-panel__list a {
	display: block; padding: 6px 0;
	font-family: var(--font-display); font-size: clamp(2rem, 9vw, 4.5rem); line-height: 1.1;
	text-transform: uppercase; color: var(--white); text-decoration: none;
}
.menu-panel__list .current-menu-item > a,
.menu-panel__list .current_page_parent > a { color: var(--gold); }
@media (hover: hover) and (pointer: fine) {
	.menu-panel__list a:hover { color: var(--gold); }
}

/* ---------- Buttons and links ---------- */

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit {
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 14px 28px;
	border: 2px solid var(--blue); border-radius: 0;
	background: var(--blue); color: var(--white);
	font-family: var(--font-text); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none;
	cursor: pointer;
	transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
/* The diagonal fill borrows the split of the shield. */
.button::before {
	content: ""; position: absolute; inset: 0 -30%; z-index: -1;
	background: var(--navy);
	transform: translateX(-101%) skewX(-24deg);
	transition: transform 280ms var(--ease-out);
}
.button:active,
.woocommerce a.button:active,
.woocommerce button.button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
	.button:hover::before { transform: translateX(0) skewX(-24deg); }
	.woocommerce a.button:hover,
	.woocommerce button.button:hover,
	.woocommerce input.button:hover,
	.woocommerce a.button.alt:hover,
	.woocommerce button.button.alt:hover,
	.woocommerce input.button.alt:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
}
.button--light { background: var(--white); border-color: var(--white); color: var(--navy); }
.button--light::before { background: var(--navy); }
@media (hover: hover) and (pointer: fine) {
	.button--light:hover { color: var(--white); }
}

.button[disabled],
.button[aria-busy="true"] { opacity: 0.75; cursor: progress; }

.text-link {
	display: inline-flex; align-items: center; min-height: 44px;
	font-weight: 700; color: var(--blue); text-decoration: underline;
}
.text-link--light { color: var(--white); }

/* ---------- Section label ---------- */

.label {
	display: inline-flex; align-items: center; gap: 12px;
	margin: 0 0 24px;
	font-family: var(--font-text); font-size: 1rem; font-weight: 700; line-height: 1.3;
	color: inherit;
}

.section { padding-block: var(--section-y); }
.section-head {
	display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
	margin-bottom: clamp(32px, 5vw, 64px);
}
.section-head .label { margin: 0; }

/* ---------- Hero ---------- */

.hero {
	position: relative; overflow: hidden;
	min-height: 100svh;
	display: grid; align-items: center;
	background: var(--blue); color: var(--white);
	padding-block: calc(var(--header-h) + 40px) 64px;
}
.hero__inner { position: relative; display: grid; justify-items: center; gap: clamp(32px, 5vw, 56px); text-align: center; }
/* 751px is the size of the wordmark file: the hero never shows it larger than the file. */
.hero__title { margin: 0; width: min(100%, 751px); }
.hero__wordmark { width: 100%; }

/* ---------- Inner page header ---------- */

.page-hero {
	position: relative; overflow: hidden;
	background: var(--blue); color: var(--white);
	padding-block: calc(var(--header-h) + clamp(48px, 9vw, 120px)) clamp(48px, 7vw, 96px);
}
.page-hero__stripes { position: absolute; inset: 0; display: flex; justify-content: space-between; pointer-events: none; }
.page-hero__stripes span { width: clamp(12px, 4vw, 64px); background: var(--navy); transform-origin: 50% 0; }
.page-hero__inner { position: relative; }
.page-hero__meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	margin: 0 0 20px; font-weight: 700; color: var(--on-blue-soft);
}
.page-hero__meta a { color: var(--white); }
.page-hero__sep { width: 10px; height: 16px; background: var(--white); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); }
.page-hero__title {
	margin: 0;
	font-size: clamp(2.25rem, 8vw, 6.75rem); line-height: 0.98;
	text-transform: uppercase;
	hyphens: auto; overflow-wrap: break-word;
}

.page-body { padding-block: clamp(48px, 7vw, 104px) var(--section-y); }

/* ---------- Two-column editorial split ---------- */

.split { display: grid; gap: 24px 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
	.split { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
	.split--form { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
	.split__aside .label { position: sticky; top: calc(var(--header-h) + 24px); }
}

.form-only .split__main { max-width: 760px; }

/* ---------- Dashed grid: the construction lines behind the statement and the join call ---------- */

.dash-grid {
	--dash: #b3bbcd;
	position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(var(--dash) 50%, transparent 0) var(--gutter) 0 / 1px 12px repeat-y,
		linear-gradient(var(--dash) 50%, transparent 0) 33.333% 0 / 1px 12px repeat-y,
		linear-gradient(var(--dash) 50%, transparent 0) 66.667% 0 / 1px 12px repeat-y,
		linear-gradient(var(--dash) 50%, transparent 0) calc(100% - var(--gutter)) 0 / 1px 12px repeat-y,
		linear-gradient(90deg, var(--dash) 50%, transparent 0) 0 clamp(40px, 6vw, 72px) / 12px 1px repeat-x,
		linear-gradient(90deg, var(--dash) 50%, transparent 0) 0 calc(100% - clamp(40px, 6vw, 72px)) / 12px 1px repeat-x;
}
.dash-grid--light { --dash: rgba(255, 255, 255, 0.4); }
/* Small square markers on three of the line crossings. */
.dash-grid span { position: absolute; width: 10px; height: 10px; border: 1px solid var(--dash); background: var(--white); }
.dash-grid--light span { background: var(--blue); }
.dash-grid span:nth-child(1) { left: calc(33.333% - 5px); top: calc(clamp(40px, 6vw, 72px) - 5px); }
.dash-grid span:nth-child(2) { left: calc(100% - var(--gutter) - 5px); top: 46%; }
.dash-grid span:nth-child(3) { left: calc(var(--gutter) - 5px); bottom: calc(clamp(40px, 6vw, 72px) - 5px); }

/* ---------- Statement ---------- */

.statement-band { position: relative; background: var(--white); }
.statement-band__inner { position: relative; }
.statement {
	margin: 0 0 32px;
	font-family: var(--font-display); font-size: clamp(2rem, 5.6vw, 5.75rem); line-height: 1.02;
	text-transform: uppercase; color: var(--navy);
	hyphens: auto; overflow-wrap: break-word;
}
/* Justified like a printed block from tablet width up; on phones the gaps get too wide. */
@media (min-width: 720px) {
	.statement { text-align: justify; text-align-last: left; }
	/* After SplitText each line is its own block (mask > line): justify every line except the last. */
	.statement > div:not(:last-child) > div { text-align-last: justify; }
}

/* ---------- Join call to action: the last section ---------- */

.join-close {
	position: relative; overflow: hidden;
	background: var(--blue); color: var(--white);
	text-align: center;
	padding-block: clamp(120px, 18vw, 240px);
}
.join-close__inner { position: relative; display: grid; justify-items: center; }
.join-close__title {
	margin: 0; max-width: 16ch;
	font-size: clamp(2.5rem, 8vw, 7.5rem); line-height: 0.95; text-transform: uppercase;
	hyphens: auto; overflow-wrap: break-word;
}
.join-close__lead { max-width: 52ch; margin: 24px 0 0; font-size: 1.2rem; }
.join-close__link {
	display: inline-flex; align-items: center; min-height: 44px; margin-top: clamp(24px, 3vw, 40px);
	font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 3rem); text-transform: uppercase;
	color: var(--white); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em;
	transition: text-underline-offset 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.join-close__link:hover { text-underline-offset: 0.3em; }
}

/* ---------- Merch band ---------- */

.merch-band { background: var(--navy); color: var(--white); }

.product-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: clamp(16px, 2.5vw, 32px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.product-tile a { display: block; color: inherit; text-decoration: none; }
.product-tile__media { display: block; overflow: hidden; background: var(--white); aspect-ratio: 1; }
.product-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms var(--ease-out); }
.product-tile__name { display: block; margin-top: 16px; font-weight: 700; font-size: 1.1rem; }
.product-tile__price { display: block; margin-top: 4px; color: var(--gold); font-weight: 700; }
.product-tile__price del { color: var(--muted-on-dark); font-weight: 400; }
@media (hover: hover) and (pointer: fine) {
	.product-tile a:hover img { transform: scale(1.04); }
	.product-tile a:hover .product-tile__name { text-decoration: underline; }
}

/* ---------- News list ---------- */

.news-list { list-style: none; margin: 0; padding: 0; border-bottom: 2px solid var(--navy); }
.news-row { border-top: 2px solid var(--navy); }
.news-row__link {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; gap: 8px 32px; align-items: center;
	grid-template-columns: minmax(0, 1fr);
	padding: 24px 0;
	color: var(--navy); text-decoration: none;
	transition: color 220ms ease;
}
@media (min-width: 760px) {
	.news-row__link { grid-template-columns: 200px minmax(0, 1fr) 120px; padding: 32px 0; }
}
.news-row__link::before {
	content: ""; position: absolute; inset: 0 -20%; z-index: -1;
	background: var(--blue);
	transform: translateX(-101%) skewX(-24deg);
	transition: transform 240ms var(--ease-out);
}
.news-row__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; font-weight: 600; color: var(--muted); transition: color 220ms ease, transform 240ms var(--ease-out); }
.news-row__cat { color: var(--blue); transition: color 220ms ease; }
/* On hover the text moves in from the edge of the blue fill. Transform only: no layout change. */
.news-row__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.8vw, 2.25rem); line-height: 1.1; transition: transform 240ms var(--ease-out); }
.news-row__thumb { display: none; }
@media (min-width: 760px) {
	.news-row__thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
	.news-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
}
@media (hover: hover) and (pointer: fine) {
	.news-row__link:hover { color: var(--white); }
	.news-row__link:hover .news-row__meta,
	.news-row__link:hover .news-row__title { transform: translateX(16px); }
	.news-row__link:hover::before { transform: translateX(0) skewX(-24deg); }
	.news-row__link:hover .news-row__meta,
	.news-row__link:hover .news-row__cat { color: var(--white); }
}
.news-row__link:focus-visible { outline-offset: -3px; }

.post-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.post-filter a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
	border: 2px solid var(--navy); color: var(--navy); font-weight: 700; text-decoration: none;
	transition: background-color 200ms ease, color 200ms ease;
}
.post-filter a[aria-current="page"] { background: var(--navy); color: var(--white); }
@media (hover: hover) and (pointer: fine) {
	.post-filter a:not([aria-current]):hover { background: var(--blue); border-color: var(--blue); color: var(--white); }
}

.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 2px solid var(--navy); color: var(--navy); font-weight: 700; text-decoration: none;
}
.page-numbers.current { background: var(--navy); color: var(--white); }
.page-numbers.dots { border-color: transparent; }

/* ---------- Single post ---------- */

.entry-image { margin: 0 0 48px; overflow: hidden; }
.entry-image img { width: 100%; }

.post-navigation { margin-top: 72px; border-top: 2px solid var(--navy); }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 760px) { .post-navigation .nav-links { grid-template-columns: 1fr 1fr; } }
.post-navigation a { display: block; padding: 24px 0; color: var(--navy); text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.post-nav__label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.post-nav__title { font-family: var(--font-display); font-size: 1.35rem; }
@media (hover: hover) and (pointer: fine) {
	.post-navigation a:hover .post-nav__title { color: var(--blue); }
}

/* ---------- Prose ---------- */

.prose { max-width: 70ch; }
.prose--wide { max-width: none; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin-top: 1.6em; }
.prose h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin-top: 1.4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose blockquote {
	margin: 2em 0; padding: 0 0 0 28px;
	border-left: 6px solid var(--blue);
	font-size: 1.35rem; font-weight: 500;
}
.prose img { margin-block: 2em; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 8px; }
.prose .wp-block-gallery figure,
.prose .wp-block-gallery img { margin: 0; }

/* ---------- States ---------- */

.empty-state {
	padding: clamp(32px, 5vw, 56px);
	border: 2px solid var(--navy);
}
.empty-state p { margin: 0 0 8px; }
.empty-state p:last-child { margin-bottom: 0; }
.empty-state__title { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 2rem); line-height: 1.15; }
.empty-state--dark { border-color: var(--gold); }
.empty-state--dark a { color: var(--white); }

.editor-note {
	padding: 24px;
	border: 2px dashed var(--blue);
	background: #eef2f8; color: var(--navy);
}
.editor-note p { margin: 0 0 8px; }
.editor-note p:last-child { margin: 0; }

.notice { margin-bottom: 32px; padding: 20px 24px; border: 2px solid; color: var(--navy); }
.notice p { margin: 0; }
.notice__title { font-weight: 700; margin-bottom: 4px !important; }
.notice--success { border-color: var(--green); background: #e8f3ec; }
.notice--error { border-color: var(--red); background: #fbecec; }
.notice:focus { outline: none; }
.notice:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------- Form ---------- */

.form__row { display: grid; gap: 0 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { margin: 0 0 22px; }
.form__field label { display: block; margin-bottom: 8px; font-weight: 700; }
.form__req { color: var(--red); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
	width: 100%; min-height: 52px; padding: 12px 14px;
	border: 2px solid var(--line); border-radius: 0;
	background: var(--white); color: var(--navy);
	font: inherit;
	transition: border-color 150ms ease;
}
.form textarea { resize: vertical; }
.form input:focus,
.form textarea:focus { border-color: var(--blue); }
.form input:user-invalid,
.form textarea:user-invalid { border-color: var(--red); }
.form__check { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 16px; }
.form__check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--blue); }
.form__hint { margin: 0 0 20px; font-size: 0.95rem; color: var(--muted); }
.form__hp { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 104px) 32px; }
.site-footer__inner { display: grid; gap: 40px; }
.site-footer__wordmark { display: block; width: min(100%, 520px); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: var(--white); font-weight: 600; text-decoration: none; }
/* Hover: the white underline of the main menu. */
.footer-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px;
	background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
	transition: transform 250ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.footer-nav a:hover::after { transform: scaleX(1); }
}
.site-footer__copy { margin: 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.2); color: var(--muted-on-dark); font-size: 0.95rem; }

/* ---------- WooCommerce ---------- */

.shop-body { padding-block: clamp(48px, 7vw, 104px) var(--section-y); }
.shop-body--single { padding-top: clamp(32px, 5vw, 64px); }

.woocommerce ul.products {
	display: grid !important; gap: clamp(16px, 2.5vw, 32px);
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	margin: 0 !important;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	float: none !important; width: auto !important; margin: 0 !important;
}
.woocommerce ul.products li.product a img { margin-bottom: 16px; background: #eef2f8; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	padding: 0; font-family: var(--font-text); font-weight: 700; font-size: 1.1rem; color: var(--navy);
}
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--blue); font-weight: 700; }
.woocommerce span.onsale {
	min-width: 0; min-height: 0; padding: 6px 12px; border-radius: 0; line-height: 1.2;
	background: var(--navy); color: var(--white); font-weight: 700;
}
.woocommerce div.product .product_title { font-size: clamp(2rem, 5vw, 3.5rem); text-transform: uppercase; }
.woocommerce .woocommerce-ordering select,
.woocommerce .quantity .qty,
.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
	min-height: 48px; padding: 8px 12px;
	border: 2px solid var(--line); border-radius: 0; font: inherit;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error { border-top-color: var(--blue); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--blue); }
.woocommerce-error { border-top-color: var(--red); }
.woocommerce-error::before { color: var(--red); }
.woocommerce-result-count { color: var(--muted); }

/* Cart and checkout blocks: the main buttons use the theme button style. */
.wc-block-components-button:not(.is-link) {
	min-height: 52px; padding: 14px 28px; border: 2px solid var(--blue); border-radius: 0;
	background: var(--blue); color: var(--white);
	font-family: var(--font-text); font-weight: 700;
	transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.wc-block-components-button:not(.is-link):active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
	.wc-block-components-button:not(.is-link):hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
}

/* Product tabs: a plain row of labels; the current tab is underlined in blue. */
.woocommerce div.product .woocommerce-tabs ul.tabs { margin: 0 0 24px; padding: 0; border-bottom: 2px solid var(--navy); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0 28px 0 0; padding: 0; border: 0; border-radius: 0; background: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 14px 0; font-weight: 700; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--navy); box-shadow: inset 0 -4px 0 var(--blue); }

/* ---------- Motion: hidden start states only when the script runs with motion allowed ---------- */

html.motion [data-split],
html.motion [data-reveal],
html.motion [data-underline] {
	visibility: hidden;
	/* Failsafe: show the content if the script fails. */
	animation: sb-show 0s 3s forwards;
}
html.motion .is-ready { visibility: visible; animation: none; }

/* Page transitions between pages (Chrome, Edge, Safari 18.2+). Other browsers load pages normally. */
@media (prefers-reduced-motion: no-preference) {
	@view-transition { navigation: auto; }

	::view-transition-old(root) { animation: 380ms var(--ease-in-out) both sb-page-out; }
	::view-transition-new(root) { animation: 620ms var(--ease-out) both sb-page-in; }
	::view-transition-group(site-header) { animation-duration: 0s; }
}
@keyframes sb-page-out { to { opacity: 0.4; transform: translateY(-6vh); } }
@keyframes sb-page-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
