:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-alt: #eef4fb;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --danger: #ef4444;
  --success: #16a34a;
  --border: #d1d5db;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  line-height: 1.6;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.site-header,
.site-footer {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

.hero,
.form-card,
.dashboard-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.hero h1,
.form-card h1,
.dashboard-panel h1 {
  margin-top: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button,
.button-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button {
  background: var(--primary);
  color: #fff;
}

.button-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.form-card label,
.form-card dt {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.form-card input,
.form-card select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font: inherit;
}

.form-card button {
  margin-top: 1.25rem;
  width: 100%;
}

.messages {
  margin-bottom: 1rem;
}

.alert {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.alert.alert-danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
.alert.alert-warning {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.alert.alert-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.summary-list {
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.summary-list dt {
  font-weight: 700;
  margin-top: 1rem;
}

.summary-list dd {
  margin: 0.25rem 0 0;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 1.25rem;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .container {
  padding: 1rem 0;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
