/* ==========================================================================
   UCeed — global base: reset, typography, layout primitives
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
address { font-style: normal; }

/* ---------- Typography ---------- */

h1, h2, h3, h4, .display, .h1, .h2, .h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: var(--track-heading);
  line-height: var(--lh-heading);
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  font-weight: 750;
  line-height: var(--lh-tight);
  letter-spacing: var(--track-display);
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1; letter-spacing: -0.028em; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.15; letter-spacing: -0.01em; }
h4, .h4 {
  font-family: var(--font-text);
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -0.005em;
}

/* Highlight: a Sunflower field behind key words, never a colour change */
.display mark, h1 mark, h2 mark, .statement mark {
  background: var(--sunflower);
  color: var(--ink);
  padding: 0 0.12em;
  border-radius: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

p { margin: 0 0 var(--space-4); max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text);
  max-width: 40rem;
}
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  margin: 0 0 var(--space-5);
  font-family: var(--font-text);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink);
}
/* The seed — one Sprout dot from the spiral */
.label::before {
  content: "";
  flex: none;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--sprout);
}

.num { font-variant-numeric: tabular-nums; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:where(:not(.btn)):hover { color: var(--sprout); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--sunflower); color: var(--ink); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--page-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * 0.6); }
.section--flush-top { padding-top: 0; }

/* Editorial split: a narrow label column and a wide content column */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-5); }
.split__aside { grid-column: 1 / span 3; }
.split__main { grid-column: 4 / -1; }
.split__main--narrow { grid-column: 4 / span 7; }

.stack > * + * { margin-top: var(--space-5); }

.cols-2, .cols-3, .cols-4 { display: grid; column-gap: var(--gutter); row-gap: var(--space-7); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Utilities ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--page-pad);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--pollen);
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus, .skip-link:hover { top: var(--space-3); color: var(--pollen); }

.mt-0 { margin-top: 0 !important; }
.mt-5 { margin-top: var(--space-5); }
.mt-7 { margin-top: var(--space-7); }
.mt-8 { margin-top: var(--space-8); }
.mb-7 { margin-bottom: var(--space-7); }
.mb-8 { margin-bottom: var(--space-8); }
