@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(/fonts/space-grotesk-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #323232;
  --text: #ffffff;
  --green: #c5e8a0;
  --orange: #f49777;
  --purple: #e68fe6;
  --blue: #4594de;
  --nav-hover: #656565;
  --col: 980px;
  --gutter: 20px;
  --body: 22px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: var(--body);
  line-height: 1.4;
  overflow-wrap: break-word;
}
img, video, iframe { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.wrap { width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
main { padding-bottom: 60px; min-height: 60vh; }

/* ---- header ---- */
.site-header { padding: 26px 0 22px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--green); font-size: 38px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.nav { list-style: none; display: flex; margin: 0; padding: 0; font-size: 20px; }
.nav > li { position: relative; }
.nav a { display: block; padding: 6px 48px; text-decoration: none; color: var(--text); white-space: nowrap; transition: color 0.2s ease; }
.nav > li:last-child > a { padding-right: 48px; }
.nav a:hover, .nav a:focus-visible { color: var(--nav-hover); }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; right: 0; top: 100%; min-width: 100%; background: var(--bg); display: none; z-index: 20; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35); }
.sub a { padding: 6px 24px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.nav-toggle, .nav-burger { display: none; }

/* ---- blocks ---- */
.h { color: var(--green); font-weight: 400; margin: 0; }
.h1 { font-size: 55px; line-height: 1.4; }
.h2 { font-size: 38px; line-height: 1.3; }
.h3 { font-size: 24px; line-height: 1.35; }
.block-heading + .block-heading .h3 { margin-top: -2px; }

.rich p, .rich ul, .rich ol { margin: 0; }
.rich p:empty::before { content: '\00a0'; }
.rich ul, .rich ol { padding-left: 1.3em; }
.rich .right { text-align: right; }
.rich.small { font-size: 16px; line-height: 1.5; }
.rich a, .h a, figcaption a { text-decoration: underline; text-underline-offset: 2px; }
.rich a:hover, .h a:hover { opacity: 0.8; }
.c-white { color: var(--text); }
.c-green { color: var(--green); }
.c-orange { color: var(--orange); }
.c-purple { color: var(--purple); }
.c-blue { color: var(--blue); }

.media { margin: 0; }
.media img, .media video { width: 100%; }
.media video { background: #000; }
.media.half { width: 50%; }
figcaption { font-size: 16px; padding-top: 6px; }
figcaption:empty { display: none; }
.embed { position: relative; aspect-ratio: 16 / 9; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.block-image, .block-video, .block-gallery, .block-cards { padding: 4px 0; }

.gallery { column-gap: 5px; }
.gallery.narrow { max-width: 670px; margin: 0 auto; }
.gallery.cols-1 { columns: 1; }
.gallery.cols-2 { columns: 2; }
.gallery.cols-3 { columns: 3; }
.g-item { display: block; margin: 0 0 5px; break-inside: avoid; cursor: zoom-in; }
.g-item img { width: 100%; }

.cards { display: grid; gap: 56px 25px; padding: 6px 0 20px; }
.cards.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: block; text-decoration: none; color: inherit; }
.card-media { background: #222; overflow: hidden; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.r-16x9 .card-media { aspect-ratio: 16 / 9; }
.r-1x1 .card-media { aspect-ratio: 1; }
.r-4x3 .card-media { aspect-ratio: 4 / 3; }
.r-auto .card-media img, .r-auto .card-media video { height: auto; }
a.card:hover img { opacity: 0.8; }
.card-title { color: var(--green); font-size: 24px; font-weight: 400; margin: 18px 0 0; line-height: 1.3; }
.card-sub { font-size: 15px; margin: 6px 0 0; font-family: Helvetica, Arial, sans-serif; }

.spacer-s { height: 16px; }
.spacer-m { height: 31px; }
.spacer-l { height: 62px; }

/* ---- lightbox ---- */
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 94vh; width: auto; height: auto; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font: inherit; font-size: 40px; cursor: pointer; padding: 16px 22px; }
.lightbox .lb-close { top: 0; right: 0; }
.lightbox .lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 0; top: 50%; transform: translateY(-50%); }

/* ---- sign-in ---- */
.auth { max-width: 460px; padding-top: 40px; }
.auth form { display: grid; gap: 18px; margin-top: 20px; }
.auth label { display: grid; gap: 6px; font-size: 16px; }
.auth input { font: inherit; font-size: 18px; padding: 10px 12px; background: #222; color: #fff; border: 1px solid #666; border-radius: 4px; }
.auth button { font: inherit; font-size: 18px; padding: 11px 16px; background: var(--green); color: #1c1c1c; border: 0; border-radius: 4px; cursor: pointer; }
.auth-error { color: var(--orange); font-size: 18px; margin: 14px 0 0; }

/* ---- small screens ---- */
@media (max-width: 760px) {
  :root { --body: 17px; --gutter: 16px; }
  .site-header { padding: 16px 0 12px; }
  .header-inner { flex-wrap: wrap; }
  .brand { font-size: 26px; }
  .nav-burger { display: flex; flex-direction: column; gap: 6px; padding: 10px 0 10px 10px; cursor: pointer; order: 2; }
  .nav-burger span { display: block; width: 28px; height: 2px; background: var(--text); }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: 8px; margin: 0; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--green); }
  nav { display: none; width: 100%; order: 3; }
  .nav-toggle:checked ~ nav { display: block; }
  .nav { flex-direction: column; font-size: 20px; padding: 8px 0 12px; }
  .nav a { padding: 9px 0; }
  .sub { display: block; position: static; box-shadow: none; padding: 0 0 0 20px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 27px; }
  .h3 { font-size: 20px; }
  .rich.small { font-size: 15px; }
  .cards.cols-2, .cards.cols-3 { grid-template-columns: 1fr; }
  .media.half { width: 100%; }
  .gallery.cols-3 { columns: 2; }
  .card-title { font-size: 21px; }
}
