/*
 * Hashi — design tokens.
 *
 * Colours are derived from the theme.json palette rather than restated, so the
 * editor's colour picker, an editor-authored paragraph and the theme's own
 * bands cannot drift apart. theme.json is the single source; this file names
 * the roles. Scale, motion and layout come from .design/index.html.
 */

:root {
	/* ---- palette roles (bound to theme.json presets) ---- */
	--hs-paper: var(--wp--preset--color--paper, #F2EFE9);
	--hs-ink: var(--wp--preset--color--ink, #121212);
	--hs-acc: var(--wp--preset--color--vermilion, #C3321C);
	--hs-acc-light: var(--wp--preset--color--vermilion-light, #E7998E);
	--hs-acc-deep: var(--wp--preset--color--vermilion-deep, #A82B17);
	--hs-navy: var(--wp--preset--color--navy, #1C2A4A);
	--hs-muted: var(--wp--preset--color--muted, #55524C);
	--hs-body: var(--wp--preset--color--body-text, #3A3833);
	--hs-quiet: var(--wp--preset--color--quiet, #6E6A63);
	--hs-on-dark: var(--wp--preset--color--on-dark, #DAD5CB);
	--hs-on-dark-muted: var(--wp--preset--color--on-dark-muted, #BDB8AE);
	--hs-white: var(--wp--preset--color--white, #FFFFFF);

	/* City dots — one per office, used on the clock bar, the arcs and the cards. */
	--hs-tokyo: var(--wp--preset--color--tokyo, #C3321C);
	--hs-berlin: var(--wp--preset--color--berlin, #B9BDC1);
	--hs-mexico: var(--wp--preset--color--mexico, #8D78D6);

	/* Tints the reference uses inline and nowhere names. */
	--hs-dim: #A9A49A;
	--hs-band-label: #D9D5CC;
	--hs-preview-bg: #DDD8CF;
	--hs-photo-bg: #2A2A2A;
	--hs-stamp-accent: #E9B3A8;
	--hs-drawer-hover: #F0A99C;

	/*
	 * Non-text boundaries. The reference draws the hamburger at
	 * rgba(18,18,18,.2), which composites to 1.54:1 on white — under the 3:1
	 * WCAG 1.4.11 asks of a control boundary, and Lighthouse does not test it.
	 * 0.45 is the first step that clears 3:1.
	 */
	--hs-rule-strong: rgba(18, 18, 18, 0.45);
	--hs-rule: rgba(18, 18, 18, 0.18);
	--hs-rule-soft: rgba(18, 18, 18, 0.14);
	--hs-rule-on-ink: rgba(242, 239, 233, 0.16);

	/* ---- type ---- */
	--hs-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", system-ui, sans-serif);
	--hs-mono: var(--wp--preset--font-family--mono, "IBM Plex Mono", ui-monospace, monospace);
	--hs-jp: var(--wp--preset--font-family--jp, "Noto Serif JP", serif);

	/* ---- layout ----
	 *
	 * 1440 = the reference's 1344 plus its two 48px gutters.
	 *
	 * .design/index.html never sets `box-sizing: border-box`, so its
	 * `max-width: 1344px` is a CONTENT width and the padding sits outside it.
	 * WordPress sets border-box globally, which would otherwise take 96px out
	 * of every section and rewrap every headline.
	 */
	--hs-max: 1440px;
	--hs-gutter: 48px;
	--hs-cols: repeat(12, minmax(0, 1fr));
	--hs-colgap: 24px;

	/* ---- radii + shadow ---- */
	--hs-r-sm: 4px;
	--hs-r: 6px;
	--hs-r-lg: 8px;
	--hs-r-pill: 999px;

	/* ---- easing ---- */
	--hs-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--hs-ease-draw: cubic-bezier(0.7, 0, 0.2, 1);
}

@media (max-width: 720px) {
	:root { --hs-gutter: 20px; }
}
