:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --ink: #e8e6e3;
  --muted: #6b6b6b;
  --rule: #1f1f1f;
  --accent: #d48c2c;
  --accent-glow: rgba(212, 140, 44, 0.15);
  --card-bg: #111111;
  --radius: 0;
  --max-w: 72ch;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f3ef;
    --surface: #ffffff;
    --ink: #1a1a1a;
    --muted: #7a7a7a;
    --rule: #d4d0c8;
    --accent: #b8731f;
    --accent-glow: rgba(184, 115, 31, 0.1);
    --card-bg: #ffffff;
  }
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.8rem; margin: 0; }
h2 { font-size: 1.6rem; margin: 0 0 1.5rem; }
h3 { font-size: 1.1rem; margin: 0 0 0.6rem; }

p { margin: 0 0 1rem; }

a {
  color: var(--accent);
  text-underline-offset: 0.12em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Header */
.site-header {
  padding: 1.5rem 0;
  margin-bottom: 4rem;
}

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

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Hero */
.hero {
  margin-bottom: 5rem;
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--rule);
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 55ch;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--rule);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* Sections */
.section {
  margin-bottom: 4rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.accent-bar {
  display: inline-block;
  width: 2rem;
  height: 3px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-text {
  font-size: 1rem;
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.7;
}

/* Grid cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20ch, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0;
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Work list */
.work-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.work-item {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  background: var(--card-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.work-item:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

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

.work-org {
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-date {
  color: var(--muted);
  font-size: 0.75rem;
}

.work-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.work-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Contact */
.contact-links {
  font-size: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.contact-link {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.contact-link:hover {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.sep {
  color: var(--muted);
  margin: 0 0.5rem;
}

/* Footer */
footer {
  margin-top: 5rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8rem;
  color: var(--muted);
}

footer p {
  margin-bottom: 0.15rem;
}

.attribution {
  font-size: 0.7rem;
  opacity: 0.5;
}

.attribution a {
  color: var(--muted);
}

/* Mobile */
@media (max-width: 600px) {
  body { padding: 0 1rem; }

  .hero-title {
    font-size: 2rem;
  }

  .nav {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links {
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
