@font-face {
  font-family: "Source Code Pro";
  src: url("assets/fonts/source-code-pro/SourceCodePro-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Code Pro";
  src: url("assets/fonts/source-code-pro/SourceCodePro-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --indigo-dusk: oklch(22% 0.046 282);
  --indigo-night: oklch(14% 0.04 282);
  --indigo-sink: oklch(11% 0.037 282);
  --wine-mauve: oklch(43% 0.049 326);
  --ash-mauve: oklch(58% 0.037 285);
  --surface-1: oklch(28% 0.04 300);
  --surface-2: oklch(34% 0.045 310);
  --surface-3: oklch(40% 0.05 320);
  --workshop-amber: oklch(78% 0.159 77);
  --workshop-amber-deep: oklch(70% 0.17 65);
  --warm-bone: oklch(96% 0.008 80);
  --bone-mid: oklch(82% 0.012 80);
  --bone-low: oklch(66% 0.014 80);
  --line: oklch(72% 0.018 320 / 0.22);
  --line-soft: oklch(72% 0.015 320 / 0.1);
  --mauve-ink: oklch(67% 0.075 346);
  --hero-left: clamp(1.5rem, 3vw, 4.5rem);
  --page-right: clamp(1rem, 3vw, 3rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--indigo-sink);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(
      to bottom,
      var(--indigo-night) 0,
      var(--indigo-night) 62svh,
      var(--indigo-sink) 86svh,
      var(--indigo-sink) 100%
    );
  color: var(--warm-bone);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9375rem;
  line-height: 1.65;
  letter-spacing: 0;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, oklch(2% 0.01 282), transparent 76%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px oklch(78% 0.159 77 / 0.62);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--workshop-amber);
  color: var(--indigo-dusk);
  font-size: 0.75rem;
  font-weight: 600;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 40px) var(--page-right) 0 var(--hero-left);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: var(--warm-bone);
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: clamp(0.75rem, 1.3vw, 1rem);
  line-height: 1.1;
}

.brand-lockup img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.brand-lockup span {
  overflow-wrap: anywhere;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(12px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--warm-bone);
  font-size: clamp(0.78rem, 1.3vw, 1rem);
  line-height: 1.2;
}

.site-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  content: "";
  background: var(--mauve-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease-out;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  min-height: 88svh;
  padding: clamp(106px, 11vw, 148px) var(--page-right) clamp(58px, 6vw, 78px) var(--hero-left);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(
      90deg,
      oklch(11% 0.038 282 / 0.9) 0%,
      oklch(14% 0.04 282 / 0.84) 34%,
      oklch(14% 0.04 282 / 0.5) 56%,
      oklch(14% 0.04 282 / 0.1) 78%,
      oklch(14% 0.04 282 / 0.02) 100%
    ),
    linear-gradient(
      to bottom,
      oklch(11% 0.038 282 / 0.02) 0%,
      oklch(11% 0.038 282 / 0.08) 66%,
      var(--indigo-sink) 100%
    ),
    url("assets/bg-2.jpeg");
  background-position: right top;
  background-repeat: no-repeat;
  background-size: cover;
}

.line-rail {
  position: absolute;
  left: var(--hero-left);
  top: 30%;
  display: grid;
  gap: clamp(12px, 1.5vw, 22px);
  color: var(--mauve-ink);
  font-size: clamp(0.72rem, 1.1vw, 0.95rem);
  opacity: 0.85;
}

.hero-copy {
  width: min(61vw, 860px);
  padding-left: clamp(56px, 6vw, 92px);
}

.terminal-mark {
  margin: 0 0 clamp(34px, 5vw, 62px);
  color: var(--mauve-ink);
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
}

h1,
h2 {
  margin: 0;
  font-family: "Source Code Pro", ui-monospace, monospace;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  color: var(--warm-bone);
  font-size: clamp(4rem, 7vw, 7.4rem);
  font-weight: 600;
  line-height: 1.05;
}

h1 span {
  color: var(--mauve-ink);
}

.hero-statement {
  max-width: 63ch;
  margin: clamp(28px, 3.5vw, 42px) 0 0;
  color: var(--mauve-ink);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.55;
}

.hero-lede {
  max-width: 68ch;
  margin: clamp(18px, 2vw, 28px) 0 0;
  color: var(--warm-bone);
  font-size: clamp(0.98rem, 1.25vw, 1.15rem);
  line-height: 1.72;
}

.hero-lede-short {
  max-width: 62ch;
}

.editorial-band {
  position: relative;
  padding: 0 var(--page-right) clamp(54px, 8vw, 100px) var(--hero-left);
  background:
    linear-gradient(180deg, var(--indigo-sink), oklch(13% 0.04 286) 52%, var(--indigo-night));
}

.story-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr) minmax(0, 0.92fr);
  border-top: 1px solid var(--mauve-ink);
  border-bottom: 1px solid var(--mauve-ink);
}

.story-block {
  min-height: 318px;
  padding: clamp(24px, 3.4vw, 42px) clamp(22px, 3vw, 38px);
}

.story-block + .story-block {
  border-left: 1px solid var(--mauve-ink);
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--mauve-ink);
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  font-weight: 600;
  text-transform: uppercase;
}

.story-block h2,
.links-heading h2 {
  color: var(--warm-bone);
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.24;
}

.story-block p:not(.section-kicker) {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--warm-bone);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.1;
}

.button-primary {
  background: var(--workshop-amber);
  color: var(--indigo-dusk);
}

.button-primary:hover {
  background: var(--workshop-amber-deep);
  color: var(--indigo-night);
}

.links-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.22fr) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 66px);
  padding-top: clamp(22px, 3vw, 36px);
}

.links-heading h2 {
  max-width: 12ch;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--mauve-ink);
}

.link-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  min-height: 136px;
  padding: 26px 24px 22px;
  border-bottom: 1px solid var(--mauve-ink);
  color: var(--warm-bone);
}

.link-card + .link-card {
  border-left: 1px solid var(--mauve-ink);
}

.link-card:hover {
  background: oklch(28% 0.04 300 / 0.56);
}

.link-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--mauve-ink);
  font-family: "Source Code Pro", ui-monospace, monospace;
  font-size: 1.1rem;
  font-weight: 600;
}

.link-icon svg {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.link-icon rect,
.link-icon path,
.link-icon circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-icon circle[r=".8"],
.link-icon path[d="M10 9.5v5l5-2.5z"],
.link-icon path[d^="M12 2.8"] {
  fill: currentColor;
  stroke: none;
}

.link-icon .discord-mark path {
  fill: currentColor;
  stroke: none;
}

.link-card strong {
  display: block;
  color: var(--warm-bone);
  font-size: 1rem;
  line-height: 1.25;
}

.link-card small {
  display: block;
  margin-top: 6px;
  color: var(--bone-mid);
  font-size: 0.82rem;
  line-height: 1.45;
}

.secondary-links {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 20px;
  color: var(--mauve-ink);
  font-size: 0.82rem;
}

.secondary-links a {
  text-decoration: underline;
  text-decoration-color: var(--mauve-ink);
  text-underline-offset: 5px;
}

.secondary-links a:hover {
  color: var(--warm-bone);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 0 var(--page-right) 34px var(--hero-left);
  background: var(--indigo-night);
  color: var(--mauve-ink);
  font-size: 0.82rem;
}

@media (max-width: 1180px) {
  .hero::before {
    background-position: right top;
    background-size: auto 100%;
  }

  .hero-copy {
    width: min(70vw, 820px);
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .link-card:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 860px) {
  :root {
    --hero-left: clamp(1rem, 5vw, 2rem);
    --page-right: clamp(1rem, 5vw, 2rem);
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
    background: var(--indigo-night);
  }

  .site-nav {
    justify-content: flex-start;
    gap: 18px;
  }

  .hero {
    min-height: auto;
    padding-top: clamp(56px, 13vw, 92px);
  }

  .hero::before {
    background:
      linear-gradient(
        90deg,
        oklch(11% 0.038 282 / 0.96) 0%,
        oklch(11% 0.038 282 / 0.88) 44%,
        oklch(11% 0.038 282 / 0.34) 76%,
        oklch(11% 0.038 282 / 0.08) 100%
      ),
      linear-gradient(to bottom, transparent 0%, var(--indigo-sink) 100%),
      url("assets/bg-2.jpeg");
    background-position: right top;
    background-size: auto 100%;
  }

  .line-rail {
    display: none;
  }

  .hero-copy {
    width: min(100%, 680px);
    padding-left: 0;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(3rem, 12vw, 5.2rem);
  }

  .story-strip,
  .links-panel {
    grid-template-columns: 1fr;
  }

  .story-block + .story-block {
    border-top: 1px solid var(--mauve-ink);
    border-left: 0;
  }

  .story-block {
    min-height: auto;
  }

  .secondary-links {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .brand-lockup img {
    width: 24px;
    height: 24px;
  }

  .site-nav {
    gap: 12px 16px;
  }

  .site-nav a {
    font-size: 0.78rem;
  }

  .hero {
    padding-bottom: 64px;
  }

  .hero::before {
    background-position: 82% top;
    background-size: auto 100%;
  }

  .terminal-mark {
    margin-bottom: 34px;
  }

  .hero-statement,
  .hero-lede {
    font-size: 0.95rem;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-card,
  .link-card + .link-card,
  .link-card:nth-child(3) {
    border-left: 0;
  }

  .link-card {
    min-height: 118px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
