/* ASH design rules (22 November 2026, agreed with Luke; see adventure-planner docs/design-audit-2026-11.html).
 *
 * 1. One font for every visitor: Inter, kept on our own server (fonts/, SIL Open Font Licence).
 *    Blocksy's free version can only offer system fonts or fonts loaded from Google, which would
 *    send visitors' addresses to Google, so the font is set here instead. Blocksy's own font
 *    settings are left on "Default" so they don't fight this.
 * 2. A few shared values the plugin's styles use (corners, shadow, the deeper pink for text).
 *
 * The colours themselves live in Blocksy's palette (Customizer, Colours):
 *   1 hot pink #FF4D7E (buttons)   2 blue #214673 (header, links, headings)   3 text #2A3340
 *   4 ink #0F1B2A                  5 line #D5DEE6                             6 panel #EEF9F8
 *   7 turquoise #3FD2C7 (tags)     8 white
 */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* "html:root" outranks Blocksy's own ":root" rule, whichever loads last */
html:root {
	--theme-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--ash-radius: 6px;
	--ash-ink: #0F1B2A;
	--ash-soft: #5B6676;
	--ash-field: #8492A3;
	/* One pink (Luke, 23 November): #D4237A (palette 1) for buttons, text links and clickable
	   titles alike. Its contrast with white is 4.9 : 1 both ways, so it works as text on white
	   and with white text on it. Every pink hover is the brighter hot pink #FF4D7E, the same as
	   in the header and footer (Luke). Hot pink with white or on white is 3.2 : 1, below the
	   standard, but only while the pointer is over it. */
	--ash-pink-deep: #D4237A;   /* text links, titles and outline buttons */
	--ash-link-hover: #FF4D7E;  /* their hover: hot pink */
	--ash-pink-hover: #FF4D7E;  /* buttons' hover: hot pink, white text */
	--ash-pink-on-dark: #FF4D7E; /* hovers on the blue header and other dark backgrounds */
	--ash-turq-hover: #6CDCD4;  /* tags' hover, lighter turquoise, dark text 10 : 1 */
	--ash-title-link: #D4237A;  /* clickable titles (card and list titles), the same as links */
	--ash-title-hover: #FF4D7E; /* their hover: hot pink */
	--ash-shadow: 0 8px 24px rgba(15, 27, 42, 0.15);
}

/* Tags under page titles and on cards: round, like the other tags (Blocksy has no setting) */
.entry-meta [data-type="pill"] a { border-radius: 999px; padding-left: 12px; padding-right: 12px; }

/* Categories in the article lists made with blocks (Recent, Related and Popular Articles in the
   article sidebar): turquoise tags like everywhere else, instead of small grey capitals. Those
   blocks set capitals and a small size themselves, hence !important. The commas between the
   names are hidden by the zero font size. */
.wp-block-post .ct-dynamic-data:has(> a[class*="ct-term"]) { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; font-size: 0 !important; text-transform: none !important; }
.wp-block-post .ct-dynamic-data > a[class*="ct-term"] { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--theme-palette-color-7); color: var(--ash-ink); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; text-transform: none; }
.wp-block-post .ct-dynamic-data > a[class*="ct-term"]:hover { background: var(--ash-turq-hover); color: var(--ash-ink); }

/* Headings that are links (card and list titles): a deeper pink, so it's clear they lead
   somewhere (Luke, 23 November); a darker pink and underlined on hover */
:is(h1, h2, h3, h4, h5, h6, .entry-title) a { --theme-link-initial-color: var(--ash-title-link); --theme-link-hover-color: var(--ash-title-hover); color: var(--ash-title-link); }
:is(h1, h2, h3, h4, h5, h6, .entry-title) a:hover { color: var(--ash-title-hover); }
/* Titles in blocks that set their own link colour (the article sidebar lists): the same pink */
:is(h1, h2, h3, h4, h5, h6):is(.ct-dynamic-data, .wp-block-post-title) a { color: var(--ash-title-link); }
:is(h1, h2, h3, h4, h5, h6):is(.ct-dynamic-data, .wp-block-post-title) a:hover { color: var(--ash-title-hover); }
:is(h1, h2, h3, h4, h5, h6, .entry-title) a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Second ("outline") buttons, everywhere (Luke, 23 November): white, with the site pink edge and
   text, on any background (white pages and the turquoise bands alike). On hover they fill with the
   bright hot pink and white text, like every pink hover. The text colour set on a button in the
   editor is overruled, hence !important. */
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link { background: #fff; border-color: var(--ash-pink-deep); color: var(--ash-pink-deep) !important; }
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible { background: var(--ash-pink-on-dark); border-color: var(--ash-pink-on-dark); color: #fff !important; }

/* The logo turns pink when pointed at (Luke, 22 November 2026). The logo files are white, so a
   colour filter turns them hot pink (#FF4D7E, the pink for dark backgrounds); it works on the
   desktop, phone and sticky logos. */
.site-logo-container img { transition: filter 0.15s ease; }
.site-logo-container:hover img,
.site-logo-container:focus-visible img { filter: brightness(0) saturate(100%) invert(48%) sepia(38%) saturate(873%) hue-rotate(296deg) brightness(95%) contrast(135%); }

/* Bold is 700 everywhere; the theme's heavier weights (800, 900) fall back to it */
h1, h2, h3, h4, h5, h6, .page-title, .entry-title { font-weight: 700; }
