@font-face {
  font-family: "Golos Text";
  src: url("../vizdata/assets/golos-text/GolosText.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  scrollbar-gutter: stable;
  color: #222320;
  background: #f1f2ef;
  font-family: "Golos Text", system-ui, sans-serif;
  --rule: #c9ccc6;
  --muted: #494c47;
  --accent: #3d756f;
  --project-shadow: 0 4px 8px rgb(0 0 0 / 22%);
}

* { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 84rem;
  margin: auto;
  padding: 0 clamp(1.25rem, 5vw, 5rem);
}
.site-footer { margin-top: auto; padding: 3rem 0 1.5rem; font-size: .875rem; color: var(--muted); }
a { color: inherit; text-underline-offset: .2em; }
:is(a, button):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.masthead, nav, .brand { display: flex; align-items: center; }
.masthead { justify-content: space-between; gap: 1rem 1.75rem; flex-wrap: wrap; padding: 1.25rem 0; }
.brand { gap: .55rem; font-size: 1.375rem; font-weight: 700; text-decoration: none; }
.brand-copy { display: grid; line-height: 1; }
.tagline { font-size: .875rem; font-weight: 400; letter-spacing: normal; }
nav { margin-left: auto; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.25rem); }
nav a { padding: .5rem 0; text-decoration: none; }
nav a:hover, .news-item a:hover { color: var(--accent); }

h1, h2, p { margin: 0; }
h1 { margin: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(1.5rem, 3vw, 3rem); font-size: clamp(3rem, 7vw, 6rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.02; }
p { font-size: 1.125rem; line-height: 1.5; }

.project { display: grid; grid-template-columns: 4fr 5fr; background: white; }
.project-copy { align-self: center; padding: clamp(1.5rem, 4vw, 4rem); }
.category { color: var(--accent); font-weight: 600; font-size: .9375rem; margin-bottom: 1rem; }
.project-copy h2 { margin-bottom: 1.25rem; }
.project-copy p:not(.category), .news-item p { color: var(--muted); }
.button {
  display: inline-block;
  margin-top: 2rem;
  padding: .85rem 1.25rem;
  background: #000;
  color: white;
  box-shadow: var(--project-shadow);
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: #202020; }
.preview {
  display: grid;
  align-items: center;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.75rem);
  background-color: #c5eae5;
  background-image: linear-gradient(#fff5 1px, transparent 1px), linear-gradient(90deg, #fff5 1px, transparent 1px);
  background-size: 2rem 2rem;
}
.preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .625rem;
  box-shadow: var(--project-shadow);
}
.news-item { display: grid; grid-template-columns: minmax(9rem, 1fr) 4fr; gap: 2rem; padding: 2rem 0; border-block: 1px solid var(--rule); }
.news-item time { font-size: 1rem; color: var(--accent); }
.news-item h2 { font-size: clamp(1.75rem, 3vw, 2.75rem); }
.news-item p { max-width: 60ch; margin-top: 1rem; }

@media (max-width: 46rem) {
  .project, .news-item { grid-template-columns: 1fr; }
  .news-item { gap: 1rem; }
  .preview { padding: clamp(1.5rem, 5vw, 2.5rem); }
  .brand img { width: 28px; height: 28px; }
}

@media (max-width: 32rem) {
  .masthead { display: grid; grid-template-columns: 1fr auto; }
  .language-switch { grid-column: 2; grid-row: 1; }
  nav { grid-column: 1 / -1; margin: 0; }
}
