/* skaft.org — local-first AI tools */

@font-face {
  font-family: 'Commit Mono';
  font-weight: 400; font-style: normal; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/commit-mono/files/commit-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Commit Mono';
  font-weight: 700; font-style: normal; font-display: swap;
  src: url('https://cdn.jsdelivr.net/npm/@fontsource/commit-mono/files/commit-mono-latin-700-normal.woff2') format('woff2');
}

:root {
  color-scheme: light dark;
  --bg: #fafbfb;
  --fg: #13161a;
  --soft: #6e757c;
  --line: rgba(120, 134, 144, .18);
  --card: #ffffff;
  --mono: 'Commit Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #08090b;
    --fg: #ecf1f4;
    --soft: #79858d;
    --line: rgba(120, 134, 144, .16);
    --card: #0d0f13;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- NAV ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 40px;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
}
.nav .brand { font-weight: 700; text-decoration: none; letter-spacing: .01em; font-size: 17px; }
.nav-links a { color: var(--soft); text-decoration: none; margin-left: 28px; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
}
#hero-canvas {
  width: min(92vw, 1100px);
  height: 34vh; min-height: 200px;
  display: block;
  cursor: crosshair;
}
.hero-tagline { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; margin: 18px 0 0; letter-spacing: -.01em; }
.hero-sub { font-size: 16px; color: var(--soft); margin: 12px 0 0; max-width: 44ch; }
.hero-cta {
  margin-top: 40px; font-size: 14px; color: var(--soft); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; transition: .18s;
}
.hero-cta:hover { color: var(--fg); border-color: var(--fg); }

/* ---- SECTION SHARED ---- */
.kicker { font-size: 14px; color: var(--soft); letter-spacing: .14em; text-transform: uppercase; }
.section-head { max-width: var(--maxw); margin: 0 auto 56px; padding: 0 40px; }
.section-head h2,
.mission h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.03em; line-height: .98; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 56px); margin: 18px 0 0; }

/* ---- PROJECTS ---- */
.projects { padding: 120px 0; border-top: 1px solid var(--line); }
.cards {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--soft) 50%, transparent); transform: translateY(-3px); }
.card header { display: flex; align-items: baseline; justify-content: space-between; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 28px; margin: 0; letter-spacing: -.02em; }
.card .role { font-size: 13px; color: var(--soft); letter-spacing: .04em; }
.card p { margin: 0; font-size: 14.5px; color: var(--soft); line-height: 1.65; flex: 1; }
.cmd {
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 12px 14px; margin: 0; overflow-x: auto;
  font-family: var(--mono); font-size: 13px;
}
.cmd code { color: var(--fg); white-space: pre; }
.cmd::before { content: "$ "; color: var(--soft); }
.links { display: flex; gap: 18px; }
.links a { font-size: 14px; text-decoration: none; color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .15s; }
.links a:hover { border-color: var(--fg); }

/* ---- MISSION ---- */
.mission { padding: 130px 0 150px; border-top: 1px solid var(--line); }
.mission-grid {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start;
}
.mission h2 { font-size: clamp(40px, 5.5vw, 80px); margin: 22px 0 0; }
.mission h2 .muted { color: var(--soft); }
.mission-body { font-size: 17px; line-height: 1.75; color: var(--soft); }
.mission-body p { margin: 0 0 20px; }
.mission-body strong { color: var(--fg); font-weight: 700; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding: 34px 40px; font-size: 14px; color: var(--soft);
}
.footer .foot-brand { font-weight: 700; color: var(--fg); }
.foot-links a { color: var(--soft); text-decoration: none; margin-left: 22px; transition: color .15s; }
.foot-links a:hover { color: var(--fg); }

/* ---- RESPONSIVE ---- */
@media (max-width: 820px) {
  .nav { padding: 18px 22px; }
  .cards { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; gap: 28px; }
  .projects, .mission { padding: 80px 0; }
  .section-head { margin-bottom: 36px; padding: 0 22px; }
  .cards { padding: 0 22px; }
  .mission-grid { padding: 0 22px; }
  #hero-canvas { height: 26vh; }
}
