/* ==========================================================================
   SBCA — design tokens
   Single source of truth for colour, type, and spacing.
   Mirrors theme.json; theme.json wins for the block editor.
   ========================================================================== */

:root {

	/* --- Brand ------------------------------------------------------------ */
	--sbca-ink:         #0A1F35;  /* masthead, bands, footer */
	--sbca-ink-2:       #132B44;  /* raised ink surfaces */
	--sbca-civic:       #06549C;  /* brand blue, from the logo */
	--sbca-civic-deep:  #043A66;  /* civic hover */
	--sbca-signal:      #D61E47;  /* brand red, from the logo */
	--sbca-paper:       #FBFBFA;  /* page ground — cool, never cream */
	--sbca-paper-2:     #F2F4F6;  /* tinted panels */
	--sbca-rule:        #DCE1E7;  /* hairlines */
	--sbca-rule-strong: #B9C2CC;  /* emphasised hairlines */
	--sbca-slate:       #5A6672;  /* secondary text */
	--sbca-text:        #16202B;  /* body text */
	--sbca-white:       #FFFFFF;

	/* On ink */
	--sbca-on-ink:      #FBFBFA;
	--sbca-on-ink-2:    #A9B7C6;  /* secondary text on ink */
	--sbca-on-ink-rule: #2A405A;

	/* --- Type ------------------------------------------------------------ */
	--sbca-font-display: Archivo, "Helvetica Neue", Helvetica, Arial, sans-serif;
	--sbca-font-text:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--sbca-font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	--sbca-font-serif:   Newsreader, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

	/* Display type is condensed. The width axis is what makes Archivo read as
	   institutional rather than as a generic UI sans. */
	--sbca-display-stretch: 88%;
	--sbca-display-weight: 700;

	--sbca-text-size:    1.0625rem;   /* 17px */
	--sbca-text-lh:      1.65;
	--sbca-measure:      68ch;

	/* --- Surfaces --------------------------------------------------------- */
	--sbca-surface:      #FFFFFF;
	--sbca-surface-2:    #F4F6F8;
	--sbca-surface-3:    #EAEEF2;

	/* --- Radius ----------------------------------------------------------- */
	/* Square. The Council's material is printed on paper, cut with a rule
	   press — it has no rounded corners. Radius is the single loudest signal
	   of a generated interface, so it stays at zero and the few genuinely
	   rounded forms (the star, the pillar index) are circles by geometry. */
	--sbca-radius:    0;
	--sbca-radius-sm: 0;
	--sbca-radius-lg: 0;

	/* --- Elevation -------------------------------------------------------- */
	/* Hairlines carry the structure; shadow is reserved for things that
	   genuinely float above the page — a dropdown, a mobile panel. A surface
	   that sits in the flow has no shadow at all. */
	--sbca-shadow-sm: none;
	--sbca-shadow:    none;
	--sbca-shadow-lg: 0 10px 28px rgba(10, 31, 53, 0.14);


	/* --- Space ----------------------------------------------------------- */
	--sbca-space-1: 0.25rem;
	--sbca-space-2: 0.5rem;
	--sbca-space-3: 0.75rem;
	--sbca-space-4: 1rem;
	--sbca-space-5: 1.5rem;
	--sbca-space-6: 2rem;
	--sbca-space-7: 3rem;
	--sbca-space-8: 4rem;
	--sbca-space-9: 6rem;

	/* --- Structure ------------------------------------------------------- */
	--sbca-container:      1280px;
	--sbca-container-narrow: 760px;
	--sbca-gutter:         1.25rem;
	--sbca-section-y:      clamp(3rem, 7vw, 5.5rem);

	/* --- Qualities ------------------------------------------------------- */
	--sbca-transition: 160ms cubic-bezier(0.2, 0, 0.2, 1);
}

/* The star is the brand's one graphic asset. It appears at several sizes;
   it is always the current colour so it can invert against ink. */
.sbca-star {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: currentColor;
	flex: none;
	vertical-align: -0.125em;
}
