:root {
  --ink: #14171a;
  --paper: #f2f0ea;
  --accent: #2e5c4d;
  --muted: #6b6f73;
  --line: #d8d5cc;

  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--accent);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.mark {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

.site-header nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
}

.site-header nav a:hover {
  color: var(--accent);
}

/* Hero */

.hero {
  padding: 96px 0 72px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.15;
  margin: 0 0 24px;
  max-width: 14ch;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 32px;
}

.cta {
  display: inline-block;
  padding: 11px 22px;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  border-radius: 2px;
}

.cta:hover {
  opacity: 0.9;
}

/* Sections */

section.work,
section.about,
section.contact {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

h2 {
  font-family: var(--font-display);
  font-size: 24px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 28px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* Work grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* About / Contact */

.about p,
.contact p {
  max-width: 60ch;
  color: var(--muted);
}

.contact a {
  color: var(--accent);
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 600px) {
  .hero {
    padding: 64px 0 48px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .site-header nav a {
    margin-left: 14px;
  }
  .site-footer .wrap {
    flex-direction: column;
    gap: 6px;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
