:root {
  color-scheme: light;
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --night: #131e31;
  --ink: #212529;
  --text-soft: #555;
  --caption: #666;
  --white: #fff;
  --light-card: #eee;
  --panel: rgb(255 255 255 / 92%);
  --green: #146b68;
  --green-light: #63bc7e;
  --green-text: #276d44;
  --horizon: url("../backgrounds/horizon.webp");
  --readable-shadow: 0 1px 3px rgb(9 16 30 / 95%), 0 0 5px rgb(9 16 30 / 75%);
}

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

html {
  scroll-padding-top: 204px;
}

body {
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: var(--night) var(--horizon) center / cover no-repeat;
  content: "";
}

h1, h2, h3, p, figure, blockquote {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.2;
}

p + p {
  margin-block-start: 1rem;
}

ul {
  padding-inline-start: 2rem;
}

img {
  display: block;
  max-inline-size: 100%;
}

a {
  color: inherit;
}

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

.container {
  inline-size: 100%;
  margin-inline: auto;
  padding-inline: 0.75rem;
}

.skip-link {
  position: fixed;
  z-index: 20;
  inset: 0.5rem auto auto 0.5rem;
  transform: translateY(-200%);
  padding: 0.625rem 1rem;
  color: var(--night);
  background: var(--white);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 10;
  inset-block-start: 0;
  background: var(--night) var(--horizon) center / cover no-repeat fixed;
  color: var(--white);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.brand img {
  inline-size: 160px;
  block-size: 160px;
}

.desktop-nav ul, .mobile-nav ul, .footer-links {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.desktop-nav ul {
  gap: 1.5rem;
}

.nav-link, .footer-link {
  text-decoration: none;
}

.desktop-nav .nav-link {
  position: relative;
  display: block;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.desktop-nav a::after {
  position: absolute;
  inset: auto 0 0;
  block-size: 2px;
  transform: scaleX(0);
  background: var(--green-light);
  transition: transform 0.3s ease;
  content: "";
}

.desktop-nav a:hover, .desktop-nav a:focus-visible {
  color: var(--green-light);
}

.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-header a:focus-visible, .site-footer a:focus-visible {
  outline-color: var(--white);
}

.mobile-nav {
  display: none;
}

.site-main {
  flex: 1;
  margin-block-start: 0.25rem;
}

.main-inner {
  padding-block: 3rem;
}

.site-footer {
  color: var(--white);
  text-shadow: var(--readable-shadow);
}

.footer-inner {
  gap: 1.5rem;
}

.footer-links {
  gap: 0.5rem;
}

@media (min-width: 576px) {
  .container { max-inline-size: 540px; }
}

@media (min-width: 768px) {
  .container { max-inline-size: 720px; }
}

@media (min-width: 992px) {
  .container { max-inline-size: 960px; }
}

@media (min-width: 1200px) {
  .container { max-inline-size: 1140px; }
}

@media (min-width: 1400px) {
  .container { max-inline-size: 1320px; }
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 1rem;
    scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  body {
    padding-block-end: calc(80px + env(safe-area-inset-bottom));
  }

  .site-header {
    position: static;
    background: transparent;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 10;
    inset: auto 0 0;
    display: block;
    padding: 10px max(4px, env(safe-area-inset-right))
      calc(10px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    color: var(--green);
    background: var(--white);
  }

  .mobile-nav ul {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .mobile-nav .nav-link {
    display: flex;
    min-block-size: 44px;
    min-inline-size: 44px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.6875rem;
    overflow-wrap: anywhere;
  }

  .mobile-nav img {
    margin-block-end: 4px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .desktop-nav .nav-link, .desktop-nav a::after {
    transition: none;
  }
}

.editorial-panel {
  margin-block-start: 2rem;
  padding: 2rem;
  border-radius: 8px;
  background: var(--panel);
}

.editorial-panel h2 {
  margin-block-end: 1.5rem;
  color: var(--green);
  font-size: clamp(1.325rem, calc(1.325rem + 0.9vw), 2rem);
  font-weight: 700;
}

.editorial-panel p {
  color: var(--text-soft);
  line-height: 1.7;
}

.media-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.media-row + .media-row, .editorial-topic {
  margin-block-start: 3rem;
}

.prose {
  align-self: stretch;
}

.editorial-photo {
  flex: none;
  inline-size: 220px;
  max-inline-size: 100%;
  text-align: center;
}

.editorial-photo img {
  inline-size: 100%;
  block-size: auto;
  border-radius: 6px;
}

.editorial-photo figcaption {
  margin-block-start: 0.5rem;
  color: var(--caption);
  font-size: 0.9rem;
  font-style: italic;
}

.photo-name, .photo-quotation {
  display: block;
}

.photo-name {
  color: var(--text-soft);
  font-style: normal;
}

.photo-quotation {
  margin-block-start: 0.5rem;
  color: var(--green);
  font-size: 0.85rem;
  line-height: 1.4;
}

.editorial-quote {
  margin-block-end: 3rem;
  padding: 1.5rem 2rem;
  border-inline-start: 4px solid var(--green-light);
  background: rgb(99 188 126 / 8%);
}

.editorial-quote p {
  color: #333;
  font-size: 1.15rem;
  font-style: italic;
}

.editorial-quote cite {
  display: block;
  margin-block-start: 1rem;
  color: var(--green);
  font-style: normal;
  font-weight: 600;
}

.editorial-topic h3 {
  margin-block-end: 1rem;
  color: var(--green);
  font-size: 1.25rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .media-row {
    flex-direction: row;
  }

  .prose {
    min-inline-size: 0;
    flex: 1 1 auto;
    align-self: auto;
  }
}

@media (max-width: 767.98px) {
  .editorial-panel {
    padding: 1.5rem;
  }

  .editorial-photo {
    inline-size: 180px;
  }

  .editorial-quote {
    padding: 1.25rem;
  }
}

[aria-disabled="true"] { cursor: not-allowed; }
@media (min-width: 768px) and (max-width: 991.98px) {
  .desktop-nav ul { gap: 1rem; }
  .desktop-nav .nav-link { font-size: 1rem; }
}

.footer-links { flex-wrap: wrap; min-inline-size: 0; }
.footer-link { overflow-wrap: anywhere; }
.footer-facebook { display: inline-flex; align-items: center; gap: 0.5rem; min-block-size: 44px; text-underline-offset: 3px; }
.footer-facebook img { flex: 0 0 24px; object-fit: contain; }
