/* youlink website. One stylesheet, system fonts, no external requests. Light and dark follow the device. */

:root {
  --page: #f2f5f9;
  --surface: #ffffff;
  --ink: #16202e;
  --ink-soft: #46546a;
  --rule: #d5dde8;
  --lamp: #e0961f;
  --lamp-ink: #2a1a00;
  --link: #1f45b0;
  --focus: #1f45b0;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --gutter: clamp(1rem, 5vw, 2rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0f1626;
    --surface: #17203a;
    --ink: #eaf0fa;
    --ink-soft: #a5b2c8;
    --rule: #2a3552;
    --lamp: #f2b658;
    --lamp-ink: #2a1a00;
    --link: #9db8ff;
    --focus: #f2b658;
  }
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--link); }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
  z-index: 10;
}
.skip-link:focus { top: 0.5rem; }

.masthead, main, .colophon {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.masthead { padding-block: 1.25rem 0; }

.wordmark {
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* The headline carries the page: large, heavy, tight. */
.hero { padding-block: clamp(2rem, 8vw, 4.5rem) clamp(1.5rem, 5vw, 2.5rem); }
.hero-compact { padding-block: clamp(1.5rem, 5vw, 3rem) 1rem; }

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 7.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-compact h1 { font-size: clamp(1.8rem, 5.6vw, 2.6rem); }

.lede {
  margin: 1.25rem 0 0;
  max-width: 34rem;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.5;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

.block { padding-block: 1.75rem; border-top: 1px solid var(--rule); }
.block[hidden] { display: none; }

/* Three homes joined by a line; one window lit in each. */
.homes { display: block; width: 100%; max-width: 38rem; height: auto; margin-top: 2.25rem; color: var(--ink-soft); }
.homes-line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.home-body { fill: var(--surface); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.window { fill: var(--lamp); }

@media (prefers-reduced-motion: no-preference) {
  .window { animation: light-up 900ms ease-out both; }
  .home-two .window { animation-delay: 500ms; }
  .home-three .window { animation-delay: 1000ms; }
}

@keyframes light-up {
  from { fill: var(--surface); }
  to { fill: var(--lamp); }
}

.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin-bottom: 0.4rem; }

.steps { margin: 0; padding-left: 1.4rem; }
.steps li { margin-bottom: 0.6rem; padding-left: 0.2rem; }

.facts { margin: 0 0 1.25rem; }
.facts div { padding-block: 0.5rem; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--ink-soft); font-size: 0.95rem; }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.copy-status { color: var(--ink-soft); font-size: 0.95rem; }

.downloads { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }

.button {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 0.6rem;
  background: var(--lamp);
  color: var(--lamp-ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.button small { font-size: 0.85rem; font-weight: 500; }
.button.is-pending {
  background: transparent;
  border-style: dashed;
  border-color: var(--rule);
  color: var(--ink-soft);
  cursor: default;
}

.colophon { padding-block: 2rem 3rem; color: var(--ink-soft); font-size: 0.95rem; }
.colophon p { max-width: 34rem; }
