:root {
  --bg: #fafaf8;
  --fg: #1c1c1a;
  --muted: #6b6b66;
  --line: #e4e4de;
  --card: #ffffff;
  --accent: #2f6f4e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121211;
    --fg: #ecece6;
    --muted: #9a9a92;
    --line: #2a2a27;
    --card: #1a1a18;
    --accent: #7fc9a0;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

header { padding: 72px 0 48px; }

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bio {
  max-width: 34rem;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.125rem;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.links a:hover { text-decoration: underline; }

h2 {
  margin: 0 0 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.shot {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--line);
}

.shot.placeholder {
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--muted);
  font: 500 0.875rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.body { padding: 16px 18px 18px; }

.body h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
}

.body p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tags {
  margin: 0;
  color: var(--muted);
  font: 0.75rem ui-monospace, SFMono-Regular, Menlo, monospace;
}

.more {
  margin: 32px 0 0;
  color: var(--muted);
}

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

footer {
  margin-top: 64px;
  padding: 24px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
