:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --text: #172033;
  --muted: #5f6b7a;
  --line: #d9e1ec;
  --panel: #ffffff;
  --primary: #1769e0;
  --primary-dark: #0f4fa8;
  --warning-bg: #fff7e6;
  --warning-line: #f0c15b;
  --error-bg: #fff0f0;
  --error-line: #e57474;
}

* {
  box-sizing: border-box;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 48px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

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

nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.panel,
.card,
.notice {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel {
  padding: clamp(28px, 6vw, 56px);
  margin-bottom: 24px;
}

.panel.compact {
  padding: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-photo {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  background: #e9eef7;
}

.profile-photo.placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 2.5rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
}

.button:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: #e9eef7;
  color: var(--text);
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.notice {
  padding: 20px;
}

.notice {
  margin-bottom: 24px;
}

.notice.warning {
  background: var(--warning-bg);
  border-color: var(--warning-line);
}

.notice.error {
  background: var(--error-bg);
  border-color: var(--error-line);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

code {
  overflow-wrap: anywhere;
}

pre {
  max-height: 560px;
  overflow: auto;
  padding: 14px;
  background: #101826;
  color: #edf3ff;
  border-radius: 6px;
  white-space: pre-wrap;
}

ul {
  margin-bottom: 0;
}

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

  .grid,
  .grid.two {
    grid-template-columns: 1fr;
  }

  .shell {
    margin-top: 24px;
  }

  .profile-header {
    align-items: flex-start;
  }

  .profile-photo {
    width: 72px;
    height: 72px;
  }
}
