/* Ensline brand foundation, shared by the static pages in www/ and the Django tools.
   Tokens and rules follow the Ensline brand guidelines v1.1.
   Fonts are self-hosted from this domain (SIL OFL, see fonts/*-OFL.txt); nothing loads from a third party. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bricolage-grotesque-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bricolage-grotesque-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bricolage-grotesque-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-700-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --forest: #2C4035; --forest-80: #677B70; --forest-60: #99B5A4; --forest-20: #DFE9E4; --forest-10: #F2F6F4;
  --slate: #1C2525; --slate-20: #D4DBDF; --slate-10: #EEF1F2;
  --signal: #E9EF48;
  --ink: #282D2D;
  --white: #FFFFFF;
  --error: #A3321F;
  --font-sans: "Bricolage Grotesque", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --radius-s: 4px; --radius-m: 12px; --radius-l: 24px; --radius-pill: 999px;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--white); color: var(--ink); font: 400 16px/26px var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
p { margin: 0; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 20px; top: -70px; padding: 12px; background: var(--signal); color: var(--forest); z-index: 20; }
.skip:focus { top: 20px; }
.wrap { width: min(1184px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type */
h1, h2, h3 { margin: 0; color: var(--ink); }
.display, h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 1.03; letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 400; line-height: 1.16; letter-spacing: -.01em; }
h3 { font-size: 22px; font-weight: 600; line-height: 28px; letter-spacing: -.01em; }
.kicker { margin: 0; font: 500 12px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--forest-80); }
.lede { font-size: 20px; line-height: 32px; text-wrap: pretty; }
.muted { color: var(--forest-80); }

/* Buttons: 4 px radius, Bricolage 600 at 15 px. "Signal" is the mockups' primary on hero and start pages. */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 54px; padding: 12px 24px; font: 600 15px/1.3 var(--font-sans); text-align: left; text-decoration: none; color: var(--ink); background: transparent; border: 2px solid var(--ink); border-radius: var(--radius-s); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: var(--forest-20); }
.btn.signal { background: var(--signal); border-color: var(--signal); color: var(--slate); }
.btn.signal:hover { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: var(--white); }
.btn.primary:hover { background: var(--slate); border-color: var(--slate); }
.btn:disabled { opacity: .4; cursor: default; }
.btn:disabled:hover { background: transparent; }
.btn.primary:disabled:hover { background: var(--forest); border-color: var(--forest); }
.btn.ghost { min-height: 0; padding: 4px 8px; border-color: transparent; color: var(--forest-80); }
/* Carbon icons, drawn as masks so they take the label's colour. */
.arrow::after, .arrow-back::before { content: ""; flex: none; width: 20px; height: 20px; background: currentColor; mask: center / contain no-repeat; -webkit-mask: center / contain no-repeat; }
.arrow::after { mask-image: url("icons/arrow--right.svg"); -webkit-mask-image: url("icons/arrow--right.svg"); }
.arrow-back::before { mask-image: url("icons/arrow--left.svg"); -webkit-mask-image: url("icons/arrow--left.svg"); }

/* Tags: pill, 1 px border, Plex Mono, standard name in semibold */
.tags { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; justify-items: start; }
.tag { padding: 4px 10px; font: 400 11px/18px var(--font-mono); color: var(--forest-80); background: var(--white); border: 1px solid var(--slate-20); border-radius: 16px; }
.tag b { font-weight: 600; color: var(--ink); }

/* Stat row: three equal columns under a rule */
.stat-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.stat-row li { border-top: 2px solid var(--forest-60); padding-top: 12px; }
.stat-row b { display: block; font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; }
.stat-row span { display: block; font-size: 16px; line-height: 24px; color: var(--forest-80); }

/* Sections and page furniture */
.site-header { padding: 32px 0 0; }
.home-link { display: inline-block; }
.home-link img { display: block; width: 136px; height: auto; }
.tinted { background: var(--forest-10); padding: 80px 0; }
.site-band { margin-top: auto; background: var(--forest-20); padding: 40px 0; }
.site-band p { font-size: 24px; line-height: 30px; letter-spacing: -.02em; color: var(--forest); }
.site-footer { background: var(--forest); color: var(--signal); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-details { font: 400 14px/22px var(--font-mono); }
.footer-details span { white-space: nowrap; }
.site-footer :focus-visible { outline-color: var(--signal); }
.footer-mark { display: block; flex: none; width: 40px; height: 40px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .stat-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tinted { padding: 48px 0; }
  .footer-details { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
