/* CAGF Systems — single stylesheet.
   No build step, no external fonts, no runtime dependencies. */

:root {
  --bg: #0b0c0e;
  --surface: #111317;
  --surface-2: #15181d;
  --line: #232830;
  --line-strong: #333a43;
  --text: #e8eaee;
  --muted: #a4abb6;
  --accent: #5fd0b3;
  --accent-ink: #06110e;
  --radius: 14px;
  --wrap: 68rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0 0 0.5em; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.35rem, 3.5vw, 1.7rem); }
h3 { font-size: 1.07rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.22em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(95, 208, 179, 0.28); color: var(--text); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section { padding-block: clamp(2.75rem, 8vw, 5rem); }

section[id] { scroll-margin-top: 5.5rem; }

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  top: 0;
  left: clamp(1.1rem, 4vw, 2.5rem);
  z-index: 30;
  transform: translateY(-150%);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 0 0 10px 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- header ---------- */

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

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-block: 0.85rem;
}

.brand {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--accent); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding-block: 0.15rem;
}
.site-nav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3rem, 10vw, 6.5rem) clamp(2.5rem, 7vw, 4.5rem);
  background-image: radial-gradient(58% 42% at 50% 0%, rgba(95, 208, 179, 0.07), transparent 72%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  background: var(--accent);
  border-radius: 2px;
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  max-width: 34ch;
  margin-bottom: 0.85rem;
}

.body-copy {
  color: var(--muted);
  max-width: 56ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { background: #74dcc2; border-color: #74dcc2; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--muted); }

/* ---------- section heads ---------- */

.section-head { margin-bottom: 1.75rem; }
.section-head h2 { margin-bottom: 0.35rem; }

.section-note {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 58ch;
  margin: 0;
}

/* ---------- project cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards > li { display: flex; }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 1.25rem 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 140ms ease, transform 140ms ease, background-color 140ms ease;
}
.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.card p { margin: 0; }
.card > p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.9rem;
}
.card-head h3 { margin: 0; }

.status {
  flex: none;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.4;
  white-space: nowrap;
}
.status-dev { color: #e3b871; border-color: rgba(227, 184, 113, 0.38); background: rgba(227, 184, 113, 0.09); }
.status-exp { color: #aab8ff; border-color: rgba(170, 184, 255, 0.34); background: rgba(170, 184, 255, 0.09); }
.status-rel { color: #7cd9a4; border-color: rgba(124, 217, 164, 0.34); background: rgba(124, 217, 164, 0.09); }

.card-note {
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0.85;
}

/* ---------- about ---------- */

.about-wrap { max-width: 46rem; }
.about-wrap p { color: var(--muted); }
.about-wrap p:first-of-type { color: var(--text); }

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding-block: 2.25rem 2.75rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem 2rem;
}
.footer-brand { font-weight: 600; margin-bottom: 0.15rem; }
.footer-meta { text-align: left; }
.footer-meta p { margin-bottom: 0.15rem; }

/* ---------- utilities ---------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card:hover { transform: none; }
}

/* ---------- wider screens ---------- */

@media (min-width: 46rem) {
  .footer-meta { text-align: right; }
}
