/* Supastate website. Values follow the app's design system (dark by default, light by
   prefers-color-scheme). No third-party fonts, scripts or requests. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark light;
  --canvas: #1a1b1e;
  --panel: #1e2023;
  --card: #252526;
  --raised: #303234;
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.12);
  --wash: rgb(255 255 255 / 0.03);
  --glow: rgb(255 255 255 / 0.04);
  --text-strong: #f7f8f8;
  --text: #d0d6e0;
  --text-secondary: #8a8f98;
  --accent: #e2e4e7;
  --accent-hover: #f7f8f8;
  --on-accent: #090a0b;
  --focus: #e2e4e7;
  --radius: 8px;
  --radius-large: 12px;
  --measure: 40rem;
  --page: 64rem;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #f4f4f5;
    --panel: #ffffff;
    --card: #fafafa;
    --raised: #f4f4f5;
    --border: rgb(0 0 0 / 0.08);
    --border-strong: rgb(0 0 0 / 0.12);
    --wash: rgb(0 0 0 / 0.015);
    --glow: rgb(0 0 0 / 0.015);
    --text-strong: #1b1c1f;
    --text: #282a30;
    --text-secondary: #5c5f66;
    --accent: #282a30;
    --accent-hover: #1b1c1f;
    --on-accent: #ffffff;
    --focus: #282a30;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  background-image: linear-gradient(var(--wash), transparent 28rem);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv01", "ss03";
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

a {
  color: var(--text-strong);
  text-decoration: underline;
  text-decoration-color: var(--text-secondary);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: currentcolor;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius);
  text-decoration: none;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

/* Header and footer */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-strong);
  font-weight: 590;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-strong);
}

.site-footer {
  margin-top: 5rem;
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 0.5px solid var(--border-strong);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer a:hover {
  color: var(--text-strong);
}

/* Type */

h1,
h2,
h3 {
  color: var(--text-strong);
  line-height: 1.2;
  margin: 0;
  font-weight: 590;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.65rem;
  border: 0.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 510;
}

.lede {
  max-width: 38rem;
  margin-top: 1.5rem;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text);
}

.muted {
  color: var(--text-secondary);
}

/* Home */

.hero {
  padding-top: clamp(3rem, 10vw, 6.5rem);
  padding-bottom: 1rem;
}

.hero h1 {
  max-width: 18ch;
}

.hero-note {
  max-width: 38rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.section {
  margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.section > h2 {
  margin-bottom: 0.75rem;
}

.section > p {
  max-width: var(--measure);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--panel);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-large);
  padding: 1.25rem;
  background-image: radial-gradient(24rem 14rem at 0 0, var(--glow), transparent 70%);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
}

.card ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
}

.card li + li {
  margin-top: 0.35rem;
}

.badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border: 0.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--raised);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 510;
  letter-spacing: 0;
  vertical-align: 0.1em;
}

.flow {
  display: grid;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.flow li {
  counter-increment: step;
  background: var(--panel);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-large);
  padding: 1rem;
  font-size: 0.9375rem;
}

.flow li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 510;
  font-feature-settings: "tnum";
}

.flow strong {
  display: block;
  color: var(--text-strong);
  font-weight: 590;
}

.button {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.9375rem;
  font-weight: 590;
  text-decoration: none;
}

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

/* Legal pages */

.doc {
  max-width: var(--measure);
  padding-top: clamp(2rem, 6vw, 4rem);
}

.doc h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.doc h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-top: 1.75rem;
  border-top: 0.5px solid var(--border);
}

.doc h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--raised);
  overflow-wrap: anywhere;
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-large);
}

.doc .callout h2 {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  font-size: 1.0625rem;
}

.callout > :last-child {
  margin-bottom: 0;
}

.placeholder {
  background: var(--raised);
  border: 1px dashed var(--text-secondary);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-weight: 510;
}

@media print {
  body {
    background: #fff;
    color: #000;
  }
}
