/* base.css - tokens, reset, utilities, masthead, top bar, footer (shared by every page) */

:root {
  --green: #3f7a1f;
  --green-hi: #5fa336;
  --green-dk: #2f6a1c;
  --ink: #2b2b2b;
  --mute: #5a5a5a;
  --line: #dcdcdc;
  --row: #efefef;
  --tint: #f3f7ee;
  --dark: #222222;
  --head: "Fjalla One", "Franklin Gothic Medium Cond", "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed", "Oswald", Impact, "Haettenschweiler", sans-serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --pad: 16px;
  --radius: 6px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.7;
  overflow-x: hidden;
}

img,
video,
svg { max-width: 100%; height: auto; }

a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dk); }

:focus-visible {
  outline: 3px solid #111;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
}

[id] { scroll-margin-top: 76px; }

h1, h2, h3, p, ul, ol, figure { margin-top: 0; }

/* ---- small utility layer ---- */
.wrap { width: 100%; max-width: 682px; margin-inline: auto; padding-inline: var(--pad); }
.wrap-m { width: 100%; max-width: 820px; margin-inline: auto; padding-inline: var(--pad); }
.wrap-l { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: var(--pad); }
.fx { display: flex; }
.fx-col { display: flex; flex-direction: column; }
.fx-c { align-items: center; }
.fx-jc { justify-content: center; }
.fx-jb { justify-content: space-between; }
.fx-wrap { flex-wrap: wrap; }
.gap-s { gap: 10px; }
.gap-m { gap: 20px; }
.tc { text-align: center; }
.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus,
.skip:focus-visible {
  position: fixed !important;
  z-index: 100;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 18px;
  clip: auto;
  background: #fff;
  color: #111;
  font-family: var(--head);
  font-size: 18px;
  border-radius: var(--radius);
  box-shadow: 0 0 0 3px #111;
}

/* ---- masthead (centered wordmark, like the reference) ---- */
.masthead {
  text-align: center;
  padding: 18px var(--pad) 10px;
  background: #fff;
}

.ad-label {
  margin: 0 0 12px;
  font-family: var(--head);
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
}
.ad-label::before,
.ad-label::after { content: "\2013"; margin: 0 0.6em; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}
.brand:hover { color: var(--ink); }
.brand-ico { width: 40px; height: 38px; flex: none; }
.brand-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 12px;
  border-left: 2px solid var(--ink);
  font-family: var(--head);
  font-weight: 700;
  font-size: 28px;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.brand-1 { color: var(--green-hi); }
.brand-2 { color: #111; }

.brand-tag {
  margin: 8px 0 0;
  font-family: var(--head);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: #111;
}
.brand-tag em { font-style: normal; color: var(--green); }

/* ---- top bar / section nav (sticky bar treatment from the accent) ---- */
.sitenav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sitenav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin-inline: auto;
  padding: 6px var(--pad);
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px 0 0;
  background: none;
  border: 0;
  font-family: var(--head);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle:hover { color: var(--green); }
.nav-bars,
.nav-bars::before,
.nav-bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease;
}
.nav-bars { position: relative; }
.nav-bars::before,
.nav-bars::after { content: ""; position: absolute; left: 0; }
.nav-bars::before { top: -7px; }
.nav-bars::after { top: 7px; }
.sitenav.is-open .nav-bars { background: transparent; }
.sitenav.is-open .nav-bars::before { transform: translateY(7px) rotate(45deg); }
.sitenav.is-open .nav-bars::after { transform: translateY(-7px) rotate(-45deg); }

.navlist {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 0;
  padding: 4px var(--pad) 14px;
  list-style: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}
.sitenav.is-open .navlist { display: block; }
.navlist a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid #eee;
  font-family: var(--head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink);
}
.navlist li:first-child a { border-top: 0; }
.navlist a:hover { color: var(--green); }

.nav-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--head);
  font-size: 20px;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  text-decoration: none;
  color: var(--ink);
}
.nav-back:hover { color: var(--green); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 26px;
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--head);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: 0.03em;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn::after { content: "\2192"; font-size: 1.05em; transition: transform 0.18s ease; }
.btn:hover {
  background: var(--green-dk);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.btn:hover::after { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 17px; gap: 6px; }
.btn-plain::after { content: none; }

/* ---- footer (publisher imprint, green band like the reference) ---- */
.page-footer {
  background: var(--green-dk);
  color: #eef5e8;
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.7;
}
.foot-in {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 760px;
  margin-inline: auto;
  padding: 44px var(--pad) 32px;
}
.foot-cols { display: flex; flex-direction: column; gap: 26px; }
.foot-h { margin: 0 0 6px; font-weight: 700; color: #fff; }
.company p { margin: 0; }
.page-footer a { color: #eef5e8; text-decoration: none; }
.page-footer a:hover { color: #fff; text-decoration: underline; }
.page-footer :focus-visible { outline-color: #fff; box-shadow: none; }
.page_links ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; column-gap: 22px; }
.page_links a { display: inline-block; padding: 9px 0; min-height: 44px; }
.closing_note { margin: 0; max-width: 620px; color: #eef5e8; font-size: 13px; }
.foot-base {
  background: #1b1b1b;
  color: #d4d4d4;
  text-align: center;
  padding: 18px var(--pad);
  font-size: 13px;
}
.foot-base p { margin: 0; }

@media (min-width: 480px) {
  .brand-txt { font-size: 34px; }
  .brand-ico { width: 48px; height: 46px; }
  .brand-tag { font-size: 16px; }
  .foot-cols { flex-direction: row; gap: 48px; }
  .foot-cols > * { flex: 1 1 0; }
  .page_links ul { flex-direction: column; }
  .page_links a { padding: 6px 0; min-height: 44px; display: inline-flex; align-items: center; }
}

@media (min-width: 768px) {
  body { font-size: 19px; }
  .masthead { padding-top: 26px; padding-bottom: 14px; }
  .brand-txt { font-size: 42px; }
  .brand-ico { width: 58px; height: 56px; }
  .brand-tag { font-size: 18px; margin-top: 10px; }
  .nav-toggle { display: none; }
  .sitenav-in { justify-content: center; gap: 30px; padding-block: 8px; }
  .navlist {
    display: flex;
    position: static;
    gap: 26px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .navlist a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; font-size: 20px; }
  .btn-sm { font-size: 18px; padding-inline: 20px; }
  .foot-in { padding-top: 56px; }
}

@media (min-width: 1024px) {
  .navlist { gap: 40px; }
  .navlist a { font-size: 22px; }
  .sitenav-in { gap: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
