/* Colors come from theme/themes.css (the Hub's themes); this file only uses its variables. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(/fonts/inter-latin-700-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sub-background);
  color: var(--sub-text);
  font: 400 1rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
::selection { background: var(--sub-selection); }
a { color: var(--sub-link); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--sub-focus-ring); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin: 0 0 1rem; }
h2 { font-size: 1.5rem; font-weight: 600; margin: 2.5rem 0 0.75rem; }
h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 0.35rem; }
p, ul { margin: 0 0 1rem; }
code { font-size: 0.9em; background: var(--sub-control-fill); padding: 0.1em 0.35em; border-radius: 4px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--sub-raised); padding: 0.5rem 0.75rem; z-index: 10; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--sub-separator); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 44px; width: auto; }
.logo-dark { display: none; }
:root[data-scheme="dark"] .logo-light { display: none; }
:root[data-scheme="dark"] .logo-dark { display: inline; }
@media (prefers-color-scheme: dark) {
  :root:not([data-scheme]) .logo-light { display: none; }
  :root:not([data-scheme]) .logo-dark { display: inline; }
}
.site-nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a:not(.button) { color: var(--sub-text-secondary); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:not(.button):hover { color: var(--sub-text); }

.button {
  display: inline-block;
  background: var(--sub-accent);
  color: var(--sub-on-accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
}
.button:hover { background: var(--sub-accent-strong); }
.button.secondary { background: var(--sub-control-fill); color: var(--sub-text); }
.button.secondary:hover { background: var(--sub-control-fill-strong); }

/* Home */
.hero { padding: 4.5rem 0 3rem; }
.hero p.lede { font-size: 1.2rem; color: var(--sub-text-secondary); max-width: 40rem; }
.actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.eyebrow { color: var(--sub-accent); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 0.75rem; }
.section { padding: 2.5rem 0; border-top: 1px solid var(--sub-separator); }
.section > .wrap > h2:first-child { margin-top: 0; }
.section-intro { color: var(--sub-text-secondary); max-width: 44rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.card { background: var(--sub-surface); border: 1px solid var(--sub-separator); border-radius: 12px; padding: 1.25rem; }
.card p { color: var(--sub-text-secondary); margin: 0; font-size: 0.95rem; }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 1.5rem; }
.steps li { counter-increment: step; background: var(--sub-surface); border: 1px solid var(--sub-separator); border-radius: 12px; padding: 1.25rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--sub-accent-subtle); color: var(--sub-accent); font-weight: 700; margin-bottom: 0.5rem; }
.steps p { color: var(--sub-text-secondary); margin: 0; font-size: 0.95rem; }
.cta { text-align: center; padding: 3.5rem 0; }

/* Text pages */
.page { padding: 3rem 0 4rem; }
.page .updated { color: var(--sub-text-secondary); font-size: 0.95rem; }
.page li { margin-bottom: 0.4rem; }
.callout { background: var(--sub-accent-subtle); border-radius: 12px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout p:last-child { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--sub-separator); color: var(--sub-text-secondary); font-size: 0.9rem; padding: 2rem 0; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer a { color: var(--sub-text-secondary); }
.site-footer a:hover { color: var(--sub-text); }

/* Blog placeholder */
.soon { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 2rem 16px; }
.soon img.mark { width: 64px; height: 64px; margin-bottom: 1.5rem; }
.soon p { color: var(--sub-text-secondary); max-width: 32rem; margin: 0 auto 1.5rem; }
.cta .section-intro { margin: 0 auto; }
.cta .actions { justify-content: center; }
.soon .actions { justify-content: center; }
