@font-face {
  font-display: swap;
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/roboto-v30-latin-regular.15d9f621c3bd.woff2") format("woff2");
}

:root {
  --color-primary: #179c7d;
  --color-accent: #f58220;
  --color-ink: #1c3f52;
  --color-muted: #526673;
  --color-border: #d6e0e5;
  --color-surface: #fff;
  --color-soft: #f3f7f9;
  --content-width: 72rem;
  --reading-width: 48rem;
  --text-scale: 1;
  --shadow: 0 0.75rem 2.5rem rgb(28 63 82 / 12%);
  font-size: calc(16px * var(--text-scale));
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--color-ink);
  background: var(--color-surface);
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: var(--color-primary); text-underline-offset: 0.2em; }
a:hover { color: var(--color-accent); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 3px; }

h1, h2, h3 { color: var(--color-ink); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 4.5rem); margin: 0; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); margin: 3.5rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 0 0 0.75rem; }
p { margin: 0 0 1.25rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(0.75rem);
}

.site-nav {
  width: min(100% - 2rem, var(--content-width));
  min-height: 5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand { display: flex; flex-direction: column; color: var(--color-ink); text-decoration: none; }
.brand__logo { width: auto; max-width: min(18rem, 55vw); max-height: 3.5rem; object-fit: contain; object-position: left; }
.brand__name { font-size: 1.25rem; font-weight: 700; }
.brand__tagline { color: var(--color-muted); font-size: 0.78rem; line-height: 1.3; }
.site-nav__actions, .language-switcher { display: flex; align-items: center; gap: 0.6rem; }
.language-switcher { padding: 0.3rem; border: 1px solid var(--color-border); border-radius: 999px; }
.language-option { min-width: 2rem; color: var(--color-ink); font-size: 0.75rem; font-weight: 700; text-align: center; text-decoration: none; }
.language-option.active { color: var(--color-muted); }

.menu-toggle {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.65rem;
  display: grid;
  align-content: center;
  gap: 0.28rem;
  border: 0;
  border-radius: 50%;
  color: var(--color-ink);
  background: var(--color-soft);
  cursor: pointer;
}
.menu-toggle > span:not(.visually-hidden) { display: block; height: 2px; background: currentColor; transition: transform 180ms, opacity 180ms; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] > span:nth-of-type(4) { transform: translateY(-6px) rotate(-45deg); }

.site-menu {
  position: fixed;
  inset: 5rem 0 auto;
  max-height: calc(100vh - 5rem);
  margin: 0;
  padding: 2rem max(1rem, calc((100vw - var(--content-width)) / 2));
  display: grid;
  gap: 0;
  list-style: none;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  overflow-y: auto;
}
.site-menu[hidden] { display: none; }
.site-menu a { display: block; padding: 0.8rem 0; color: var(--color-ink); border-bottom: 1px solid var(--color-border); font-size: 1.25rem; text-decoration: none; }

.hero__media { height: clamp(18rem, 46vw, 34rem); overflow: hidden; background: var(--color-soft); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero { position: relative; width: min(100% - 2rem, var(--content-width)); margin: clamp(-9rem, -12vw, -5rem) auto 0; }
.hero--plain { margin-top: 0; }
.hero__inner { max-width: 52rem; padding: clamp(1.5rem, 5vw, 4rem); color: #fff; background: linear-gradient(120deg, color-mix(in srgb, var(--color-primary) 92%, #002c42), color-mix(in srgb, var(--color-primary) 72%, #25bca6)); box-shadow: var(--shadow); }
.hero--plain .hero__inner { max-width: none; margin-top: 3rem; color: var(--color-ink); background: var(--color-soft); box-shadow: none; }
.hero__inner h1 { color: inherit; }
.hero__inner p { max-width: 42rem; margin: 0.75rem 0 0; font-size: clamp(1.1rem, 2vw, 1.4rem); }

.content-shell { width: min(100% - 2rem, var(--content-width)); margin: 0 auto; padding: clamp(3rem, 8vw, 7rem) 0; }
.stream-content { max-width: var(--reading-width); margin-inline: auto; }
.stream-content > :first-child { margin-top: 0; }
.rich-text ul, .rich-text ol { padding-left: 1.4rem; }
.rich-text li { margin-bottom: 0.5rem; }
.stream-content figure { margin: 3rem 0; }
.stream-content figure img { width: 100%; border-radius: 0.25rem; }
figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.6rem; color: var(--color-muted); font-size: 0.82rem; }

.related-links { margin-top: clamp(4rem, 10vw, 8rem); padding-top: 2rem; border-top: 1px solid var(--color-border); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; }
.card { display: flex; flex-direction: column; padding: 1.5rem; background: var(--color-soft); border-top: 0.25rem solid var(--color-primary); }
.card p { flex: 1; }
.button { align-self: flex-start; padding: 0.65rem 1rem; color: #fff; background: var(--color-primary); border-radius: 0.2rem; font-weight: 700; text-decoration: none; }
.button:hover { color: #fff; background: var(--color-accent); }

footer { margin-top: auto; color: var(--color-muted); background: var(--color-soft); border-top: 1px solid var(--color-border); }
.footer-inner { width: min(100% - 2rem, var(--content-width)); margin-inline: auto; padding: 2rem 0; display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }

@media (max-width: 40rem) {
  .brand__tagline { display: none; }
  .language-switcher { border: 0; padding: 0; }
  .hero { width: 100%; margin-top: 0; }
  .hero__inner { box-shadow: none; }
  figcaption { flex-direction: column; gap: 0.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
