@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,600;1,300&family=DM+Mono:ital,wght@0,400;0,500;1,400&display=swap');

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

:root {
  --bg: #f4f1eb;
  --ink: #1a1a18;
  --muted: #6b6860;
  --accent: #c84b2f;
  --line: #d0cdc6;
  --mono: 'DM Mono', monospace;
  --serif: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  padding: 0;
}

/* ── HEADER ── */
header {
  border-bottom: 2px solid var(--ink);
  padding: 3rem 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

header h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

header h1 span {
  color: var(--accent);
  font-style: normal;
  font-weight: 600;
}

.header-meta {
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.9;
}

.header-meta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.header-meta a:hover { border-color: var(--accent); }

/* ── LAYOUT ── */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 4rem 6rem;
}

section {
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--line);
}
section:last-child { border-bottom: none; }

/* ── SECTION TITLES ── */
.section-label {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--ink);
}

h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 300;
  font-style: normal;
  margin-bottom: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ── PARAGRAPHS ── */
p {
  color: var(--ink);
  margin-bottom: 1rem;
  max-width: 68ch;
}

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

/* ── BACKGROUND CALLOUT ── */
.callout {
  border-left: 3px solid var(--accent);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  background: rgba(200, 75, 47, 0.04);
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 68ch;
}

/* ── WHY 42 BULLETS ── */
.why-list {
  list-style: none;
  margin: 1.2rem 0;
  max-width: 68ch;
}
.why-list li {
  padding: 0.4rem 0 0.4rem 1.4rem;
  position: relative;
  font-size: 0.92rem;
}
.why-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── PROJECTS ── */
.project {
  margin-bottom: 2.8rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 2rem;
  max-width: 72ch;
}

.project-name {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding-top: 0.15rem;
  line-height: 1.4;
}

.project-body p {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

/* ── FEATURED PROJECT ── */
.project.featured {
  grid-template-columns: 1fr;
  max-width: 100%;
  background: var(--ink);
  color: var(--bg);
  padding: 2rem 2.4rem;
  margin-left: -2.4rem;
  margin-right: -2.4rem;
  margin-bottom: 2.8rem;
}

.project.featured .project-name {
  color: var(--accent);
  font-size: 0.8rem;
  margin-bottom: 0.8rem;
}

.project.featured .project-name a.project-link {
  color: var(--accent);
}

.project.featured .project-body p {
  color: rgba(244,241,235,0.85);
  font-size: 0.95rem;
  max-width: 64ch;
}

/* ── TECH LIST ── */
.tech-list {
  list-style: none;
  margin-top: 1rem;
}

.tech-list li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  max-width: 68ch;
  font-size: 0.92rem;
}
.tech-list li:last-child { border-bottom: none; }

.tech-name {
  font-weight: 600;
  color: var(--accent);
}

.tech-desc {
  color: var(--muted);
}

/* ── NEXT STEP ── */
.next-step {
  background: var(--ink);
  color: var(--bg);
  padding: 2.5rem 3rem;
  margin-top: 3rem;
}

.next-step .section-label { color: rgba(244,241,235,0.9); }
.next-step .section-label::after { background: rgba(244,241,235,0.3); }

.next-step-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 300;
  color: var(--bg);
  margin-bottom: 0.8rem;
}

.next-step h2 {
  color: var(--bg);
  margin-bottom: 1rem;
}

.next-step p {
  color: rgba(244,241,235,0.8);
  font-size: 0.92rem;
}

.next-step a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* ── FOOTNOTE ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid var(--line);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  header { padding: 2rem; grid-template-columns: 1fr; }
  .header-meta { text-align: left; }
  main { padding: 2rem; }
  .project { grid-template-columns: 1fr; gap: 0.3rem; }
  .tech-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

/* ── INTRO BOX ── */
.intro-box {
  border: 1px solid var(--ink);
  padding: 1.2rem 1.6rem;
  padding-bottom: 12px;
  background: transparent;
}
.intro-box p {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
  margin: 0;
}
.intro-box p strong {
  font-weight: 700;
}

/* ── PROJECT LINKS ── */
a.project-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a.project-link:hover { border-bottom-color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

header, section {
  animation: fadeUp 0.6s ease both;
}
section:nth-child(1) { animation-delay: 0.05s; }
section:nth-child(2) { animation-delay: 0.15s; }
section:nth-child(3) { animation-delay: 0.25s; }
section:nth-child(4) { animation-delay: 0.35s; }
section:nth-child(5) { animation-delay: 0.45s; }
section:nth-child(6) { animation-delay: 0.55s; }
