/* ---------------------------------------------------------------
   CBTLAB — one typeface, one accent, no imagery.
   Hierarchy is size, weight and space. Nothing else.
   --------------------------------------------------------------- */

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat-var-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* the accent appears four times on this page, all of them clickable */
  --accent:      #0E4753;
  --accent-deep: #093540;

  --ink:   #14181C;
  --body:  #3D454D;
  --muted: #697079;
  --rule:  #E3E7EA;
  --paper: #FFFFFF;
  --tint:  #F6F8F9;

  --container: 1120px;
  --rail: 250px;
  --rail-gap: 60px;
  --measure: 38em;

  /* one band's padding; two adjacent bands make the section rhythm */
  --gap: clamp(44px, 7.5vw, 78px);

  --size-h1: clamp(1.75rem, 1.0rem + 2.6vw, 2.5rem);
  --size-h2: clamp(1.3125rem, 1.08rem + 0.75vw, 1.625rem);
  --size-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: 'Montserrat', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---- shell ---------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* ---- header --------------------------------------------------- */

.header { border-bottom: 1px solid var(--rule); }

.header__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}

.wordmark {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  white-space: nowrap;
}

.header__link:hover { color: var(--accent-deep); }

/* ---- bands ---------------------------------------------------- */

.band { padding-block: var(--gap); }
.band--hero { padding-block: clamp(52px, 7.5vw, 86px) var(--gap); }
.band--tint { background: var(--tint); }

/* ---- rail ----------------------------------------------------- */

.h1 {
  margin: 0 0 26px;
  font-size: var(--size-h1);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.021em;
  color: var(--ink);
}

.h2 {
  font-size: var(--size-h2);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.rail__head { margin: 0 0 20px; }

.prose { max-width: var(--measure); }

.prose p { margin: 0 0 1.15em; }
.prose p:last-child { margin-bottom: 0; }

.prose .prose__action { margin: clamp(26px, 3vw, 34px) 0 0; }

/* ---- button --------------------------------------------------- */

.button {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 2px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.button:hover { background: var(--accent-deep); }

/* ---- three positions ------------------------------------------ */

.positions {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 32px;
  row-gap: 32px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.position {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  max-width: var(--measure);
}

.position__num {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--muted);
}

.position__lead {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.position__text {
  font-size: 1rem;
  line-height: 1.6;
}

.rail__body--after { margin-top: 36px; }

/* ---- footer --------------------------------------------------- */

.footer { padding-block: 46px 58px; }

.footer__line {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer__line a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.footer__line a:hover { color: var(--accent-deep); }

/* ---- the rail engages ----------------------------------------- */

@media (min-width: 900px) {
  .rail {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: var(--rail-gap);
    row-gap: clamp(28px, 3.4vw, 44px);
    align-items: start;
  }

  .h1          { grid-column: 1 / -1; margin: 0; }
  .rail__head  { grid-column: 1; margin: 0; }
  .rail__body  { grid-column: 2; }

  .positions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
  }

  .position { max-width: none; }

  .rail__body--after { grid-column: 2; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
