@font-face {
  font-family: "Josefin Sans";
  src: url("../assets/fonts/JosefinSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Josefin Sans";
  src: url("../assets/fonts/JosefinSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../assets/fonts/PublicSans-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Public Sans";
  src: url("../assets/fonts/PublicSans-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #090909;
  --bg-raised: #121212;
  --bg-panel: #161616;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #f6f6f6;
  --muted: #b7b7b7;
  --faint: #8a8a8a;
  --silver: #e8e8e8;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --header: 72px;
  --max: 1120px;
  --sans: "Public Sans", "Avenir Next", "Avenir", "Segoe UI", sans-serif;
  --display: "Josefin Sans", "Avenir Next", "Avenir", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(255, 255, 255, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--text);
  color: #111;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: rgba(9, 9, 9, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 58px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.icon-invert {
  filter: invert(1);
}

:focus-visible {
  outline: 2px solid var(--silver);
  outline-offset: 3px;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: 999px;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.site-nav .nav-github img {
  width: 16px;
  height: 16px;
}

main {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 40px;
}

.kicker {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(3.2rem, 7vw, 5.6rem);
}

.lede {
  margin: 0 0 28px;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.button img {
  width: 18px;
  height: 18px;
}

.button-solid {
  background: var(--silver);
  color: #111;
}

.button-solid:hover {
  background: #fff;
}

.button-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  filter: blur(8px);
}

.hero-visual img {
  position: relative;
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}

.statement {
  margin: 12px 0 64px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.statement p {
  margin: 0;
  max-width: 46rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
}

.section {
  padding: 20px 0 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.section-head p,
.prose {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.spec-card {
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.spec-card h3 {
  margin: 0 0 18px;
  font-size: 1.7rem;
}

.spec-card dl {
  margin: 0;
}

.spec-card div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.spec-card dt {
  color: var(--faint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.spec-card dd {
  margin: 0;
}

.public-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.panel {
  padding: 32px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.panel h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.panel p + p {
  margin-top: 14px;
}

.youtube-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background:
    radial-gradient(400px 180px at 80% 0%, rgba(255, 0, 40, 0.18), transparent 60%),
    var(--bg-panel);
}

.youtube-card img {
  width: 72px;
  height: 40px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 24px;
}

.board-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.board-card {
  display: block;
  color: inherit;
  text-decoration: none;
  background: #c9cde0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.board-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.board-card span {
  display: block;
  padding: 12px 14px 14px;
  background: var(--bg-panel);
  color: var(--muted);
  font-size: 0.92rem;
}

.board-card:hover span {
  color: var(--text);
}

.page-intro {
  padding: 56px 0 28px;
}

.page-intro h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: 80px;
}

.gallery button {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #c5c9dc;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  font: inherit;
}

.gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery .caption {
  display: block;
  padding: 12px 14px 14px;
  background: var(--bg-panel);
  color: var(--muted);
}

.gallery button:hover .caption,
.gallery button:focus-visible .caption {
  color: var(--text);
}

.lightbox {
  width: min(1080px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #0e0e0e;
  color: var(--text);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  background: #c5c9dc;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.lightbox-bar p {
  margin: 0;
}

.lightbox-actions {
  display: flex;
  gap: 8px;
}

.lightbox-actions button {
  min-width: 40px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--faint);
  font-size: 0.92rem;
}

.site-footer .wrap {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer p {
  margin: 0 0 8px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(12, 12, 12, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav .nav-github {
    margin-left: 0;
  }

  .hero,
  .specs,
  .public-grid,
  .board-row,
  .gallery,
  .site-footer .wrap {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .hero {
    padding-top: 36px;
    gap: 12px;
  }

  .hero-visual {
    min-height: 0;
    order: -1;
  }

  .hero-visual img {
    width: min(100%, 280px);
  }

  main {
    width: min(var(--max), calc(100% - 32px));
  }

  .site-header {
    padding: 0 16px;
  }
}
