:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #5f6166;
  --line: #d9d9d6;
  --paper: #f6f7f8;
  --surface: #ffffff;
  --red: #e62117;
  --red-dark: #b91c14;
  --blue: #1f5d8f;
  --green: #287a58;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: #143d60; }

.site-header,
footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header { min-height: 76px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark,
.youtube-mark {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--red);
  border-radius: 6px;
}

.brand-mark { width: 34px; height: 24px; }
.youtube-mark { width: 46px; height: 32px; }

.brand-mark span,
.youtube-mark span {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid white;
  margin-left: 2px;
}

nav { display: flex; gap: 24px; }
nav a { color: var(--ink); font-weight: 650; text-decoration: none; }
nav a[aria-current="page"] { color: var(--red-dark); }

main { background: var(--surface); border-top: 1px solid var(--line); }

.hero,
.band,
.policy {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 590px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 72px 0 92px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2 { margin: 0; line-height: 1.12; letter-spacing: 0; }
h1 { max-width: 900px; font-size: clamp(48px, 7vw, 86px); }
h2 { font-size: clamp(28px, 4vw, 44px); }

.lede {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.5;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-youtube { margin-top: 28px; }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 750;
  text-decoration: none;
}
.button.primary { color: white; background: var(--ink); }
.button.primary:hover { background: #353535; }
.button.secondary { color: var(--ink); background: white; }

.band { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-copy { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: 64px; }
.section-copy > p { margin: 0; color: var(--muted); font-size: 18px; }

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 56px 0 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  list-style: none;
}
.workflow li { min-height: 190px; padding: 24px; background: white; }
.workflow strong { display: block; margin-bottom: 10px; font-size: 19px; }
.workflow span { color: var(--muted); }

.api-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.api-band p:last-child { color: var(--muted); font-size: 18px; }
.youtube-lockup { display: flex; align-items: center; gap: 14px; font-size: 21px; font-weight: 800; }

.details { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: 150px 1fr; padding: 13px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-weight: 700; }
dd { margin: 0; }

.policy-shell { padding: 70px 0 90px; }
.policy { max-width: 850px; }
.policy h1 { margin-bottom: 24px; font-size: clamp(46px, 7vw, 74px); }
.policy h2 { margin-top: 52px; font-size: 27px; }
.policy p { margin: 16px 0 0; }
.policy .summary { max-width: 760px; color: var(--muted); font-size: 20px; }
.policy code { word-break: break-word; }
.policy-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); }

footer { min-height: 104px; color: var(--muted); font-size: 14px; }
footer span:nth-child(2) { display: flex; gap: 18px; }

@media (max-width: 760px) {
  .site-header { min-height: 90px; align-items: flex-start; padding: 20px 0; }
  .brand { max-width: 220px; }
  nav { gap: 14px; }
  .hero { min-height: 520px; }
  h1 { font-size: 48px; }
  .lede { font-size: 19px; }
  .section-copy, .api-band, .details { grid-template-columns: 1fr; gap: 28px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow li { min-height: auto; }
  dl div { grid-template-columns: 1fr; gap: 4px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; gap: 8px; }
}
