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

/* ── Variables ───────────────────────────────────────────── */
:root {
  --bg:           #111111;
  --text:         #e2ded6;
  --text-muted:   #86827a;
  --accent:       #c8a96e;
  --accent-hover: #d4b87e;
  --border:       #272727;
  --font-sans:    system-ui, -apple-system, sans-serif;
  --font-mono:    "SFMono-Regular", Consolas, monospace;
}

/* ── Base ────────────────────────────────────────────────── */
html {
  font-size: 17px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  max-width: 680px;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.site-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}

.site-title:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Portfolio ───────────────────────────────────────────── */
.portfolio {
  padding: 3.5rem 0 6rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* ── Intro ───────────────────────────────────────────────── */
.intro-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.intro-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 1.5rem;
}

.intro-tagline {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 540px;
}

/* ── Section label ───────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* ── Work ────────────────────────────────────────────────── */
.work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.work-entry {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.work-company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.work-dates {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.work-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.work-body {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.75;
}

.work-body + .work-body {
  margin-top: 0.875rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-list li {
  font-size: 0.9375rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--text-muted);
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .portfolio {
    padding: 2.5rem 0 4rem;
    gap: 2.75rem;
  }

  .work-meta {
    flex-direction: column;
    gap: 0.15rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
