/*
 * Design tokens: Figma "V2 Colors" + V2/EN and V2/JP text styles.
 * Every colour in the theme comes from here. No raw hex anywhere else.
 * Fluid values interpolate between the 390 (mobile) and 1440 (desktop) frames.
 */
:root {
	/* Colour */
	--cream: #F3EBDD;
	--cream-deep: #E9DECB;
	--indigo: #1E2B48;
	--ink-soft: #4B4A50;
	--sumi: #24211D;
	--persimmon: #C9622F;
	--persimmon-text: #9D4C25;  /* persimmon for small text: 5.08:1 on cream, 4.51:1 on cream-deep (WCAG AA) */
	--persimmon-band: #A95227;  /* contact band: cream 12px text 4.52:1 (WCAG AA) */
	--persimmon-light: #F2A47A;
	--plum: #7A2E3B;
	--rule: #B9A88E;
	--hairline: #D6CCBB;

	/* Font stacks */
	--font-serif: "Instrument Serif", "Times New Roman", serif;
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-serif-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
	--font-sans-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

	/* EN type scale (V2/EN/*). Mobile size → desktop size */
	--fs-display: clamp(2.75rem, 2.1rem + 2.6667vw, 4.5rem);          /* 44 → 72 */
	--lh-display: 1;
	--ls-display: -0.015em;
	--fs-display-italic: clamp(1.875rem, 1.55rem + 1.3333vw, 2.75rem); /* 30 → 44 */
	--lh-display-italic: 1.1;
	--ls-display-italic: -0.005em;
	--fs-h1: clamp(2.25rem, 1.8786rem + 1.5238vw, 3.25rem);           /* 36 → 52 */
	--lh-h1: 1.05;
	--ls-h1: -0.01em;
	--fs-h2: clamp(1.75rem, 1.5643rem + 0.7619vw, 2.25rem);           /* 28 → 36 */
	--lh-h2: 1.15;
	--ls-h2: -0.005em;
	--fs-statement: clamp(1.75rem, 1.5643rem + 0.7619vw, 2.25rem);    /* 28 → 36 */
	--lh-statement: 1.28;
	--fs-service: clamp(1.75rem, 1.6571rem + 0.381vw, 2rem);          /* 28 → 32 */
	--lh-service: 1.15;
	--fs-body-l: clamp(1.0625rem, 1.0161rem + 0.1905vw, 1.1875rem);   /* 17 → 19 */
	--lh-body-l: 1.55;
	--fs-body: 1rem;                                                   /* 16 */
	--lh-body: 1.6;
	--fs-small: 0.8125rem;                                             /* 13 */
	--lh-small: 1.5;
	--fs-label: 0.75rem;                                               /* 12 */
	--lh-label: 1.4;
	--ls-label: 0.14em;

	/* JP type scale (V2/JP/*) */
	--fs-jp-hero: clamp(1.6875rem, 1.4321rem + 1.0476vw, 2.375rem);   /* 27 → 38 */
	--fs-jp-hero-sub: clamp(1.0625rem, 0.9929rem + 0.2857vw, 1.25rem); /* 17 → 20 */
	--fs-jp-statement: clamp(1.25rem, 1.1571rem + 0.381vw, 1.5rem);   /* 20 → 24 */
	--fs-jp-h2: 1.3125rem;                                             /* 21 */
	--fs-jp-body: 0.9375rem;                                           /* 15 */
	--fs-jp-small: 0.8125rem;                                          /* 13 */
	--fs-jp-label: 0.75rem;                                            /* 12 */
	--lh-jp-head: 1.5;
	--lh-jp-sub: 1.75;
	--lh-jp-body: 1.85;
	--ls-jp: 0.02em;
	--ls-jp-label: 0.1em;

	/* Layout */
	--content-max: 75rem;                                              /* 1200 */
	--pad-x: clamp(1.5rem, -0.7286rem + 9.1429vw, 7.5rem);             /* 24 → 120 */
	--pad-x-frame: clamp(1.5rem, 0.6643rem + 3.4286vw, 3.75rem);       /* 24 → 60: header and noren */
	--section-y: clamp(4rem, 2.7rem + 5.3333vw, 7.5rem);               /* 64 → 120 */

	/* Lattice (kōshi) band */
	--lattice-h: 4.5rem;     /* 72 */
	--lattice-pitch: 12px;
	--lattice-bar: 2px;

	/* Motion */
	--ease-out: ease-out;
	--ease-press: cubic-bezier(.2, .8, .2, 1);
	--t-color: 150ms;
	--t-arrow: 200ms;
	--t-menu: 200ms;

	/* Hanko */
	--hanko-tilt: -15deg;
}

@media (max-width: 767px) {
	:root {
		--lattice-h: 3rem;   /* 48 */
		--lattice-pitch: 10px;
	}
}
