/* welfaid.com holding page. Tokens from DESIGN.md (Carbon structure, Mercury calm, deep teal). */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --canvas: #f4f7f7;
  --surface: #fcfdfd;
  --border: #d5dede;
  --text: #142224;
  --text-muted: #4f5f61;
  --brand: #0f5f66;
  --brand-hover: #0b4e54;
  --brand-subtle: #e2efef;
  --on-brand: #fcfdfd;
  --focus: #1d5bb8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0d1516;
    --surface: #142021;
    --border: #2a3b3d;
    --text: #e6eeee;
    --text-muted: #a3b3b4;
    --brand: #5fbfc3;
    --brand-hover: #7fd0d3;
    --brand-subtle: #12393c;
    --on-brand: #0b2a2c;
    --focus: #7fb0f5;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html {
  accent-color: var(--brand);
  caret-color: var(--brand);
}
::selection { background: var(--brand-subtle); color: var(--text); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--text);
  font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(48px, 12vh, 128px) 24px 64px;
}

.lockup { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 64px; }
.mark { width: 36px; height: 36px; }
.mark-tile { fill: var(--brand); }
.mark-stroke { fill: none; stroke: var(--on-brand); stroke-width: 2.65; stroke-linecap: round; stroke-linejoin: round; }
.wordmark { font-size: 26px; font-weight: 600; letter-spacing: -0.3px; }

h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
.lede { max-width: 38rem; color: var(--text-muted); }

/* The one audit trail, read left to right; wraps cleanly on a phone. */
.trail {
  list-style: none;
  margin: 40px 0;
  padding: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  border-block: 1px solid var(--border);
  font-size: 16px;
  font-weight: 600;
}
.trail li { display: inline-flex; align-items: center; white-space: nowrap; }
.trail li + li::before {
  content: "";
  width: 28px;
  height: 1px;
  margin: 0 12px;
  background: var(--brand);
}
.trail li:last-child { color: var(--brand); }
/* On a phone the trail reads top to bottom, so no connector is ever stranded at a line start. */
@media (max-width: 560px) {
  .trail { flex-direction: column; gap: 0; }
  .trail li { flex-direction: column; align-items: flex-start; }
  .trail li + li::before { width: 1px; height: 14px; margin: 4px 0 4px 7px; }
}

.scope { max-width: 38rem; color: var(--text-muted); font-size: 16px; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; }
.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 20px;
  border-radius: 4px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease-out;
}
.button:hover { background: var(--brand-hover); }
.note { color: var(--text-muted); font-size: 15px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

.foot { padding: 24px; text-align: center; color: var(--text-muted); font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
