:root {
  --ink: #082f49;
  --wine: #881337;
  --paper: #fff;
  --muted: #52616b;
  --line: #d8dfe2;
  --serif: "Playfair Display", Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.8;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  color: var(--wine);
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #0284c7;
  outline-offset: 5px;
}
.wrap {
  width: min(1160px, calc(100% - 64px));
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 27px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.3;
}
.brand span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.brand strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}
.site-header nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
}
.site-header nav a {
  text-decoration: none;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 75px;
  padding-block: 76px 82px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.19em;
  font-weight: 600;
  margin: 0 0 22px;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.16;
}
h1 {
  font-size: clamp(44px, 4.6vw, 64px);
  letter-spacing: -0.035em;
  margin: 0 0 25px;
}
h2 {
  font-size: 40px;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}
h3 {
  font-size: 25px;
  margin: 14px 0;
}
.hero-copy > p:not(.eyebrow):not(.small) {
  max-width: 470px;
  color: var(--muted);
}
.hero-copy .lede {
  font-size: 20px;
  color: var(--ink) !important;
  line-height: 1.5;
  margin-bottom: 17px;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--wine);
  color: #fff;
  border: 1px solid var(--wine);
  padding: 14px 24px;
  font: 500 13px var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover,
button:hover {
  background: #fff;
  color: var(--wine);
}
.hero .button {
  margin-top: 18px;
}
.small {
  font-size: 11px;
  color: var(--muted);
}
.hero-image {
  margin: 0;
}
.hero-image img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.hero-image figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  padding-top: 13px;
  text-align: right;
  color: var(--muted);
}
.menu {
  background: var(--ink);
  color: #fff;
  padding: 42px 0;
}
.menu-frame {
  border: 1px solid #547080;
  padding: 44px 42px;
  text-align: center;
}
.menu h2 {
  margin-bottom: 14px;
  font-size: 42px;
}
.menu .eyebrow {
  color: #b8cbd4;
  margin-bottom: 14px;
}
.menu-intro {
  color: #c4d3dc;
  font-size: 14px;
}
.courses {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
}
.courses article {
  padding: 0 30px;
}
.courses article + article {
  border-left: 1px solid #355365;
}
.courses img {
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
}
.course-number {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #b8cbd4;
}
.courses h3 {
  font-size: 28px;
}
.courses p {
  color: #c4d3dc;
  font-size: 13px;
  line-height: 1.85;
}
.courses code {
  font-size: 10px;
  color: #b8cbd4;
}
.how {
  padding-block: 85px;
}
.how > h2 {
  max-width: 600px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-top: 38px;
}
.steps article > span {
  font-family: var(--serif);
  font-size: 25px;
  color: #9aa7ae;
}
.steps h3 {
  font-size: 23px;
}
.steps p {
  font-size: 13px;
  color: var(--muted);
}
.connect {
  padding-block: 68px;
  background: #f3f5f4;
  border-block: 1px solid var(--line);
}
.connect-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 85px;
  align-items: center;
}
.connect-grid > div > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.connect a {
  font-size: 12px;
  color: var(--ink);
}
.separator {
  margin: 0 14px;
  color: #96a5ad;
}
.connection {
  background: #fff;
  padding: 30px;
  border: 1px solid var(--line);
  min-width: 0;
}
.code-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 12px;
}
pre {
  padding: 18px;
  background: var(--ink);
  color: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 12px;
  margin: 0 0 22px;
}
.endpoint {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  margin-bottom: 23px;
}
.example {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: 8px;
}
.contribute {
  text-align: center;
  padding: 80px 0;
  max-width: 700px;
}
.contribute > p:not(.eyebrow):not(.small) {
  font-size: 14px;
  color: var(--muted);
}
.contribute > a {
  font-size: 12px;
  display: inline-block;
  margin-top: 15px;
}
footer {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px 35px;
}
footer .brand strong {
  font-size: 20px;
}
footer p,
footer > a:last-child {
  font-size: 11px;
  color: var(--muted);
}
.auth {
  padding-block: 65px 90px;
}
.card {
  width: min(440px, 100%);
  margin: auto;
  border: 1px solid var(--line);
  padding: 35px;
}
.card h1 {
  font-size: 34px;
}
.card label {
  display: block;
  font-size: 12px;
  margin: 15px 0 5px;
}
.card input {
  width: 100%;
  padding: 11px;
  border: 1px solid #aebec7;
  background: #fff;
  font: inherit;
  border-radius: 0;
}
.card button {
  width: 100%;
  margin-top: 23px;
  justify-content: center;
}
.error {
  margin-top: 10px;
  font-size: 12px;
  color: #9f1239;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
h2.try {
  font: 500 20px var(--serif);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
.auth-note {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}
.actions {
  display: flex;
  gap: 12px;
}
.actions button:first-child {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 23px;
  }
  .brand strong {
    font-size: 20px;
  }
  .site-header nav {
    gap: 18px;
    font-size: 11px;
  }
  .site-header nav a:first-child {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 45px;
  }
  .hero-copy > p:not(.eyebrow):not(.small) {
    max-width: none;
  }
  .hero-image img {
    height: 300px;
  }
  .hero-image figcaption {
    text-align: left;
  }
  .menu {
    padding-block: 22px;
  }
  .menu-frame {
    padding: 34px 23px;
  }
  .courses {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }
  .courses article {
    padding: 24px 0;
  }
  .courses article + article {
    border-left: 0;
    border-top: 1px solid #355365;
  }
  .courses p {
    max-width: 360px;
    margin-inline: auto;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .how {
    padding-block: 55px;
  }
  h2 {
    font-size: 34px;
  }
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .connect {
    padding-block: 45px;
  }
  .connection {
    padding: 23px;
  }
  .contribute {
    padding-block: 55px;
  }
  footer {
    gap: 20px;
    flex-wrap: wrap;
  }
  footer p {
    display: none;
  }
  .card {
    padding: 25px;
  }
  .auth {
    padding-block: 40px 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
