:root {
  color-scheme: light;
  --bg: #f3f4f1;
  --ink: #20242b;
  --muted: #68717c;
  --line: #d5d9d1;
  --panel: #ffffff;
  --panel-soft: #f8f9f5;
  --green: #16744f;
  --blue: #2859c5;
  --amber: #a45d12;
  --shadow: 0 14px 34px rgba(32, 36, 43, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  letter-spacing: 0;
}

.topbar p,
.overview p,
.studio-card p {
  color: var(--muted);
}

.toplinks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-link,
.studio-card a {
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  padding: 9px 12px;
  text-decoration: none;
  font-weight: 800;
}

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.overview {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 18px;
  margin-bottom: 18px;
}

.overview p {
  margin-top: 6px;
  max-width: 720px;
}

.stat {
  min-width: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 800;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.studio-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 16px;
}

.studio-card h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0;
}

.studio-card code {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef4f1;
  color: var(--green);
  padding: 4px 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.studio-card a {
  width: fit-content;
  align-self: end;
  background: var(--blue);
}

@media (max-width: 980px) {
  .studio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar,
  .overview {
    flex-direction: column;
    align-items: flex-start;
  }

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

  main {
    padding: 12px;
  }

  .toplinks {
    width: 100%;
  }
}
