:root {
  --bg: #e7e9e6;
  --surface: #f4f5f3;
  --surface-raised: #ffffff;
  --text-primary: #1c1d1b;
  --text-secondary: #5b5d59;
  --text-muted: #8b8d88;
  --border: #d3d5d0;
  --accent: #3357d6;
  --accent-dim: #3357d61a;

  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Consolas, monospace;

  --section-pad-y: 8rem;
  --section-pad-x: 6vw;
}

* {
  box-sizing: border-box;
}

.page {
  position: relative;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 0.5em;
  font-weight: 500;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h3 { font-size: 1.1rem; }

p {
  margin: 0 0 1em;
  color: var(--text-secondary);
  max-width: 60ch;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
}

.section {
  position: relative;
  padding: var(--section-pad-y) var(--section-pad-x);
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: lowercase;
  margin-bottom: 1.5rem;
  display: block;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.tag-list li {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 0.3em 0.7em;
}

#hero .tag-list li {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#hero .tag-list li.revealed {
  opacity: 1;
  transform: translateY(0);
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  padding: 0.7em 1.4em;
  cursor: pointer;
  background: var(--surface-raised);
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

details.engineering-story {
  border-top: 0.5px solid var(--border);
  padding: 1rem 0;
}

details.engineering-story summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-primary);
}

details.engineering-story summary::marker {
  color: var(--accent);
}
