@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --bg-sunken: #fafafa;

  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --text: #1d1d1f;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;

  --accent: #0071e3;
  --accent-hover: #0062c4;
  --accent-subtle: #eaf3fd;

  --warning: #f59e0b;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06);

  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular,
               Menlo, Consolas, monospace;

  --maxw: 1120px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

code, pre { font-family: var(--font-mono); font-size: .9em; }
code {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .08em .35em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }

.lead {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 62ch;
}

.kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .75rem 1.15rem;
  border-radius: var(--r-md);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease,
              color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--text); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--s-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text);
}
.brand-mark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.brand-dot { color: var(--accent); }
.brand-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border-strong);
}
.brand-tag {
  font-weight: 400;
  font-size: .95rem;
  color: var(--text-secondary);
  letter-spacing: -0.005em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.hero { padding-block: clamp(4rem, 9vw, 8rem) clamp(3rem, 6vw, 5rem); }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--s-8);
  align-items: center;
}
.hero-text h1 { margin-bottom: var(--s-5); }
.hero-text .lead { margin-bottom: var(--s-6); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-art { justify-self: end; width: 100%; max-width: 560px; }

.intro { padding-block: clamp(3rem, 6vw, 5rem); max-width: 800px; }
.intro .lead { color: var(--text); font-size: clamp(1.15rem, 1.5vw, 1.4rem); }

.project { padding-block: clamp(5rem, 10vw, 9rem); }
.project--homespan { background: var(--bg-subtle); }

.project-head {
  max-width: 720px;
  margin-bottom: clamp(4rem, 8vw, 6rem);
}
.project-head h2 { margin-bottom: var(--s-4); }
.project-head .lead { margin-bottom: var(--s-6); }

.features {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.feature--reverse { direction: rtl; }
.feature--reverse > * { direction: ltr; }

.feature-text h3 { margin-bottom: var(--s-3); }
.feature-text p { color: var(--text-secondary); font-size: 1.02rem; }

.screenshot {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-md);
}
.screenshot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.screenshot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.project-note {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: var(--s-6);
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: .95rem;
}

.page-hero {
  padding-block: clamp(5rem, 11vw, 9rem) clamp(3rem, 6vw, 5rem);
  max-width: 820px;
}
.page-hero h1 { margin-bottom: var(--s-6); }
.page-hero .lead {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  max-width: 60ch;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-top: var(--s-7);
  padding: .5em 1em;
  border-radius: var(--r-pill);
  background: #fef5e7;
  color: #b45309;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, .15);
}

.page-body { padding-block: clamp(5rem, 10vw, 8rem); }
.page-body--alt { background: var(--bg-subtle); }

.page-body-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.page-body-inner--reverse { direction: rtl; }
.page-body-inner--reverse > * { direction: ltr; }

.page-text h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  margin-bottom: var(--s-5);
}
.page-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: var(--s-4);
}
.page-text p:last-child { margin-bottom: 0; }

.board-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.board-list li {
  padding: .45em 1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .88rem;
  font-family: var(--font-mono);
  color: var(--text);
}

.page-cta {
  padding-block: clamp(5rem, 10vw, 8rem) clamp(6rem, 12vw, 10rem);
}
.cta-card {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--r-xl);
  background: var(--bg-subtle);
}
.cta-card h2 {
  margin-bottom: var(--s-5);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.cta-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 50ch;
  margin-inline: auto;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--s-7);
  font-size: .9rem;
  color: var(--text-secondary);
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-4);
}
.footer-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text);
  font-weight: 500;
}
.footer-center {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-3) var(--s-5);
}
.footer-social {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  transition: color .15s ease, background .15s ease;
}
.social:hover {
  color: var(--text);
  background: var(--bg-subtle);
}
.footer-copy {
  justify-self: end;
  text-align: right;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),
              transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; max-width: 480px; }
}

@media (max-width: 800px) {
  body { font-size: 16px; }
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--s-6);
  }
  .feature--reverse > * { direction: ltr; }

  .page-body-inner,
  .page-body-inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--s-6);
  }
  .page-body-inner--reverse > * { direction: ltr; }
  .page-body { padding-block: clamp(3.5rem, 8vw, 5rem); }
  .page-cta { padding-block: clamp(3.5rem, 8vw, 5rem) clamp(5rem, 10vw, 7rem); }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding-block: var(--s-3);
    gap: var(--s-3);
  }
  .header-actions { flex-basis: 100%; }
  .header-actions .btn {
    flex: 1;
    justify-content: center;
    padding: .65rem .9rem;
    font-size: .9rem;
  }
  .brand-tag,
  .brand-sep { display: none; }

  .hero { padding-block: var(--s-7) var(--s-6); }
  .project { padding-block: clamp(4rem, 10vw, 6rem); }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: var(--s-5);
  }
  .footer-brand,
  .footer-center,
  .footer-copy {
    justify-self: center;
    text-align: center;
  }
}

.page-hero-actions {
  margin-top: var(--s-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
}
.chip-list li {
  padding: .45em 1em;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: .9rem;
  color: var(--text);
}

.page-selfhost {
  padding-block: clamp(4rem, 8vw, 6rem);
  background: var(--bg);
}
.selfhost-inner {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}
.selfhost-inner h2 {
  margin-bottom: var(--s-5);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}
.selfhost-inner p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: var(--s-4);
}
.selfhost-inner .btn {
  margin-top: var(--s-3);
}
