/*
 * Thai Nomad Life "Lagoon & Mango" tokens (Ismail, 3 Nov 2026; preset skills/wp-blog-design/references/presets/thai-nomad-lagoon.md).
 * 4 Nov 2026 "Teal & Mango" refresh: deep-teal darks instead of pine green, sand page background, brighter mango,
 * Bricolage Grotesque + Schibsted Grotesk instead of Fraunces + Manrope. Layout unchanged; rollback: backups/2026-11-04-teal-mango/.
 * The one place where colours and font stacks are defined; every other Lagoon file uses these variables.
 * Loads first, on every page, while the Lagoon design is on.
 *
 * WCAG contrast (skills/wp-blog-design/scripts/contrast.py): rock/powder 13.8, pine/powder 11.6, white/pine 12.4,
 * lagoon-deep/powder 5.3, lagoon-deep/powder-2 4.8, muted/powder 5.9, mango-deep/powder 5.9, mango/pine 6.8,
 * lagoon-light/pine 7.3, ink/lagoon 6.4, rock/mango 8.2, powder/palm 7.3, on-dark/pine 10.6.
 * Never: white text on lagoon (2.5) or on mango (1.9): lagoon and mango fills always carry ink or rock text.
 * No coral, pink, peach, terracotta or clay anywhere.
 */

:root {
	/* Palette */
	--tnl-pine: #0B3B3A;          /* hero base and overlay tint, dark sections, footer, headings on light */
	--tnl-palm: #145C57;          /* secondary dark: hover on dark, Living on Samui tag, borders on dark */
	--tnl-powder: #FBF7EF;        /* page background */
	--tnl-powder-2: #F1EADB;      /* cards, section bands, table stripes */
	--tnl-rock: #1F2A2A;          /* body text */
	--tnl-muted: #56625F;         /* secondary text, captions, dates */
	--tnl-lagoon: #2BB8B0;        /* signature colour, fills only: primary pill buttons, tags, icons, underlines */
	--tnl-lagoon-deep: #0A736E;   /* text links and outline buttons on light */
	--tnl-lagoon-deep-hover: #085E5A;
	--tnl-lagoon-light: #7FD6CF;  /* accent text on dark/pine */
	--tnl-mango: #FFB21A;         /* the one warm accent: Muay Thai tag, small highlights, eyebrows on dark */
	--tnl-mango-deep: #855700;    /* eyebrows and labels on powder */
	--tnl-ink: #14262A;           /* text on lagoon and mango fills */
	--tnl-white: #FFFFFF;

	/* Derived from the palette */
	--tnl-on-dark: #E6F0EE;       /* body text on pine (10.6:1) */
	--tnl-on-dark-muted: #B3CAC6; /* secondary text on pine (7.2:1) */
	--tnl-line: #E4DAC6;          /* hairlines and card borders on powder */
	--tnl-line-dark: rgba(255, 255, 255, .16);
	--tnl-lagoon-tint: #E2F3F1;   /* "How we know this" box (lagoon-deep 5.0:1, rock 12.9:1) */
	--tnl-lagoon-tint-line: #BFE3DF;
	--tnl-mango-tint: #FFF1D6;    /* "Watch out" and draft boxes (mango-deep 5.6:1, rock 13.2:1) */
	--tnl-mango-tint-line: #EED7A8;
	--tnl-switch-off: #C9CEC9;    /* cookie panel switch, off */
	--tnl-glass: rgba(8, 44, 43, .70);         /* white text 5.7:1 even over a white sky */
	--tnl-glass-strong: rgba(8, 44, 43, .82);
	--tnl-glass-border: rgba(255, 255, 255, .22);
	--tnl-chip-bg: rgba(255, 255, 255, .14);      /* hero chips (glass pill) */
	--tnl-chip-border: rgba(255, 255, 255, .35);
	--tnl-shade: 6, 38, 37;                     /* rgb of the pine overlay: rgba(var(--tnl-shade), .7) */

	/* Category colours: tag fill / tag text */
	--tnl-cat-visas: var(--tnl-lagoon);
	--tnl-cat-visas-text: var(--tnl-ink);
	--tnl-cat-fitness: var(--tnl-mango);
	--tnl-cat-fitness-text: var(--tnl-rock);
	--tnl-cat-living: var(--tnl-palm);
	--tnl-cat-living-text: var(--tnl-powder);

	/* Type */
	--tnl-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tnl-text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Blocksy reads its palette and fonts from these variables (its own palette is unset, so it showed its default blue) */
html:root {
	--theme-palette-color-1: var(--tnl-lagoon-deep);
	--theme-palette-color-2: var(--tnl-lagoon-deep-hover);
	--theme-palette-color-3: var(--tnl-rock);
	--theme-palette-color-4: var(--tnl-pine);
	--theme-palette-color-5: var(--tnl-line);
	--theme-palette-color-6: var(--tnl-powder-2);
	--theme-palette-color-7: var(--tnl-powder);
	--theme-palette-color-8: var(--tnl-white);
	--theme-text-color: var(--tnl-rock);
	--theme-headings-color: var(--tnl-pine);
	--theme-link-initial-color: var(--tnl-lagoon-deep);
	--theme-link-hover-color: var(--tnl-lagoon-deep-hover);
	--theme-font-family: var(--tnl-text);
}
html:root :is(h1, h2, h3, h4, h5, h6) {
	--theme-font-family: var(--tnl-display);
	--theme-text-transform: none;
}
body { background-color: var(--tnl-powder); color: var(--tnl-rock); }

/* Bricolage Grotesque has no italic: the old Fraunces italic accents (wordmark, hero, section titles) stay upright
   instead of a faked slant. Schibsted Grotesk ships a real italic, so <em> in body text is unaffected. */
html:root { font-synthesis: none; }

/* Category tags (cards, hub cards, Blog page): one fill per category */
.tnl-tag,
:is(.category, .blog) .entry-card .meta-categories a {
	display: inline-block;
	padding: 5px 11px;
	border-radius: 999px;
	font-family: var(--tnl-text);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
}
.tnl-tag--visas, :is(.category, .blog) .entry-card .meta-categories a.ct-term-64 { background: var(--tnl-cat-visas); color: var(--tnl-cat-visas-text); }
.tnl-tag--fitness, :is(.category, .blog) .entry-card .meta-categories a.ct-term-63 { background: var(--tnl-cat-fitness); color: var(--tnl-cat-fitness-text); }
.tnl-tag--living, :is(.category, .blog) .entry-card .meta-categories a.ct-term-65 { background: var(--tnl-cat-living); color: var(--tnl-cat-living-text); }

/* Selection */
::selection { background: var(--tnl-lagoon-light); color: var(--tnl-ink); }
