/* ============================================================
   Ato Arkhurst — Portfolio Styles
   ============================================================ */

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

/* ── Design Tokens ── */
:root {
  --bg:             #fafafa;
  --text:           #111;
  --text-muted:     #666;
  --border:         #e2e2e2;
  --placeholder-bg: #ebebeb;
  --link:           #111;
  --link-hover:     #444;
  --max-width:      780px;
}

/* ── Base ── */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}

header .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.site-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Sections ── */
section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 40px;
}

/* ── Bio ── */
.bio p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  max-width: 600px;
}

/* ── Work: Projects Grid ──
   4-column grid where every card spans 2 columns, ensuring
   all cards are exactly the same width. The fifth card spans
   columns 2-3, centering it beneath the two pairs above.
   ─────────────────────────────────────────────────────── */
.projects-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 32px;
  row-gap: 48px;
}

.projects-list .project-card {
  grid-column: span 2;
}

.projects-list .project-card:last-child {
  grid-column: 2 / 4;
}

/* ── Project Card ── */
.project-card .card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--placeholder-bg);
  object-fit: cover;
  border: 1px solid var(--border);
}

.project-card .card-body {
  padding: 16px 0 0;
}

.project-card .card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.project-card .card-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 60%;
}

.project-card .card-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.project-card .card-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 16px;
}

/* ── Button ── */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--link);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 7px 16px;
  transition: border-color 0.15s, color 0.15s;
}

.btn:hover {
  border-color: var(--text);
  color: var(--link-hover);
}

/* ── Footer ── */
footer {
  padding: 72px 0 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-email a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.15s;
}

.footer-email a:hover {
  border-color: var(--text);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  header {
    padding: 64px 0 56px;
  }

  section {
    padding: 60px 0;
  }

  .projects-list {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .projects-list .project-card,
  .projects-list .project-card:last-child {
    grid-column: 1 / -1;
  }

  .project-card .card-meta {
    flex-direction: column;
    gap: 2px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
