:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e4e7ec;
  --primary: #155eef;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
}

header {
  margin-bottom: 28px;
}

.brand {
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0;
  font-size: clamp(36px, 6vw, 60px);
}

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

.user,
.signin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.user div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label,
.tag {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.local {
  padding: 6px 10px;
  border: 1px solid #f79009;
  border-radius: 999px;
  color: #b54708;
  font-size: 11px;
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.card p {
  min-height: 72px;
  color: var(--muted);
  line-height: 1.7;
}

.card.muted {
  opacity: .65;
}

.primary,
.secondary {
  display: inline-block;
  padding: 10px 15px;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
}

.primary {
  background: var(--primary);
  color: white;
}

.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

footer {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

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