/* base.css - tokens, reset, utility layer, masthead, nav, footer (shared by every page) */

:root {
  --green: #5ea234;
  --green-d: #3a7220;
  --green-dd: #2c5a18;
  --ink: #2b2b2b;
  --text: #262626;
  --muted: #585858;
  --row: #efefef;
  --band: #f1f4ec;
  --line: #d9d9d9;
  --display: "Fjalla One", "Oswald", "Arial Narrow", "Liberation Sans Narrow", "Roboto Condensed", "Franklin Gothic Medium", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Liberation Serif", serif;
  --pad: 20px;
  --r: 4px;
}

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

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

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 18px/1.7 var(--serif);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

img,
video {
  display: block;
  height: auto;
}

a {
  color: var(--green-d);
}

h1,
h2,
h3 {
  color: var(--ink);
}

/* ---------- utility layer ---------- */
.wrap {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.fx {
  display: flex;
}

.fx-col {
  display: flex;
  flex-direction: column;
}

.ac {
  align-items: center;
}

.jc {
  justify-content: center;
}

.tc {
  text-align: center;
}

.sr {
  position: absolute;
  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: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font: 400 18px/1.2 var(--display);
  border-radius: var(--r);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

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

/* ---------- masthead ---------- */
.mast {
  padding: 20px 0 6px;
  text-align: center;
}

.tag {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 14px 4px;
  font: 400 13px/1.2 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.logo-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-ico {
  flex: none;
  width: clamp(46px, 13vw, 66px);
  height: auto;
}

.logo-rule {
  flex: none;
  width: 2px;
  align-self: stretch;
  background: var(--ink);
}

.logo-t {
  display: flex;
  flex-direction: column;
  text-align: left;
  font: 700 clamp(30px, 9.4vw, 46px)/0.98 var(--display);
  letter-spacing: 0.012em;
  text-transform: lowercase;
}

.logo-t .g {
  color: var(--green);
}

.logo-tag {
  font: 700 clamp(12px, 3.5vw, 17px)/1.25 var(--display);
  letter-spacing: 0.08em;
  color: var(--ink);
}

.logo-tag em {
  font-style: normal;
  color: var(--green-d);
}

.logo:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
}

/* ---------- section nav (article page) ---------- */
.nav {
  margin-top: 14px;
  padding-bottom: 6px;
}

.nav-toggle {
  display: none;
}

.js .nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--r);
  color: var(--ink);
  font: 400 20px/1 var(--display);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.js .nav-toggle:hover {
  background: var(--ink);
  color: #fff;
}

.nav-bars {
  display: block;
  width: 20px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.js .nav-list {
  display: none;
}

.js .nav-list.is-open {
  display: flex;
  margin-top: 8px;
}

.nav-list a {
  display: block;
  min-height: 44px;
  padding: 11px 10px;
  color: var(--ink);
  font: 700 22px/1.2 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: lowercase;
  background-image: linear-gradient(var(--green), var(--green));
  background-repeat: no-repeat;
  background-position: 10px calc(100% - 6px);
  background-size: 0 3px;
  transition: background-size 0.2s, color 0.15s;
}

.nav-list a:hover {
  color: var(--green-d);
  background-size: calc(100% - 20px) 3px;
}

@media (min-width: 768px) {
  .nav {
    margin-top: 22px;
    padding-bottom: 0;
  }

  .nav-toggle,
  .js .nav-toggle {
    display: none;
  }

  .nav-list,
  .js .nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 22px;
    margin-top: 0;
  }

  .nav-list a {
    font-size: 21px;
  }
}

@media (min-width: 1024px) {
  .nav-list,
  .js .nav-list {
    gap: 0 38px;
  }

  .nav-list a {
    font-size: 23px;
  }
}

/* ---------- page end (footer) ---------- */
.page-end {
  background: var(--green-d);
  color: #f3f8ee;
  padding: clamp(40px, 6vw, 64px) var(--pad) 36px;
  font: 400 14px/1.6 var(--serif);
}

.foot {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.foot-h {
  margin: 0 0 8px;
  font: 700 15px/1.3 var(--serif);
  color: #fff;
}

.owner p:not(.foot-h) {
  margin: 0;
}

.legal ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal li {
  break-inside: avoid;
}

.legal a {
  display: block;
  padding: 11px 0;
  color: #fff;
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal a:focus-visible,
.page-end a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.end-line {
  max-width: 960px;
  margin: 30px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: #e9f2e1;
}

@media (min-width: 480px) {
  .legal ul {
    columns: 2;
    column-gap: 28px;
  }
}

@media (min-width: 768px) {
  body {
    font-size: 20px;
  }

  .foot {
    flex-direction: row;
    gap: 56px;
  }

  .owner {
    flex: 1 1 0;
  }

  .legal {
    flex: 1.5 1 0;
  }
}
