:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #cbd5e1;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --on-primary: #ffffff;
  --tag-bg: #dbeafe;
  --tag-text: #1e3a8a;
  --tag-t-bg: #fef3c7;
  --tag-t-text: #78350f;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111b2e;
    --text: #e5ecf6;
    --muted: #9fb0c8;
    --border: #28364f;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --on-primary: #06101f;
    --tag-bg: #1e3a8a;
    --tag-text: #dbeafe;
    --tag-t-bg: #78350f;
    --tag-t-text: #fef3c7;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}
.top, main, .foot { width: min(1040px, 100% - 32px); margin-inline: auto; }
.top { display: flex; align-items: center; gap: 0.6rem; padding-block: 1rem; }
.logo { display: inline-flex; }
.brand { font-weight: 700; font-size: 1.1rem; }
.hero { padding-block: 2.5rem 1.5rem; }
h1 { margin: 0 0 0.5rem; font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.15; }
.lead { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.cards {
  list-style: none;
  margin: 1rem auto 2rem;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card h2 { margin: 0; font-size: 1.25rem; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); }
.card .btn { margin-top: auto; }
.card .addr { font-size: 0.85rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.tag {
  display: inline-block;
  vertical-align: middle;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 0.75rem;
  font-weight: 600;
}
.tag-teacher { background: var(--tag-t-bg); color: var(--tag-t-text); }
.btn {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-secondary { background: transparent; color: var(--primary); }
.btn-secondary:hover { background: var(--tag-bg); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.foot { padding-block: 1rem 2rem; color: var(--muted); font-size: 0.9rem; }
.foot a { color: var(--primary); }
