/* ==========================================================================
   Shared site styles — used by index.html and every page under /projects/
   Edit here to restyle everything at once.
   ========================================================================== */

:root {
  --bg: #14161a;
  --surface: #1c1f24;
  --surface-line: #2b2f36;
  --text: #e7e5e0;
  --text-muted: #9195a0;
  --accent: #6fa3ad;
  --accent-dim: #4c7078;
  --radius: 6px;
  --max-width: 780px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* faint blueprint grid, very subtle — a nod to steel/engineering drawings */
body.grid-bg {
  background-image:
    linear-gradient(rgba(111, 163, 173, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 163, 173, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover, a:focus-visible {
  color: var(--text);
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}

h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0 0 40px;
}

p {
  color: var(--text-muted);
  max-width: 60ch;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 56px;
}

.links a {
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--text);
}
.links a:hover, .links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-top: 1px solid var(--surface-line);
  padding-top: 32px;
  margin: 48px 0 20px;
}

.projects {
  display: grid;
  gap: 14px;
}

.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--surface-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.project-card:hover, .project-card:focus-visible {
  border-color: var(--accent-dim);
  transform: translateX(2px);
}

.project-card .name {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-card .desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.project-card .status {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
}

.project-card.placeholder {
  border-style: dashed;
  opacity: 0.6;
}

footer {
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---- Project page chrome (used inside /projects/*/index.html) ---- */

.back-link {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.back-link:hover, .back-link:focus-visible {
  color: var(--accent);
}
