/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:   #ffffff;
  --light:   #f5f5f5;
  --gray:    #9a9a9a;
  --dark:    #2a2a2a;
  --red:     #c0392b;
  --red-glow: rgba(192, 57, 43, 0.25);
  --font:    'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  border-bottom: 1px solid #e8e8e8;
}

.nav-brand {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-brand:hover { color: var(--red); }

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--red); }
.nav-links a.active::after { width: 100%; }

/* ── Main Content ─────────────────────────────────────────── */
main {
  flex: 1;
  padding: 0 4rem;
}

/* ── Hero (Home) ──────────────────────────────────────────── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 80vh;
  max-width: 700px;
}

.hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  font-weight: 700;
  color: var(--dark);
}

.hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--gray);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s;
}

.hero-cta::after {
  content: '→';
  transition: transform 0.2s;
}

.hero-cta:hover { color: var(--red); }
.hero-cta:hover::after { transform: translateX(4px); }

/* ── Section Header ───────────────────────────────────────── */
.section-header {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 3rem;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--dark);
  letter-spacing: -0.02em;
}

/* ── About ────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 5rem;
  max-width: 900px;
}

.about-bio p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.about-bio p strong {
  color: var(--dark);
  font-weight: 600;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--gray);
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: color 0.2s;
}

.skills-list li::before {
  content: '—';
  color: var(--red);
  font-size: 0.7rem;
}

.skills-list li:hover { color: var(--dark); }

/* ── Writing Samples ──────────────────────────────────────── */
.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding-bottom: 5rem;
}

.sample-card {
  border: 1px solid #e8e8e8;
  padding: 2rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.sample-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0;
  background: var(--red);
  transition: height 0.3s ease;
}

.sample-card:hover { border-color: var(--red); box-shadow: 0 0 20px var(--red-glow); }
.sample-card:hover::before { height: 100%; }

.sample-type {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.sample-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.sample-card p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--gray);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  padding: 2rem 4rem;
  border-top: 1px solid #e8e8e8;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gray);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 1.5rem 2rem; }
  .nav-links { gap: 1.5rem; }
  main { padding: 0 2rem; }
  footer { padding: 1.5rem 2rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}
