/* ==========================================================================
   Clear Observer Weekly - shared styles
   Tokens, reset, small utility layer, masthead, buttons, imprint footer.
   Mobile-first: base rules target 360px, wider layouts at 480 / 768 / 1024.
   ========================================================================== */

:root {
  --ink: #2a2a2a;
  --ink2: #454545;
  --muted: #5a5a5a;
  --green: #5ea336;
  --green_d: #3d7a1c;
  --green_dd: #2c5a14;
  --olive: #5b8a1e;
  --tint: #f4f6f0;
  --row: #efefef;
  --row_h: #e4e4e4;
  --line: #dcdcdc;
  --black: #1b1b1b;
  --white: #ffffff;

  --f_head: "Fjalla One", "Francois One", "Oswald", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", "Franklin Gothic Medium Cond", "DejaVu Sans Condensed", "Haettenschweiler", Impact, sans-serif;
  --f_body: Georgia, "Times New Roman", "Liberation Serif", serif;

  --fs_body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --h1: clamp(1.75rem, 1.2rem + 2.6vw, 3.25rem);
  --h2: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem);
  --h3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);

  --r: 6px;
  --sec_y: clamp(40px, 6vw, 80px);
  --ease: 0.18s ease;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f_body);
  font-size: var(--fs_body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video, svg { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--green_d); text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: var(--green_dd); }
[hidden] { display: none !important; }

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

/* ---------- utility layer ---------- */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.ctr { align-items: center; justify-content: center; }
.tc { text-align: center; }
.gap_s { gap: 8px; }
.gap_m { gap: 16px; }
.gap_l { gap: 32px; }
.wrap { width: 100%; max-width: 864px; margin-inline: auto; padding-inline: 16px; }
.wrap_w { max-width: 1104px; }
.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 {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--black);
  color: var(--white);
  font-family: var(--f_head);
  font-size: 1.125rem;
  text-decoration: none;
  border-radius: var(--r);
}
.skip:focus { top: 12px; color: var(--white); }

/* ---------- masthead ---------- */
.mast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 16px 0;
}
.mast_label {
  font-family: var(--f_head);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink2);
  padding: 7px 14px 6px;
  border: 1px solid #b8b8b8;
  border-radius: 999px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  transition: opacity var(--ease);
}
.brand:hover { color: var(--ink); opacity: 0.82; }
.brand_mark { width: clamp(44px, 12vw, 64px); height: auto; flex: 0 0 auto; }
.brand_bar { width: 3px; align-self: stretch; background: var(--black); }
.brand_txt {
  display: flex;
  flex-direction: column;
  font-family: var(--f_head);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.625rem);
  line-height: 0.98;
  text-transform: lowercase;
  letter-spacing: 0.01em;
}
.b1 { color: var(--green); }
.b2 { color: var(--black); }
.tagline {
  font-family: var(--f_head);
  font-weight: 700;
  font-size: clamp(0.6875rem, 0.55rem + 0.7vw, 1rem);
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: lowercase;
  text-align: center;
  color: var(--black);
}
.tagline em { font-style: normal; color: var(--green_d); }

/* navigation: stacked list behind a toggle on mobile, centred row from 768px */
.main_nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}
.nav_toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r);
  background: none;
  font-family: var(--f_head);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: lowercase;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--ease);
}
.nav_toggle:hover { background: var(--row); }
.nav_toggle svg { width: 22px; height: 22px; }
html:not(.js) .nav_toggle { display: none; }
.nav_list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.js .nav_list { display: none; }
.js .nav_list.is_open { display: flex; }
.nav_list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 14px;
  font-family: var(--f_head);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.1;
  text-transform: lowercase;
  color: var(--ink);
  text-decoration: none;
}
.nav_list a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 7px;
  height: 3px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav_list a:hover, .nav_list a:focus-visible { color: var(--ink); }
.nav_list a:hover::after, .nav_list a:focus-visible::after { transform: scaleX(1); }

@media (min-width: 768px) {
  .mast { gap: 10px; padding-top: 22px; }
  .nav_toggle { display: none; }
  .nav_list, .js .nav_list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 14px;
  }
  .nav_list a { font-size: 1.25rem; padding: 0 10px; }
  .nav_list a::after { left: 10px; right: 10px; }
  .main_nav { padding-top: 10px; }
  .wrap { padding-inline: 32px; }
}
@media (min-width: 1024px) {
  .nav_list { gap: 0 14px; }
  .nav_list a { font-size: 1.5rem; padding: 0 12px; }
  .nav_list a::after { left: 12px; right: 12px; }
}

/* short olive rule under the page title (primary reference detail) */
.rule {
  display: block;
  width: 89px;
  height: 2px;
  margin: clamp(20px, 2.4vw, 28px) 0 clamp(18px, 2.2vw, 24px);
  background: var(--olive);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 28px;
  border: 0;
  border-radius: var(--r);
  background: var(--green_d);
  color: var(--white);
  font-family: var(--f_head);
  font-weight: 700;
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
  transition: background var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn:hover {
  background: var(--green_dd);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18); }
.btn[disabled] {
  background: #d6d6d6;
  color: #5a5a5a;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
.btn_go::after { content: "\2192"; font-family: var(--f_body); font-weight: 400; }
.btn_dark { background: var(--black); }
.btn_dark:hover { background: #000; }
.btn_text {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--r);
  background: none;
  font-family: var(--f_head);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--ink2);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: background var(--ease), color var(--ease);
}
.btn_text:hover { background: var(--row); color: var(--ink); }

/* ---------- imprint footer ---------- */
.site-foot {
  padding: 44px 0 56px;
  font-family: var(--f_body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  background: none;
  border: 0;
}
.site-foot .foot_in {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.site-foot .owner .ln { display: block; }
.site-foot .owner .ln:first-child { font-weight: 700; color: var(--ink); }
.site-foot .meta_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.site-foot .meta_links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #3a3a3a;
  text-decoration: none;
  background-image: linear-gradient(var(--green), var(--green));
  background-size: 0 2px;
  background-position: 0 70%;
  background-repeat: no-repeat;
  transition: background-size var(--ease), color var(--ease);
}
.site-foot .meta_links a:hover,
.site-foot .meta_links a:focus-visible {
  color: var(--black);
  background-size: 100% 2px;
}
.site-foot .credit_line {
  margin: 0;
  max-width: 70ch;
  font-size: 13px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .site-foot { padding: 56px 0 72px; }
  .site-foot .foot_in {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 28px 48px;
  }
  .site-foot .owner { flex: 1 1 360px; max-width: 480px; }
  .site-foot .meta_links {
    display: grid;
    grid-template-rows: repeat(4, auto);
    grid-auto-flow: column;
    column-gap: 40px;
    flex: 0 0 auto;
  }
  .site-foot .credit_line { flex: 1 1 100%; }
}

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