@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #f7eadc;
  --muted: #b8aaa0;
  --dim: #7f746d;
  --page: #111211;
  --panel: #191918;
  --panel-2: #20201e;
  --earth: #3a2119;
  --earth-light: #5a3425;
  --line: #3c3935;
  --accent: #d7ff56;
  --cyan: #72d5cb;
  --amber: #f1ad4d;
  --code: #0d0f0f;
  --error: #ff7b72;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.home {
  --ink: #ffffff;
  --muted: #a8a8a8;
  --dim: #838383;
  --page: #1a1a1a;
  --panel: #1a1a1a;
  --panel-2: #202020;
  --line: #3b3b3b;
  background: var(--page);
}

.home main {
  background:
    linear-gradient(
      130deg,
      rgba(104, 55, 38, 0.58) 0,
      rgba(104, 55, 38, 0.58) 100px,
      rgba(79, 45, 34, 0.38) 520px,
      rgba(45, 35, 31, 0.18) 800px,
      rgba(26, 26, 26, 0) 1080px
    ) top left / 100% 1160px no-repeat,
    var(--page);
}

a {
  color: inherit;
  text-decoration-color: var(--dim);
  text-underline-offset: 3px;
}

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

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

code,
pre,
.mono {
  font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas,
    monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  background: #111212;
}

.nav {
  width: calc(100% - 36px);
  max-width: none;
  min-height: 58px;
  margin: 0 18px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-mark {
  transform-origin: 50% 70%;
}

.brand:hover .brand-mark,
.hero-mark:hover {
  animation: dudu-wiggle 360ms ease-in-out;
}

@keyframes dudu-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-7deg); }
  75% { transform: rotate(7deg); }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  font-size: 27px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: auto;
}

.nav-links a,
.nav-meta a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-meta a:hover {
  color: var(--ink);
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--dim);
  font-size: 13px;
}

.hero {
  min-height: 460px;
  border-bottom: 0;
  background: transparent;
}

.hero-inner {
  width: min(940px, calc(100% - 32px));
  min-height: 460px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3.45fr 1fr;
}

.hero-copy,
.quick-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  justify-content: flex-start;
  padding: 52px 72px 44px 0;
  background: transparent;
  box-shadow: none;
}

.hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 52px;
  font-size: 84px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.hero-mark {
  width: 72px;
  height: 72px;
  transform-origin: 50% 75%;
}

.hero-lede {
  max-width: 570px;
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.35;
}

.hero-sub {
  max-width: 530px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 17px;
  font-size: 18px;
  line-height: 1.35;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.button {
  min-height: 42px;
  padding: 9px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--panel-2);
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  border-color: var(--accent);
  color: #111;
  background: var(--accent);
}

.button.primary {
  width: 196px;
  min-height: 40px;
  border: 0;
  color: #fff7ee;
  background: linear-gradient(105deg, #68402f 5%, #9a684b 100%);
  font-weight: 400;
}

.button.primary:hover {
  color: #fff;
  background: linear-gradient(105deg, #7a4b37 5%, #ad7958 100%);
}

.status-line {
  color: var(--dim);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  display: inline-block;
  background: var(--amber);
}

.quick-links {
  justify-content: flex-start;
  padding: 100px 0 48px 0;
  background: transparent;
}

.quick-link {
  max-width: 220px;
  min-height: 62px;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.quick-link:first-child {
  border-top: 1px solid var(--line);
}

.quick-link:hover {
  color: var(--ink);
  background: #1d1e1c;
}

.quick-icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--dim);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-icon-fill {
  fill: currentColor;
  stroke: none;
}

.quick-link strong,
.quick-link small {
  display: block;
}

.quick-link strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.quick-link small {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  line-height: 20px;
}

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

.home .hero + .band {
  padding-top: 14px;
  background: transparent;
  border-bottom: 0;
}

.home .band.alt {
  background: transparent;
}

.home .hero + .band .section-title {
  margin-bottom: 48px;
}

.band.alt {
  background: var(--panel);
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.section-title {
  margin: 0 0 44px;
  text-align: center;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.4;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 924px;
  margin: 0 auto;
}

.feature {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: transparent;
}

.feature-icon {
  width: 24px;
  height: 24px;
  color: #aa7253;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin: 4px 0 6px;
  font-size: 18px;
  font-weight: 500;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.4;
}

.code-layout,
.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.code-window {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--code);
}

.code-label {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #151716;
  font-size: 12px;
}

pre {
  max-width: 100%;
  margin: 0;
  padding: 22px;
  overflow-x: auto;
  color: #d9e0dc;
  font-size: 14px;
  line-height: 1.65;
  tab-size: 4;
}

.kw { color: #e580d3; }
.ty { color: var(--cyan); }
.fn { color: #e8df93; }
.num { color: var(--amber); }
.str { color: #db9b78; }

.copy h2,
.showcase-copy h2 {
  margin: 0 0 16px;
  font-size: 34px;
  line-height: 1.2;
}

.copy p,
.showcase-copy p {
  color: var(--muted);
}

.plain-list {
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li::before {
  margin-right: 10px;
  color: var(--accent);
  content: "+";
}

.screenshot-frame {
  border: 1px solid var(--line);
  background: #0b0d0e;
}

.screenshot-frame img {
  width: 100%;
  image-rendering: pixelated;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--amber);
  background: #241e17;
  color: var(--muted);
}

.notice strong {
  color: var(--ink);
}
