/* ==========================================================================
   Webonomics: base.css
   Design tokens, fonts, reset, layout wrapper, buttons and shared bits.
   Loaded on every page first. Colors are Michael's palette (BUILD-SHEET):
   white background, light gray outlines, money green accent.
   ========================================================================== */

/* Fonts: local copies of Google Fonts (SIL Open Font License), in assets/fonts/. */
@font-face { font-family: Manrope; src: url(../fonts/Manrope.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url(../fonts/InterTight.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	--wbn-white: #FFFFFF;      /* page background */
	--wbn-rule: #E3E5E8;       /* light gray outlines and dividers */
	--wbn-green: #2F6B4F;      /* money green: accent, hover/click state */
	--wbn-green-dk: #234F3B;   /* money green, pressed / dark panels */
	--wbn-green-tint: #EEF4F0; /* selected-card tint, focus halo */
	--wbn-ink: #1E2730;        /* main text */
	--wbn-slate: #5E6B76;      /* secondary text */
	--wbn-mist: #F6F7F6;       /* faint panel background */
	--wbn-max: 1200px;         /* content width */
	--wbn-head: Manrope, system-ui, sans-serif;
	--wbn-body: "Inter Tight", system-ui, sans-serif;
	--wbn-header-h: 84px;
}

/* --- Reset (scoped to the theme's own markup) --- */
*, *::before, *::after { box-sizing: border-box; }
body.wbn { margin: 0; background: var(--wbn-white); color: var(--wbn-ink); font: 400 17px/1.6 var(--wbn-body); -webkit-font-smoothing: antialiased; }
/* :where() keeps these resets at zero specificity, so component classes always win. */
:where(.wbn) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; padding: 0; }
:where(.wbn) :where(h1, h2, h3) { font-family: var(--wbn-head); color: var(--wbn-ink); letter-spacing: -0.02em; }
:where(.wbn) a { color: inherit; text-decoration: none; }
:where(.wbn) img { display: block; max-width: 100%; height: auto; }
:where(.wbn) button { font-family: inherit; }
.wbn-main { display: block; }

/* --- Layout wrapper --- */
.wbn-wrap { max-width: var(--wbn-max); margin: 0 auto; padding: 0 40px; }

/* --- Small label above headings --- */
.wbn-eyebrow { font: 600 12px var(--wbn-body); letter-spacing: 0.2em; text-transform: uppercase; color: var(--wbn-green); }

/* --- Buttons: neutral at rest, money green on hover, focus and click --- */
.wbn-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	min-height: 44px; padding: 12px 24px; border-radius: 6px; border: 1px solid transparent;
	font: 600 15px var(--wbn-body); letter-spacing: 0.01em; cursor: pointer;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.wbn-btn-dark { background: var(--wbn-ink); color: #fff; }
.wbn-btn-line { background: #fff; color: var(--wbn-ink); border-color: var(--wbn-rule); }
.wbn-btn:hover, .wbn-btn:focus-visible { background: var(--wbn-green); border-color: var(--wbn-green); color: #fff; }
.wbn-btn:active { background: var(--wbn-green-dk); border-color: var(--wbn-green-dk); color: #fff; }

/* --- Keyboard focus ring --- */
.wbn :focus-visible { outline: 2px solid var(--wbn-green); outline-offset: 2px; }

/* --- Placeholder marker: copy that is not final yet (prices, figures, email) --- */
.wbn-ph { color: var(--wbn-green); font-style: normal; border-bottom: 1px dashed var(--wbn-green); }

/* --- Accessibility helpers --- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wbn-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--wbn-ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.wbn-skip:focus { top: 12px; }

/* --- Phones --- */
@media (max-width: 700px) {
	.wbn-wrap { padding: 0 22px; }
	:root { --wbn-header-h: 68px; }
}

/* --- Reduced motion: no transitions or animations anywhere --- */
@media (prefers-reduced-motion: reduce) {
	.wbn *, .wbn *::before, .wbn *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
