* { box-sizing: border-box; }

:root {
  color-scheme: light;
  color: var(--guide-ink);
  background: var(--workspace-bg);
  font: 16px/1.6 system-ui, sans-serif;
  --muted: #4c5965;
  --line: #d4d9df;
  --accent: #953b32;
  --guide-ink: #242930;
  --guide-code: #e8ebee;
}

[data-theme="dark"] {
  color-scheme: dark;
  --guide-ink: #f0efeb;
  --muted: #bcc0bd;
  --line: var(--surface-line);
  --accent: #df8e84;
  --guide-code: var(--surface-muted);
}

body { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
p + p { margin-top: 12px; }

main { max-width: 830px; margin: 0 auto; padding: clamp(32px, 7vw, 76px) clamp(18px, 5vw, 40px) 70px; }
h1 { font-size: clamp(2.15rem, 5vw, 3.2rem); line-height: 1.13; letter-spacing: -0.045em; }
.intro > p { max-width: 58ch; margin-top: 14px; color: var(--muted); }
.intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 21px 0; }
.button { display: inline-flex; padding: 8px 15px; border-radius: var(--pill-radius); color: var(--action-ink); background: var(--action-fill); text-decoration: none; font-weight: 650; }
.button:hover { background: var(--action-hover); }
.intro-note, .reference { font-size: 0.94rem; }
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  margin: 30px 0 34px;
  border: 1px solid var(--surface-line);
  border-radius: var(--group-radius);
  background: var(--surface-bg);
  box-shadow: var(--surface-shadow);
}
nav a { padding: 5px 12px; border-radius: var(--pill-radius); color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); background: var(--surface-muted); }

section { margin-bottom: 38px; scroll-margin-top: 24px; }
h2 { font-size: 1.55rem; line-height: 1.22; letter-spacing: -0.026em; }
ol { padding-left: 1.7rem; margin-top: 22px; }
li { padding-left: 7px; margin-bottom: 28px; }
li::marker { color: var(--accent); font-weight: 700; }
h3 { font-size: 1.14rem; letter-spacing: -0.012em; line-height: 1.35; margin-bottom: 6px; }
li p, .next p { max-width: 66ch; }
figure { margin: 17px 0 0; width: fit-content; max-width: 100%; }
figure img { display: block; width: auto; height: auto; max-width: 100%; border: 1px solid var(--surface-line); border-radius: var(--group-radius); box-shadow: var(--surface-shadow); }
.phone { max-width: 225px; }
.look-for { margin-top: 12px; border-left: 3px solid var(--accent); padding-left: 10px; }

details { max-width: 66ch; margin-top: 13px; padding: 10px 13px; border: 1px solid var(--surface-line); background: var(--surface-bg); border-radius: var(--group-radius); }
summary { cursor: pointer; }
details p { margin-top: 10px; }
.next { border-top: 1px solid var(--line); padding-top: 24px; }
.next h2 + p { margin-top: 10px; }
code { font-size: 0.92em; background: var(--guide-code); padding: 1px 4px; overflow-wrap: anywhere; }

@media (min-width: 660px) {
  .with-phone { display: grid; grid-template-columns: minmax(0, 1fr) 225px; gap: 20px; }
  .with-phone figure { margin-top: 0; }
}

.hosting-terms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr));
  gap: 9px;
  margin: 14px 0;
}
.hosting-terms > div, .enrollment-checklist li {
  padding: 11px 14px;
  border: 1px solid var(--surface-line);
  border-radius: var(--group-radius);
  background: var(--surface-bg);
}
.hosting-terms dt { font-weight: 700; }
.hosting-terms dd { margin: 3px 0 0; color: var(--muted); font-size: .94rem; }
.enrollment-guide .intro { margin-bottom: 32px; }
.enrollment-checklist { display: grid; gap: 9px; padding: 0; margin: 14px 0; list-style: none; }
.enrollment-checklist li { margin: 0; padding: 0; }
.enrollment-checklist label { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; cursor: pointer; }
.enrollment-checklist input { flex: none; width: 17px; height: 17px; margin: 4px 0 0; accent-color: var(--accent); }
.enrollment-checklist input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
