:root {
  --bg: #222226;
  --surface: #28282c;
  --surface-2: #2e2e32;
  --line: #1a1a1e;
  --line-soft: rgba(255, 255, 255, 0.08);
  --edge-hi: #404045;
  --text: #ffffff;
  --text-1: rgba(255, 255, 255, 0.80);
  --text-2: rgba(255, 255, 255, 0.55);
  --text-3: rgba(255, 255, 255, 0.38);
  --accent: #4a9aa8;
  --accent-deep: #3a7f8a;
  --accent-shadow: #1e5060;
  --magenta: #9a3060;
  --radius: 8px;
  --btn-radius: 8px;
  --maxw: 1000px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(1400px, 100vw);
  height: 620px;
  transform: translateX(-50%);
  background: url("/assets/gradient2.png") center bottom / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
  pointer-events: none;
  z-index: -1;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--line);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0.1em 0.4em;
  color: var(--text);
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 4px;
  min-height: 60px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  corner-shape: squircle;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--text-2);
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ---- Buttons (raised: light top edge, dark bottom edge) ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--surface-2);
  border-top-color: var(--edge-hi);
  border-bottom: 2px solid var(--line);
  border-radius: var(--btn-radius);
  corner-shape: squircle;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.06s ease;
}

.btn:hover {
  background: var(--edge-hi);
  text-decoration: none;
  color: var(--text);
}

.btn:active {
  transform: translateY(1px);
  border-top-width: 2px;
  border-bottom-width: 1px;
}

.btn--primary {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  border-top-color: var(--accent);
  border-bottom-color: var(--accent-shadow);
}

.btn--primary:hover {
  background: var(--accent);
  color: #fff;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  padding: 40px 0 56px;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: max(1400px, 100vw);
  height: 620px;
  transform: translateX(-50%);
  background: url("/assets/gradient.png") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
  pointer-events: none;
  z-index: -1;
}

.hero__shot {
  margin: 0 0 34px;
}

.hero__shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero__title {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  max-width: 22ch;
  letter-spacing: -0.015em;
}

.hero__lead {
  margin: 16px 0 26px;
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--text-1);
}

.hero__lead strong {
  font-weight: 800;
  color: #fff;
}

.hero__lead-alt {
  font-weight: 600;
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__note {
  margin: 14px 0 0;
  color: var(--text-3);
  font-size: 0.9rem;
}

.snippet {
  margin: 0;
  padding: 16px 18px;
  background: var(--line);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow-x: auto;
  max-width: min(560px, 100%);
}

.snippet code {
  display: block;
  background: none;
  border: none;
  padding: 0;
  color: var(--text-1);
  font-size: 0.88rem;
  line-height: 1.85;
  white-space: pre;
}

/* ---- Sections ---- */

.section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.section--muted {
  background: var(--surface);
}

#fieldwork {
  background: var(--bg);
}

#news {
  padding-bottom: 0;
  background: linear-gradient(to bottom, var(--surface), transparent);
  border-bottom: none;
}

#news .container {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-soft);
}

.section__title {
  font-size: clamp(1.25rem, 2vw, 1.45rem);
}

.section__lead {
  margin: 12px 0 0;
  max-width: 62ch;
  color: var(--text-2);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 24px;
}

.section__more {
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ---- Features ---- */

.cards {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px 40px;
}

.card {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.card__body {
  margin: 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

/* ---- Formats ---- */

.formats {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.formats li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 13px 18px;
  background: var(--surface);
}

.formats__name {
  font-weight: 600;
  color: var(--text);
  min-width: 9rem;
}

.formats__note {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* ---- Prose ---- */

.prose {
  max-width: 68ch;
}

.prose p {
  color: var(--text-1);
}

.prose .section__title {
  margin-bottom: 8px;
}

/* ---- News ---- */

.news-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.news-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line-soft);
}

.news-item:first-child {
  border-top: none;
}

.news-item__date {
  color: var(--text-3);
  font-size: 0.9rem;
  padding-top: 3px;
}

.news-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.news-item__body p {
  margin: 0.5em 0 0;
  color: var(--text-2);
  font-size: 0.96rem;
}

/* ---- Footer ---- */

.site-footer {
  padding: 40px 0 56px;
  color: var(--line);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--line);
}

.site-footer p {
  margin: 0 0 8px;
  max-width: 64ch;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 14px;
}

.site-footer__links a {
  color: var(--text);
  font-weight: 600;
}

/* ---- Small screens ---- */

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 28px 0 44px;
  }

  .hero__shot {
    margin-bottom: 26px;
  }

  .site-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .news-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .site-header__inner {
    min-height: 54px;
  }

  .site-nav {
    gap: 0.8rem;
    font-size: 0.8rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand__name {
    display: none;
  }

  .container {
    padding-inline: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
