/* Transfuse Inc. site styles. Self-contained: system fonts, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #fbfaf8;
  --surface: #ffffff;
  --text: #1b1f24;
  --muted: #4a5360;
  --border: #d9dde3;
  --accent: #1f5fa8;
  --accent-text: #ffffff;
  --focus: #b4530a;
  --max: 68rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #191d23;
    --text: #e8eaed;
    --muted: #aab2bd;
    --border: #2e353f;
    --accent: #7fb2ec;
    --accent-text: #0b1220;
    --focus: #ffb366;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (min-width: 120rem) {
  body {
    font-size: 1.1875rem;
  }
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  z-index: 10;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.wordmark {
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.wordmark span {
  font-weight: 400;
  color: var(--muted);
}

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

.site-nav a {
  color: var(--text);
  text-decoration: none;
  padding-block: 0.25rem;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Sections */

main {
  display: block;
}

section {
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

section + section {
  border-top: 1px solid var(--border);
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  max-width: 20ch;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol {
  margin: 0 0 1rem;
  max-width: 65ch;
}

.lead {
  font-size: 1.2em;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 2rem;
}

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  text-decoration: underline;
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  max-width: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

/* Legal pages */

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95em;
}

.site-footer .wrap {
  padding-block: 2rem;
}

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

.site-footer p {
  margin: 0 0 0.5rem;
}

/* Three cards side by side only when all three fit; one column below that. */
@media (min-width: 56rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
