/**
 * RE Factor Give Back - design tokens.
 *
 * Source of truth: Give Back Style Spec (values measured from refactortactical.com,
 * 28 Sep 2026) plus its "Where Give Back diverges" section. Every colour, size and
 * space used by the theme comes from here. Components read the semantic layer
 * (--surface, --on-surface, --cta-*), and colour schemes swap those.
 */

/* Archivo, self-hosted variable font: weight 400-900, width 62-125%. */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	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: "Archivo";
	font-style: normal;
	font-weight: 400 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	font-style: italic;
	font-weight: 400 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-italic-latin.woff2") format("woff2");
	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: "Archivo";
	font-style: italic;
	font-weight: 400 900;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("../fonts/archivo-italic-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	/* ---- Colour: core (store) ---- */
	--color-paper: #ffffff;
	--color-black: #000000;
	--color-ink: #202223;
	--color-body: #6d7175;
	--color-graphite: #3c3e40;
	--color-fog: #ebebeb;

	/* ---- Colour: lines and fields ---- */
	--color-line-heading: #e2e2e2;
	--color-line-footer: #eeeeee;
	--color-input-border: #dbdcdd;
	--color-input-hover: #afb1b3;
	--color-input-focus: #6d7175;
	--color-hairline: rgb(109 113 117 / 14%);

	/* ---- Colour: campaign ---- */
	--color-brass: #a6865a;
	--color-brass-ink: #7a6242;     /* brass for small text on paper/concrete (4.6:1); brass itself is 3.4:1 */
	--color-tan: #b9ab9b;
	--color-concrete: #e9e6e2;
	--color-banner-black: #0a0a0a;
	--color-muted-on-dark: #afb1b3; /* body copy on black (9.2:1); body grey is 4.3:1 there */

	/* ---- Colour: signals ---- */
	--color-in-stock: #108043;
	--color-in-stock-bg: #f2faf0;
	--color-low-stock: #dd9a1a;     /* dot only */
	--color-low-stock-text: #7a5c17; /* spec #DD9A1A text is 2.1:1 on its fill */
	--color-low-stock-bg: #fcf1cd;
	--color-star: #f6a529;
	/* Shopping signals: sale is the product card's sale badge (Part K, LGND cards). */
	--color-sale: #c4293d;
	--color-new: #ffe802;

	/* Fast pass "Night ticket" (Mike's design review, 27 Nov). */
	--color-ticket: #17191b;
	--color-ticket-perf: #3a3d40;
	--color-ticket-ink: #141414;
	--color-text-soft: #4a4c4e;
	--color-text-eyebrow: #625d58;   /* eyebrow on concrete */
	--color-gold-ink: #8a6720;       /* gold display text on concrete */
	--fp-bronze-foil: linear-gradient(100deg, #6a3b1f 0%, #c98a5a 38%, #f0c29a 50%, #b87445 64%, #5a2f17 100%);
	--fp-bronze-edge: #8a5634;
	--fp-bronze-text: #e2a271;
	--fp-gold-foil: linear-gradient(100deg, #7a5a16 0%, #d4ae4c 38%, #f7e3a1 50%, #c99a33 64%, #6b4c10 100%);
	--fp-gold-edge: #a9852e;
	--fp-gold-text: #e8c463;
	--fp-platinum-foil: linear-gradient(100deg, #5d6672 0%, #bfc7d1 38%, #f2f5f8 50%, #a9b3bf 64%, #4e5763 100%);
	--fp-platinum-edge: #8c96a3;
	--fp-platinum-text: #d3dae2;

	/* Footer (spec 2026-11-27-footer-and-followups). */
	--color-ft-text: #d9d5ce;
	--color-ft-soft: #b9b4ac;
	--color-ft-mute: #8a8680;
	--color-ft-line: #2c2f32;
	--color-ft-field: #0e0f10;

	/* ---- Fast pass tiers (Part K): card grounds, paper text on all of them ---- */
	--tier-bronze: #6a3b1f;
	--tier-silver: #4b5157;
	--tier-gold: #7c5d22;
	--tier-platinum: #23364a;

	/* ---- Roles: brass vs tan (swap here to move usage) ---- */
	--role-cta: var(--color-brass);           /* primary campaign CTA on dark */
	--role-number: var(--color-brass);        /* entry numbers, countdown digits on dark */
	--role-number-on-light: var(--color-brass-ink);
	/* Large numerals (24px+) only need 3:1, which brass meets on paper (3.4:1). */
	--role-figure-on-light: var(--color-brass);
	--role-progress: var(--color-brass);
	--role-ground-accent: var(--color-tan);   /* section ground, logo panel */

	/* ---- Typography ---- */
	--font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;
	--weight-black: 900;

	/* Heading scale steps 2.56px: (30 - 14) x 0.16 */
	--fs-h1: 30px;
	--fs-h2: 26.8px;
	--fs-h3: 24.24px;
	--fs-h4: 21.68px;
	--fs-h5: 19.12px;
	--fs-h6: 16.56px;
	--fs-body: 14px;
	--fs-body-lg: 16px;
	--fs-eyebrow: 11.2px;
	--fs-small: 11px;
	--fs-smallest: 10px;
	--fs-input: 16px;
	--fs-nav: 16px;
	--fs-quote: 30px;
	--fs-overlay: 84px;              /* overlay display, hero */
	--fs-overlay-block: 32px;
	--fs-display: clamp(56px, 3.2rem + 3.4vw, 96px); /* campaign display, 56-96 */
	--display-stretch: 70%;          /* 62-75% */
	--display-weight: 900;           /* 800-900 */

	--lh-heading: 1.2;
	--lh-h1: 36px;
	--lh-body: 1.6;
	--lh-eyebrow: 1.3;
	--lh-input: 1.3;
	--tracking-eyebrow: 0.1em;
	--tracking-cta: 0.04em;

	/* ---- Spacing: base 10 ---- */
	--space-5: 5px;
	--space-10: 10px;
	--space-15: 15px;
	--space-20: 20px;
	--space-30: 30px;
	--space-40: 40px;
	--space-50: 50px;
	--space-60: 60px;
	--space-80: 80px;
	--space-110: 110px;

	--section-sm: 50px;
	--section-md: 60px;  /* 80 desktop */
	--section-lg: 80px;  /* 110 desktop */
	--gutter: 16px;      /* 20 tablet, 30 large */
	--gutter-lg: 30px;
	--container-pad: 16px; /* 20 tablet, 50 desktop */
	--heading-gap: 10px;

	--container-page: 1920px;
	--container: 1200px;
	--container-reading: 720px;

	/* ---- Header ---- */
	--header-height: 64px;  /* 74 desktop */
	--announce-height: 40px;
	--cta-bar-height: 52px; /* mobile sticky "Enter now" bar, below 600px */

	/* ---- Shape ---- */
	--radius-control: 3px;  /* buttons, inputs */
	--radius-none: 0;       /* badges, tiles, cards */
	/* No shadows anywhere: there are deliberately no shadow tokens. */

	/* ---- Controls ---- */
	--btn-pad-y: 14px;
	--btn-pad-x: 25px;
	--btn-fs: 14px;
	--cta-pad-y: 18px;
	--cta-pad-x: 32px;
	--cta-fs: 16px;
	--input-height: 48px;
	--input-pad-y: 12.8px;
	--input-pad-x: 15px;
	--badge-pad-y: 5.5px;
	--badge-pad-x: 11px;
	--badge-fs: 11px;

	/* ---- Motion ---- */
	--motion-reveal: 0.6s;
	--motion-fast: 0.18s;
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	/* ---- Overlays ---- */
	--overlay-wash: rgb(0 0 0 / 10%);
	--overlay-radial: radial-gradient(ellipse at center, rgb(0 0 0 / 15%) 0%, rgb(0 0 0 / 0%) 70%);
	--overlay-gradient: linear-gradient(to top, rgb(0 0 0 / 55%) 0%, rgb(0 0 0 / 0%) 100%);

	/* ---- Semantic layer (default: light scheme) ---- */
	--surface: var(--color-paper);
	--on-surface: var(--color-body);
	--on-surface-strong: var(--color-ink);
	--on-surface-number: var(--role-number-on-light);
	--on-surface-figure: var(--role-figure-on-light);
	--line: var(--color-line-heading);
	--focus-ring: var(--color-ink);
	--cta-bg: var(--color-black);
	--cta-fg: var(--color-paper);
	--cta-bg-hover: var(--color-ink);
}

@media (min-width: 768px) {
	:root {
		--gutter: 20px;
		--container-pad: 20px;
		--fs-overlay: 58.8px;
	}
}

@media (min-width: 1024px) {
	:root {
		--section-md: 80px;
		--section-lg: 110px;
		--gutter: 30px;
		--container-pad: 50px;
		--header-height: 74px;
		--fs-overlay: 84px;
	}
}

@media (max-width: 767px) {
	:root {
		--fs-h1: 24px;
		--lh-h1: 1.2;
		--fs-overlay: 46px;
		--fs-quote: 20px;
	}
}

/* ---- Colour schemes: set on a section to change its ground ---- */
.scheme-light {
	--surface: var(--color-paper);
	--on-surface: var(--color-body);
	--on-surface-strong: var(--color-ink);
	--on-surface-number: var(--role-number-on-light);
	--on-surface-figure: var(--role-figure-on-light);
	--line: var(--color-line-heading);
	--focus-ring: var(--color-ink);
	--cta-bg: var(--color-black);
	--cta-fg: var(--color-paper);
	--cta-bg-hover: var(--color-ink);
}

/* "Black for the emotional beats." Brass CTA with black text. */
.scheme-dark {
	--surface: var(--color-black);
	--on-surface: var(--color-muted-on-dark);
	--on-surface-strong: var(--color-paper);
	--on-surface-number: var(--role-number);
	--on-surface-figure: var(--role-number);
	--line: rgb(255 255 255 / 18%);
	--focus-ring: var(--color-paper);
	--cta-bg: var(--role-cta);
	--cta-fg: var(--color-black);
	--cta-bg-hover: var(--color-paper);
}

.scheme-banner {
	--surface: var(--color-banner-black);
	--on-surface: var(--color-muted-on-dark);
	--on-surface-strong: var(--color-paper);
	--on-surface-number: var(--role-number);
	--on-surface-figure: var(--role-number);
	--line: rgb(255 255 255 / 18%);
	--focus-ring: var(--color-paper);
	--cta-bg: var(--role-cta);
	--cta-fg: var(--color-black);
	--cta-bg-hover: var(--color-paper);
}

/* Tan and concrete grounds: body grey fails contrast there, so copy uses ink. */
.scheme-tan {
	--surface: var(--role-ground-accent);
	--on-surface: var(--color-ink);
	--on-surface-strong: var(--color-black);
	--on-surface-number: var(--color-black);
	--on-surface-figure: var(--color-black);
	--line: rgb(0 0 0 / 18%);
	--focus-ring: var(--color-black);
	--cta-bg: var(--color-black);
	--cta-fg: var(--color-paper);
	--cta-bg-hover: var(--color-ink);
}

.scheme-concrete {
	--surface: var(--color-concrete);
	--on-surface: var(--color-ink);
	--on-surface-strong: var(--color-black);
	--on-surface-number: var(--color-brass-ink);
	--on-surface-figure: var(--color-brass-ink); /* brass is 2.9:1 on concrete */
	--line: rgb(0 0 0 / 12%);
	--focus-ring: var(--color-ink);
	--cta-bg: var(--color-black);
	--cta-fg: var(--color-paper);
	--cta-bg-hover: var(--color-ink);
}
