/* The site's one stylesheet. System fonts only: no web fonts, no images, no imports, nothing fetched. */

:root {
  --gutter: 16px;
  --measure: 40rem;
  --bg: #fbfaf5;
  --text: #1e2a20;
  --muted: #566359;
  --link: #17603a;
  --rule: #d8dccd;
  --panel: #f0f1e4;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121712;
    --text: #e9eee6;
    --muted: #a2afa5;
    --link: #8fd4a4;
    --rule: #2c3a2e;
    --panel: #1b241c;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  border-top: 6px solid var(--link);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* One column, 16 px of air on each side (more where a notch needs it), never wider than a page of text. */
.site-header,
main,
.site-footer {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

p,
li,
a,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.tagline {
  text-wrap: balance;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
}

nav a {
  display: inline-block;
  padding: 12px 10px;
}

main {
  padding-top: 24px;
  padding-bottom: 32px;
}

h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  line-height: 1.2;
}

h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

h3 {
  margin: 1.5rem 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

p,
ul {
  margin: 0.5rem 0;
}

ul {
  padding-left: 1.25rem;
}

li {
  margin: 0.25rem 0;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 2px;
}

.meta {
  margin: 0 0 16px;
  color: var(--muted);
}

.lede {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--panel);
  border-left: 4px solid var(--link);
  border-radius: 6px;
}

.site-footer {
  padding-top: 16px;
  padding-bottom: 32px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

/* The landing page: one screen, the name and the line centred between the top bar and the footer. */
.home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.home .hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.home h1 {
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.1;
}

.tagline {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  font-size: 1.2rem;
}

/* Shared platform pages: local candidate styling; no external assets. */
.publication-notice {
  padding: 12px max(16px, calc((100vw - 40rem) / 2));
  border-bottom: 2px solid var(--link);
  background: var(--panel);
  font-size: .9rem;
}
.platform-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.platform-nav a { border: 1px solid var(--link); border-radius: 6px; padding: 10px 18px; }
.platform-section { border-top: 2px solid var(--rule); margin-top: 32px; padding-top: 24px; scroll-margin-top: 16px; }
.platform-section:target { border-top-color: var(--link); }
.platform-label { margin: 0 0 6px; color: var(--muted); font-weight: 700; }
.platform-copy > h2 { margin: 0 0 16px; font-size: 1.6rem; }
.platform-copy h3 { margin: 2rem 0 .5rem; font-size: 1.25rem; line-height: 1.3; }
.platform-copy h4 { margin: 1.5rem 0 .25rem; font-size: 1.05rem; line-height: 1.4; }
h4 { overflow-wrap: break-word; text-wrap: balance; }
.legacy-anchor { display: block; scroll-margin-top: 16px; }
