/* ---------- tokens ---------- */
:root {
  /* color, dark theme */
  --bg: #0A0F0D;        /* page ground */
  --card: #121917;      /* content cards floating over the print */
  --raised: #16211C;    /* insets inside a card */
  --ink: #E8EFEA;       /* body text */
  --muted: #9FB3A9;     /* secondary text */
  --accent: #A3E635;    /* links, buttons */
  --on-accent: #0A0F0D; /* text on accent fills */
  --line: #24302B;      /* hairlines */
  --print: #40534A;     /* pattern stroke, mirrored in the SVG */

  /* space */
  --s-1: 0.25rem;
  --s0: 0.5rem;
  --s1: 1rem;
  --s2: 1.5rem;
  --s3: 2.5rem;
  --s4: 4rem;

  /* type */
  --font-sans: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;

  --radius: 8px;
  --measure: 42rem;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 8px 24px rgb(0 0 0 / 0.35);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
}

/* fixed print behind everything, content scrolls over it */
.bg-print {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 var(--s1); }
h1 { font-size: 2.25rem; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
h3 {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: var(--s2);
}

p { margin: 0 0 var(--s1); max-width: var(--measure); }

a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

code { font-family: var(--font-mono); font-size: 0.9em; color: var(--ink); }

/* ---------- layout, mobile first ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--s2);
}

main, footer.card {
  width: min(100% - 2 * var(--s1), 64rem);
  margin-inline: auto;
}

main {
  display: grid;
  gap: var(--s2);
  margin-block: var(--s2);
}

footer.card { margin-bottom: var(--s3); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  padding: var(--s4) var(--s1);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.hero-print {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-card {
  position: relative;
  width: min(100%, 40rem);
  text-align: center;
}

.lede { color: var(--muted); margin-inline: auto; }

.hero-links {
  display: flex;
  justify-content: center;
  gap: var(--s2);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

/* ---------- fireops ---------- */
.project-head { margin-bottom: var(--s1); }

.tagline {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9375rem;
}

.disclaimer {
  border-left: 3px solid var(--accent);
  padding: var(--s0) var(--s1);
  background: var(--raised);
  color: var(--muted);
  font-size: 0.9375rem;
}

/* full bleed inside the card */
.shot {
  margin: var(--s2) calc(-1 * var(--s2));
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-block: 1px solid var(--line);
}
figcaption {
  color: var(--muted);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  line-height: 1.4;
}
.shot figcaption { padding: var(--s0) var(--s2) 0; }

.shot-grid {
  display: grid;
  gap: var(--s1);
  margin-bottom: var(--s2);
}
.shot-grid figure { margin: 0; }
.shot-grid img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.shot-grid figcaption { padding-top: var(--s0); }

.approach { padding-left: 1.25rem; max-width: var(--measure); }
.approach li { margin-bottom: var(--s0); }

.features {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--s0);
}
.features li {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--raised);
  padding: var(--s0) var(--s1);
  font-size: 0.9375rem;
}

.tags {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s0);
}
.tags li {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  padding: var(--s0) var(--s1);
  border-radius: var(--radius);
  margin-right: var(--s0);
}

/* ---------- stack ---------- */
.stack-groups {
  display: grid;
  gap: var(--s2);
}
.stack-groups h3 { margin-top: 0; }
.stack-groups ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.stack-groups li {
  padding: var(--s-1) 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.stack-groups li:last-child { border-bottom: none; }

.fineprint { color: var(--muted); font-size: 0.8125rem; margin-top: var(--s1); }

/* ---------- breakpoints ---------- */
@media (min-width: 640px) {
  h1 { font-size: 3rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .stack-groups { grid-template-columns: 1fr 1fr; }
  .shot-grid { grid-template-columns: 3fr 2fr; align-items: start; }
}

@media (min-width: 1024px) {
  main {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
  .project { grid-column: 1 / -1; }
  #stack { grid-column: 1; }
  #about { grid-column: 2; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .btn { transition: filter 120ms ease; }
  .btn:hover { filter: brightness(1.08); }
}
