/*
 * Shared styles for the public front door (index.html, masterclass.html).
 * Brand: three colors (cyan #00d9ff, ink #161519, white), cyan only on what
 * you can act on or what has focus, Red Hat Display Bold for headings, a
 * system sans-serif for body, one radius scale (12 / 8 / pill).
 */

@font-face {
  font-family: 'Red Hat Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/red-hat-display-latin-700-normal.woff2') format('woff2');
}

:root {
  --cyan: #00d9ff;
  --ink: #161519;
  --white: #ffffff;
  --surface: #1d1c22;
  --surface-2: #232229;
  --line: rgba(255, 255, 255, 0.12);
  --soft: rgba(255, 255, 255, 0.78);
  --mut: rgba(255, 255, 255, 0.64);
  --r-box: 12px;
  --r-ctl: 8px;
  --r-pill: 999px;
  --font-display:
    'Red Hat Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica,
    Arial, sans-serif;
  --font-body:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --font-mono: 'SF Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 680px) {
  .wrap {
    padding: 0 24px;
  }
}
a {
  color: var(--cyan);
  text-underline-offset: 3px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}
b {
  font-weight: 700;
  color: var(--white);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--cyan);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--r-ctl);
  font-weight: 700;
  z-index: 10;
}
.skip:focus {
  left: 16px;
}

/* top bar */
.topbar {
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span {
  color: var(--mut);
}
.topbar nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.topbar nav a {
  font-size: 15px;
  text-decoration: none;
  display: inline-block;
  padding: 6px 0;
}
.topbar nav a:hover {
  text-decoration: underline;
}

/* hero */
header.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 680px) {
  header.hero {
    padding: 88px 0 72px;
  }
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 .acc,
h2 .acc {
  color: var(--cyan);
}
.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--soft);
  margin-top: 20px;
  max-width: 640px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--r-ctl);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid var(--cyan);
}
.btn--solid {
  background: var(--cyan);
  color: var(--ink);
}
.btn--solid:hover {
  background: #5ce6ff;
}
.btn--ghost {
  background: transparent;
  color: var(--cyan);
}
.btn--ghost:hover {
  background: rgba(0, 217, 255, 0.1);
}
.aside {
  margin-top: 22px;
  font-size: 15px;
  color: var(--mut);
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 680px) {
  section {
    padding: 64px 0;
  }
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 12px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(27px, 5vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 700;
}
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.25;
}
.p {
  font-size: 17px;
  color: var(--soft);
  margin-top: 14px;
  max-width: 680px;
}

.steps {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 680px;
}
.steps li {
  list-style: none;
  position: relative;
  padding-left: 22px;
  font-size: 16.5px;
  color: var(--soft);
}
.steps li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--mut);
}

/* copy blocks */
.block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  margin-top: 22px;
  overflow: hidden;
}
.block .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.block .bar .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.block .bar .name span {
  color: var(--mut);
  font-weight: 400;
}
.copy {
  cursor: pointer;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--r-ctl);
  transition: background 0.15s;
  white-space: nowrap;
}
.copy:hover,
.copy.done {
  background: var(--cyan);
  color: var(--ink);
}
pre {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.62;
  color: var(--soft);
  padding: 18px 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 22px;
}
@media (min-width: 680px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}
.rctf {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  padding: 18px;
}
.rctf .l {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.rctf .d {
  font-size: 15px;
  color: var(--soft);
  margin-top: 6px;
}

/* catalog */
.catalog {
  list-style: none;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.catalog li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 680px) {
  .catalog li {
    grid-template-columns: 200px 1fr;
  }
}
.catalog .name {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}
.catalog .name a {
  color: var(--cyan);
}
.catalog .kind {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mut);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px 10px;
}
.catalog .what {
  font-size: 16px;
  color: var(--soft);
}

.mapimg {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  width: 100%;
  height: auto;
  display: block;
}

footer {
  padding: 48px 0 64px;
}
footer .big {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
footer .meta {
  color: var(--mut);
  font-size: 15px;
  margin-top: 16px;
}
footer .tag {
  color: var(--white);
  font-weight: 700;
  margin-top: 8px;
}
footer.center {
  text-align: center;
}
