:root {
  --bg: #0d0f14;
  --surface: #151922;
  --surface-hover: #1b2030;
  --border: #262c3b;
  --border-strong: #3a4256;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --faint: #6b7489;
  --accent: #ff6a3d;
  --live: #3ccf8e;
  --soon: #8a93a8;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f5f2;
    --surface: #ffffff;
    --surface-hover: #fbfaf8;
    --border: #e3e1dc;
    --border-strong: #c9c6bf;
    --text: #16181d;
    --muted: #555b68;
    --faint: #80869a;
    --accent: #e0491b;
    --live: #14935a;
    --soon: #80869a;
    color-scheme: light;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

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

@media (min-width: 640px) {
  .wrap {
    padding: 0 32px;
  }
}

.top {
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

main {
  flex: 1;
}

.hero {
  padding: 56px 0 48px;
}

@media (min-width: 640px) {
  .hero {
    padding: 96px 0 72px;
  }
}

.kicker {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h1 .num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

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

.section-title {
  margin: 0 0 16px;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  padding-bottom: 72px;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}

a.project:hover,
a.project:focus-visible {
  border-color: var(--border-strong);
  background: var(--surface-hover);
  transform: translateY(-2px);
}

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

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.project-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.project-icon.empty {
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-strong);
  color: var(--faint);
  font-size: 1.3rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.status.live {
  color: var(--live);
}

.status.soon {
  color: var(--soon);
}

.project h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.project p {
  margin: 0;
  color: var(--muted);
}

.project .path {
  margin-top: auto;
  padding-top: 14px;
  color: var(--faint);
  font-family: ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
}

a.project:hover .path {
  color: var(--accent);
}

.placeholder {
  border-style: dashed;
  background: transparent;
}

.foot {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 0.875rem;
}

.notfound {
  padding: 96px 0;
}

.notfound h1 {
  font-size: clamp(2.2rem, 7vw, 3.6rem);
}

.notfound .back {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.notfound .back:hover {
  border-color: var(--accent);
  color: var(--accent);
}
