/* BuildCamp house stylesheet.
   Every color, type size, and spacing value is a token declared below.
   Do not introduce one that is not. Brand navy #1F4E79 is fixed. */

:root {
  --bg: #fcfcfd;
  --surface: #f2f4f7;
  --surface-2: #e8ecf1;
  --ink: #14181f;
  --muted: #5a6472;
  --line: #dee3ea;
  --brand: #1f4e79;
  --brand-ink: #ffffff;

  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --utility: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --surface: #171d25;
    --surface-2: #1f2733;
    --ink: #e8ebef;
    --muted: #99a3b0;
    --line: #262e39;
    --brand: #8fbee6;
    --brand-ink: #0f1419;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

a { color: var(--brand); }
a:hover { opacity: 0.72; }

a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- ribbon ---------- */

/* Not sticky by default. The section names are long enough that they wrap to three
   rows on a phone, and a pinned 150px ribbon would eat a fifth of the viewport for
   the whole scroll. It pins from 780px up, where it fits on one row. */
.ribbon {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.mark {
  font-family: var(--display);
  font-size: 19.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

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

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.nav a {
  font-family: var(--utility);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav a:hover { color: var(--brand); opacity: 1; }
.nav a[aria-current="page"] { color: var(--brand); }

/* ---------- hero ---------- */

.hero {
  padding-top: 56px;
  padding-bottom: 56px;
}

.kicker {
  font-family: var(--utility);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.017em;
  text-wrap: balance;
  max-width: 20ch;
  margin-top: 20px;
  margin-bottom: 0;
}

.rule {
  width: 40px;
  height: 3px;
  background: var(--brand);
  margin-top: 24px;
  margin-bottom: 20px;
}

.lede {
  font-size: 19.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 33em;
  margin: 0;
}

.hero .actions { margin-top: 32px; }

/* ---------- sections ---------- */

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}

.label {
  font-family: var(--utility);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 0;
  padding-top: 4px;
}

.col > :first-child { margin-top: 0; }
.col > :last-child { margin-bottom: 0; }

.prose { max-width: 34em; }

h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin-top: 0;
  margin-bottom: 16px;
}

h3 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin-top: 0;
  margin-bottom: 8px;
}

p { margin-top: 0; margin-bottom: 16px; }
.muted { color: var(--muted); }

.note {
  font-size: 15.5px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 0;
}

/* ---------- the 0 to 10 ladder ---------- */

.ladder {
  display: grid;
  gap: 24px;
  max-width: 34em;
}

.rung {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.score {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.rung p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 0;
}

/* ---------- stacked items ---------- */

.items {
  display: grid;
  gap: 32px;
  max-width: 34em;
}

.item {
  border-top: 2px solid var(--brand);
  padding-top: 16px;
}

.item p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 0;
}

.terms {
  display: grid;
  gap: 24px;
  margin: 0;
  max-width: 34em;
}

.terms dt {
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.005em;
}

.terms dd {
  margin-top: 4px;
  margin-bottom: 0;
  margin-left: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- the two offerings ---------- */

.offers {
  display: grid;
  gap: 16px;
  max-width: 34em;
}

.offer {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 24px;
  text-decoration: none;
  color: var(--ink);
}

.offer:hover { border-color: var(--brand); opacity: 1; }

.offer h3 {
  color: var(--brand);
  font-size: 17px;
  margin-bottom: 8px;
}

.offer .who {
  font-family: var(--utility);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin-bottom: 12px;
}

.offer p {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 0;
}

.offer .more {
  display: block;
  margin-top: 16px;
  color: var(--brand);
  font-size: 15.5px;
  font-weight: 550;
}

/* ---------- audience blocks inside a page ---------- */

.split {
  display: grid;
  gap: 32px;
  max-width: 34em;
}

.split h3 {
  border-top: 2px solid var(--brand);
  padding-top: 16px;
}

/* ---------- contact ---------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  max-width: 34em;
}

.contact-line {
  font-size: 19.5px;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.contact-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-decoration: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 20px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--brand);
  font-size: 15.5px;
  font-weight: 550;
  text-decoration: none;
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink);
}

footer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 72px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ---------- wide ---------- */

@media (min-width: 780px) {
  /* type steps rather than interpolating, so every rendered size stays on the
     scale at every viewport width */
  h1 { font-size: 46px; }
  h1.sub { font-size: 34px; }

  .ribbon { position: sticky; top: 0; z-index: 10; }

  .row {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 0 40px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .offers { grid-template-columns: 1fr 1fr; max-width: none; }
}
