:root {
  color-scheme: light;
  --ink: #172e42;
  --teal: #086756;
  --line: #d8e2e4;
  --paper: #fff;
  --muted: #506471;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f8f8;
  color: var(--ink);
  font:
    16px/1.7 system-ui,
    Tahoma,
    sans-serif;
  overflow-wrap: anywhere;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
nav,
main,
footer {
  max-width: 1180px;
  margin: auto;
  padding: 16px clamp(15px, 4vw, 48px);
}
nav,
.navlinks,
.langs,
.toolbar,
.pager,
footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
a {
  color: var(--teal);
  text-underline-offset: 4px;
}
nav a,
.toolbar a,
.langs a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 23px;
  font-weight: 850;
  letter-spacing: 1px;
  direction: ltr;
}
.brand img {
  width: 37px;
}
.langs {
  margin-inline-start: auto;
  gap: 8px;
  font-size: 0.85rem;
}
main {
  min-height: 75vh;
}
h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0.65em 0;
}
h1 {
  font-size: clamp(28px, 5vw, 52px);
}
h2 {
  font-size: 24px;
}
.hero {
  background: #e4efea;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: clamp(20px, 5vw, 60px);
  border-radius: 16px;
}
.hero img {
  width: 33%;
  max-height: 200px;
}
.hero .note {
  color: #334f54;
}
.cta,
button {
  display: inline-block;
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 10px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.cards,
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
  gap: 16px;
}
.stats b {
  font-size: 30px;
}
.cards article {
  margin: 0;
}
.cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.gallery {
  width: min(280px, 100%);
  height: 200px;
  object-fit: contain;
}
article,
details,
form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  margin: 12px 0;
}
form {
  max-width: 760px;
  display: grid;
  gap: 12px;
}
details form,
article form {
  padding: 12px;
  border: 0;
  background: #f5f8f7;
}
summary {
  cursor: pointer;
  font-weight: 650;
}
label {
  display: grid;
  gap: 4px;
  font-size: 0.95rem;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: white;
  color: var(--ink);
  border: 1px solid #aebfc2;
  padding: 10px;
  border-radius: 6px;
  font: inherit;
}
textarea {
  min-height: 96px;
}
input[type="checkbox"] {
  width: auto;
  justify-self: start;
}
button {
  justify-self: start;
}
button:hover,
.cta:hover {
  background: #095445;
}
.filters {
  max-width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: end;
}
.filters details {
  margin: 0;
  padding: 8px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  color: #0e584e;
  background: #e1eee8;
  padding: 2px 8px;
  font-size: 0.82rem;
}
.note,
small,
dt {
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 15px;
}
dd {
  margin: 0;
}
.prose {
  white-space: pre-wrap;
}
footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  justify-content: space-between;
}
footer a {
  margin-inline: 8px;
}
:focus-visible {
  outline: 3px solid #b66a24;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  nav {
    gap: 7px;
  }
  .navlinks {
    order: 3;
    flex-basis: 100%;
    gap: 12px;
    font-size: 0.9rem;
  }
  .hero img {
    width: 28%;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .toolbar {
    gap: 8px;
  }
}
.langs form {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.langs button {
  font: inherit;
  color: var(--teal);
  background: none;
  padding: 2px;
}
.langs button:hover {
  text-decoration: underline;
}
