:root {
  --bg: #f6f6f3;
  --surface: #ffffff;
  --text: #1b1b1a;
  --muted: #5f5f59;
  --line: #e3e3dd;
  --accent: #0f766e;
  --accent-soft: #d8f1ec;
  --warn: #a15c07;
  --warn-soft: #fbeedb;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 10px 28px -14px rgb(0 0 0 / 0.14);
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1110;
    --surface: #171a19;
    --text: #ecece9;
    --muted: #9b9b95;
    --line: #2a2e2c;
    --accent: #3fcdb9;
    --accent-soft: #143c36;
    --warn: #f0b35a;
    --warn-soft: #3a2a12;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 10px 28px -14px rgb(0 0 0 / 0.7);
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.site-header,
.site-main,
.site-footer {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

/* header */
.site-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 1.5rem 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tagline {
  color: var(--muted);
  font-size: 0.95rem;
}

/* main */
.site-main {
  flex: 1;
  padding: 1rem 0 3rem;
}

.intro { margin-bottom: 1.5rem; }

.intro h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}

/* cards */
.demo-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
}

.demo-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.demo-card[href]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .demo-card { transition: none; }
  .demo-card[href]:hover,
  .demo-card[href]:focus-visible { transform: none; }
}

/* coming soon: dashed, quiet, not clickable */
.demo-card:not([href]) {
  border-style: dashed;
  box-shadow: none;
}

.demo-card:not([href]) .card-icon { opacity: 0.6; }

.demo-card:not([href]) .card-title { color: var(--muted); }

.card-icon {
  font-size: 2rem;
  line-height: 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.card-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.card-summary {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-status {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-live .card-status {
  background: var(--accent-soft);
  color: var(--accent);
}

.status-maintenance .card-status {
  background: var(--warn-soft);
  color: var(--warn);
}

/* misc */
.message h1 { margin-top: 3rem; }

.empty { color: var(--muted); }

code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--line);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

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

/* footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
