:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --text: #232821;
  --muted: #657064;
  --line: #dce2d7;
  --accent: #2f6b4f;
  --accent-soft: #e2eee6;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 18px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.visual-header {
  position: relative;
  width: min(calc(100% - 2rem), var(--max));
  height: auto;
  aspect-ratio: 3 / 1;
  margin-inline: auto;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #f5efe3;
  background-image: url("/assets/header.png?v=3");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.visual-header-inner {
  display: grid;
  align-content: center;
  width: min(calc(100% - 2rem), var(--max));
  height: 100%;
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.visual-header-name,
.visual-header-label {
  position: relative;
  z-index: 1;
  margin: 0;
}

.visual-header-name {
  color: #164634;
  font-size: clamp(1.7rem, 5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.visual-header-label {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-header nav {
  display: flex;
  gap: 1rem;
  font-size: 0.88rem;
}

main {
  padding: clamp(2.25rem, 7vw, 4.75rem) 0;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.35rem, 8vw, 4.5rem);
}

h2 {
  margin: 2.6rem 0 0.7rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.dek {
  max-width: 58ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.article-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 3rem;
}

.article-card {
  display: block;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.article-card:hover {
  border-color: #9bb4a3;
  transform: translateY(-2px);
}

.article-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}

.card-date,
.article-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.card-date {
  margin: 0 0 0.55rem !important;
}

.article-meta {
  margin: 0.85rem 0 0;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 750;
}

article {
  max-width: 68ch;
}

article header {
  margin-bottom: 2.5rem;
}

article h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 7vw, 4rem);
}

article p,
article ul {
  margin: 0 0 1.15rem;
}

article li + li {
  margin-top: 0.45rem;
}

.note {
  margin: 2rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
}

.cta {
  margin-top: 2.75rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.cta p {
  margin: 0 0 0.8rem;
}

.button {
  display: inline-block;
  padding: 0.62rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1rem;
}

@media (max-width: 540px) {
  html {
    font-size: 16px;
  }

  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .visual-header {
    background-image: url("/assets/header.png?v=3");
    background-position: center;
    background-size: 100% 100%;
  }
}

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