@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: #242424;
  --surface: #333333;
  --surface-2: #404040;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #ed6c02;
  --radius: 12px;
  --col: 44rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a {
  color: var(--text);
  text-decoration-color: var(--muted);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover, a:focus-visible { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header and footer */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.75rem max(1rem, calc((100% - var(--col)) / 2));
  background: rgb(36 36 36 / 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface);
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.95rem; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--accent); }

.site-footer {
  max-width: var(--col);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer a { color: var(--muted); }

/* Layout and type */
main { max-width: var(--col); margin: 0 auto; padding: 0 1rem; }
main > section { padding: 4rem 0; border-bottom: 1px solid var(--surface); }
main > section:last-child { border-bottom: 0; }

h1, h2, h3 { margin: 0 0 1rem; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin: 0 0 1rem; }
.section-intro { color: var(--muted); }

/* About */
.headshot { width: 160px; height: 160px; border-radius: 50%; margin-bottom: 1.5rem; }
.lede { color: var(--muted); font-size: 1.25rem; font-weight: 500; }

/* Portfolio cards */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: var(--radius);
}
.card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: var(--surface-2);
}
.card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.card-body p { color: var(--muted); font-size: 0.975rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li {
  padding: 0.15rem 0.6rem;
  color: var(--text);
  background: var(--surface-2);
  border-radius: 999px;
  font-size: 0.75rem;
}
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: auto; }
.badge {
  padding: 0.15rem 0.6rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; font-size: 0.95rem; }

/* Hire and contact */
.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover, .button:focus-visible { color: var(--bg); filter: brightness(1.1); }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { margin-bottom: 0.5rem; }

/* Legal pages */
.legal { padding: 3rem 0 4rem; }
.legal h2 { margin-top: 2rem; font-size: 1.125rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
