:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --text: #181a1e;
  --muted: #656b75;
  --border: #dfe2e7;
  --accent: #3451d1;
  --accent-hover: #293fa8;
  --accent-soft: #eef1ff;
  --warning-bg: #fff8e6;
  --warning-border: #e8c76d;
  --error-bg: #fff0f0;
  --error-border: #e8a1a1;
  --success-bg: #ecf8f1;
  --success: #24734b;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
.site-header { background: rgb(255 255 255 / 92%); border-bottom: 1px solid var(--border); }
.header-inner, main, .site-footer { width: min(100% - 40px, 960px); margin-inline: auto; }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--text); font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
nav { display: flex; align-items: center; gap: 20px; }
nav a, .link-button { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; }
nav a:hover, .link-button:hover { color: var(--text); }
nav form { margin: 0; }

main { flex: 1; padding-block: 64px 80px; }
h1, h2, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; line-height: 1.12; }
h1 { margin-bottom: 18px; font-size: clamp(36px, 6vw, 54px); font-weight: 650; }
h2 { margin-bottom: 10px; font-size: 22px; font-weight: 650; }
.kicker { margin-bottom: 14px; color: var(--accent); font-size: 13px; font-weight: 650; }
.hero { max-width: 760px; padding-block: 26px 70px; }
.hero .lede, .page-head p, .center-card p { color: var(--muted); font-size: 17px; }
.hero .lede { max-width: 650px; margin-bottom: 28px; font-size: 19px; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button.secondary:hover { background: #f1f3f6; border-color: #cfd3da; }

.setup-panel, .center-card, .repo-list { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 1px 2px rgb(24 26 30 / 5%); }
.setup-panel { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(340px, 1.4fr); gap: 32px; align-items: center; padding: 28px; }
.setup-panel p { margin-bottom: 0; color: var(--muted); }
.command { margin: 0; padding: 18px 20px; overflow-x: auto; border-radius: 7px; background: #202228; color: #f2f3f5; font-size: 14px; line-height: 1.7; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--border); }
.principles article { padding: 24px 28px 0 0; }
.principles article + article { padding-left: 28px; border-left: 1px solid var(--border); }
.principles strong { display: block; margin-bottom: 7px; font-size: 14px; }
.principles p { color: var(--muted); }

.page-head { max-width: 660px; margin-bottom: 32px; }
.page-head.compact { margin-top: 48px; margin-bottom: 18px; }
.page-head h1, .center-card h1 { font-size: 34px; }
.policy-page { max-width: 720px; }
.policy-page h1 { font-size: 34px; }
.policy-page p, .policy-page li { font-size: 16px; }
.policy-page ol { margin: 24px 0; padding-left: 24px; }
.policy-page li { margin-bottom: 18px; padding-left: 8px; }
.policy-signoff { margin-top: 32px; }
.repo { min-height: 72px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.repo:last-child { border-bottom: 0; }
.repo-details { min-width: 0; }
.repo b { font-weight: 600; }
.repo small { display: block; margin-top: 2px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.pill { flex: none; margin-left: auto; padding: 4px 9px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 12px; font-weight: 600; }
.release.likely { box-shadow: inset 3px 0 var(--accent); }
.release .button { flex: none; margin-left: auto; }

.actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.actions form { margin: 0; }
.notice { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.notice p { margin: 4px 0 0; color: var(--muted); }
.notice.warning { background: var(--warning-bg); border-color: var(--warning-border); }
.notice.error { background: var(--error-bg); border-color: var(--error-border); }

.center-card { max-width: 520px; margin: 24px auto; padding: 34px; }
.code-form { display: grid; gap: 9px; margin-top: 26px; }
.code-form label { font-size: 13px; font-weight: 600; }
.code-form input { width: 100%; margin-bottom: 8px; padding: 13px 14px; border: 1px solid #c9cdd4; border-radius: 7px; background: #fff; color: var(--text); font: 600 24px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; outline: none; }
.code-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.status-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-weight: 700; }

.site-footer { display: flex; justify-content: space-between; padding-block: 24px 32px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }

@media (max-width: 700px) {
  .header-inner, main, .site-footer { width: min(100% - 28px, 960px); }
  main { padding-block: 36px 56px; }
  .hero { padding-block: 16px 50px; }
  .setup-panel, .principles { grid-template-columns: 1fr; }
  .principles article, .principles article + article { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--border); }
  .principles article:last-child { border-bottom: 0; }
  .center-card { margin-top: 0; padding: 24px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button, .actions form, .actions form .button { width: 100%; }
  .repo.release { align-items: flex-start; flex-direction: column; }
  .release .button { width: 100%; margin-left: 0; }
  .site-footer { gap: 8px; flex-direction: column; }
}
