/* styles.css: the public setup site (setup.fde-residency.com). Same tokens and fonts as the
   course portal (app/pages/src/assets/tokens.css), light by default, dark with the system. */

@font-face {
  font-family: "Anthropic Sans";
  src: url("fonts/AnthropicSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Anthropic Serif";
  src: url("fonts/AnthropicSerifDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-000: 0 0% 100%;
  --bg-100: 48 33% 97%;
  --bg-200: 53 29% 94.5%;
  --border-100: 51 17% 84.5%;
  --border-200: 51 14% 76%;
  --text-000: 60 3% 8%;
  --text-100: 60 3% 14%;
  --text-200: 55 4% 32%;
  --text-300: 48 5% 40%;
  --accent: 15 63% 60%;
  --accent-strong: 15 54% 51%;
  --link: 15 58% 44%;
  --charm: 24 80% 33%;
  --charm-soft: 32 78% 92%;
  --oat: 40 33% 84%;
  --font-ui: "Anthropic Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Anthropic Serif", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px hsl(var(--text-000) / 0.06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-000: 60 2% 18%;
    --bg-100: 60 3% 14.5%;
    --bg-200: 30 3% 12%;
    --border-100: 60 2% 25%;
    --border-200: 60 2% 32%;
    --text-000: 48 25% 92%;
    --text-100: 53 12% 87%;
    --text-200: 55 9% 74%;
    --text-300: 55 7% 62%;
    --accent: 15 63% 62%;
    --accent-strong: 15 60% 68%;
    --link: 15 63% 62%;
    --charm: 27 73% 67%;
    --charm-soft: 27 34% 19%;
    --oat: 39 22% 30%;
    --shadow: 0 1px 2px hsl(0 0% 0% / 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: hsl(var(--bg-100));
  color: hsl(var(--text-200));
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a { color: hsl(var(--link)); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: hsl(var(--accent-strong)); }

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  color: hsl(var(--text-000));
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(34px, 5vw, 46px); line-height: 1.1; }
h2 { font-size: 24px; line-height: 1.25; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 5px;
  background: hsl(var(--bg-200));
  color: hsl(var(--text-100));
}

strong { color: hsl(var(--text-000)); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--accent));
  margin: 0 0 12px;
}

/* top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 24px;
  background: hsl(var(--bg-100) / 0.9);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid hsl(var(--border-100));
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: hsl(var(--text-000));
  text-decoration: none;
}
.brand-mark { width: 22px; height: 22px; }
.brand-name { font-weight: 500; font-size: 17px; white-space: nowrap; }
.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 7px 2px;
  border-radius: 6px;
  background: hsl(var(--charm) / 0.14);
  color: hsl(var(--charm));
  border: 1px solid hsl(var(--charm) / 0.3);
}
.topnav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.topnav a { color: hsl(var(--text-200)); text-decoration: none; }
.topnav a:hover { color: hsl(var(--text-000)); text-decoration: underline; }

/* page */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}
.lede { font-size: 19px; line-height: 1.5; color: hsl(var(--text-100)); margin: 14px 0 36px; }

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 24px 24px 20px;
  background: hsl(var(--bg-000));
  border: 1px solid hsl(var(--border-100));
  border-left: 3px solid hsl(var(--accent));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 22px;
  color: hsl(var(--bg-000));
  background: hsl(var(--accent));
}
.step h2 { margin-bottom: 8px; }
.note { font-size: 14px; color: hsl(var(--text-300)); }
.sha code { font-size: 11px; word-break: break-all; }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  margin: 6px 0 14px;
  border-radius: var(--radius-sm);
  background: hsl(var(--accent));
  color: hsl(0 0% 100%);
  font-weight: 550;
  text-decoration: none;
  border: 1px solid hsl(var(--accent-strong));
  transition: transform 120ms ease, background 120ms ease;
}
.btn:hover { background: hsl(var(--accent-strong)); color: hsl(0 0% 100%); transform: translateY(-1px); }
.btn-meta { font-family: var(--font-mono); font-size: 12px; opacity: 0.85; font-weight: 400; }
.btn-secondary {
  background: hsl(var(--bg-000));
  color: hsl(var(--text-000));
  border-color: hsl(var(--border-200));
}
.btn-secondary:hover { background: hsl(var(--bg-200)); color: hsl(var(--text-000)); }

/* cards */
.card {
  margin-top: 20px;
  padding: 24px;
  background: hsl(var(--bg-000));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h2 { margin-bottom: 8px; }
.card-alert {
  background: hsl(var(--charm-soft));
  border-color: hsl(var(--oat));
  border-left: 3px solid hsl(var(--charm));
}
.card-alert h2 { color: hsl(var(--charm)); }
.card-alert code { background: hsl(var(--bg-000) / 0.6); }

/* requirements page */
.section { margin-top: 36px; }
.section h2 { margin-bottom: 10px; }
.section ul { margin: 0 0 12px; padding-left: 22px; }
.section li { margin-bottom: 6px; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 12px;
  font-size: 15px;
  background: hsl(var(--bg-000));
  border: 1px solid hsl(var(--border-100));
  border-radius: var(--radius-sm);
  overflow: hidden;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-top: 1px solid hsl(var(--border-100));
}
th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--text-300));
  font-weight: 400;
  border-top: 0;
  background: hsl(var(--bg-200));
}
td:first-child { width: 34%; color: hsl(var(--text-000)); font-weight: 550; }
.hosts td:last-child { font-family: var(--font-mono); font-size: 13px; line-height: 1.7; }

/* footer */
.foot {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  font-size: 14px;
  color: hsl(var(--text-300));
  border-top: 1px solid hsl(var(--border-100));
}

@media (max-width: 560px) {
  .topnav { display: none; }
  .step { grid-template-columns: 36px 1fr; gap: 12px; padding: 18px 16px 18px 14px; }
  .num { width: 32px; height: 32px; font-size: 18px; }
  td:first-child { width: 40%; }
}

@media print {
  .topbar, .btn, .topnav { display: none; }
  body { background: #fff; color: #111; }
  .step, .card, table { box-shadow: none; }
  a { color: #111; }
}
