/* LODESTAR static site, mobile-first */
:root {
  --text: #252525;
  --bg: #FFFFFF;
  --accent: #2ba84a;
  --accent-hover: #228a3c;
  --footer-bg: #14294b;
  --footer-text: #FFFFFF;
  --footer-link: #2ba84a;
  --footer-link-hover: #FFFFFF;
  --header-h: 40px;
  --gutter: 16px;
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Didact Gothic", sans-serif;
  font-size: 14px;
  line-height: 1.56;
  overflow-wrap: break-word;
}

h1, h2, h3 {
  font-family: "Didact Gothic", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 2em; }
h2 { font-size: 1.5em; }

p, ul { margin: 0 0 1em; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: var(--accent-hover); text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  box-shadow: 0 0 10px rgb(0 0 0 / 10%);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}
.brand:hover, .brand:focus { text-decoration: none; color: var(--text); }
.logo {
  height: calc(var(--header-h) - 8px);
  width: auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.site-name { color: var(--accent); font-weight: 700; font-size: 1.15em; }
.slogan { font-size: 0.8em; }

/* Main */
.site-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.article p, .article li { line-height: 1.8; }
.article-leading { margin-bottom: 32px; }
.article-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.article-intro img { width: 100%; margin-bottom: 16px; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px var(--gutter);
}
.site-footer a { color: var(--footer-link); }
.site-footer a:hover, .site-footer a:focus { color: var(--footer-link-hover); }
.eu-emblem { max-width: min(500px, 100%); margin: 0 auto 16px; }
.to-top { margin: 0; }

/* Tablet */
@media (min-width: 576px) {
  :root { --header-h: 50px; }
}

/* Desktop */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .site-main { padding-top: 40px; padding-bottom: 40px; }
  .article-row { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (min-width: 992px) {
  :root { --header-h: 80px; --gutter: 24px; }
}
