:root {
  --background: #0e0e0d;
  --foreground: #e8e3d5;
  --muted: #8a857a;
  --rule: #2a2926;
  --rule-strong: #403e39;
  --accent: #c1432e;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  width: min(100%, 1048px);
  margin-inline: auto;
  padding: clamp(24px, 6vw, 96px) clamp(16px, 5vw, 64px);
}

.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(24px, 5vw, 48px);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--foreground);
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
}

.wordmark-dot {
  width: 0.19em;
  height: 0.19em;
  margin-inline: 0.04em;
  background: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--foreground);
  text-decoration: none;
  transition: border-color 120ms cubic-bezier(0.2, 0, 0, 1);
}

.project-card:hover {
  border-color: var(--rule-strong);
}

.project-card:focus-visible,
.wordmark:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  padding: 16px;
  font-size: 19px;
  font-weight: 500;
  text-align: center;
  transition: color 120ms cubic-bezier(0.2, 0, 0, 1);
}

.project-card:hover .project-title {
  color: var(--accent);
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding-block: 48px;
  color: var(--muted);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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