/* Internal welcome site. Plain CSS, no external resources. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f3f5f8;
  --border: #c9d1db;
  --text: #17202b;
  --muted: #4b5563;
  --link: #0a58a8;
  --accent: #0a58a8;
  --accent-text: #ffffff;
  --notice-bg: #fff6e0;
  --notice-border: #b26b00;
  --notice-text: #3d2a00;
  --badge-bg: #fdf0d2;
  --badge-text: #6b4100;
  --focus: #0a58a8;
  --code-bg: #e7ebf0;
  --radius: 10px;
  --wrap: 60rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a;
    --surface: #18202a;
    --border: #344150;
    --text: #e7ecf2;
    --muted: #aab5c3;
    --link: #8cc4ff;
    --accent: #8cc4ff;
    --accent-text: #0b1520;
    --notice-bg: #2a2110;
    --notice-border: #e0a43a;
    --notice-text: #f6e7c8;
    --badge-bg: #3a2c10;
    --badge-text: #f3cf86;
    --focus: #8cc4ff;
    --code-bg: #232d3a;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Noto Sans", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.5vw, 2.5rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; margin: 0; }
p { margin: 0 0 1em; }

a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

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

code {
  font-family: ui-monospace, "SFMono-Regular", Consolas, "DejaVu Sans Mono", monospace;
  font-size: .9em;
  background: var(--code-bg);
  padding: .1em .35em;
  border-radius: 4px;
  overflow-wrap: break-word;
}

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

/* Skip link: off-screen until focused */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-text);
  padding: .6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-top: .75rem;
  padding-bottom: .75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}
.brand img { display: block; flex: none; }
.brand-sub { font-weight: 400; color: var(--muted); }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav-list a { display: inline-block; padding: .35rem 0; }
@media (max-width: 26rem) {
  .nav-list { gap: .25rem 1rem; font-size: .95rem; }
}

/* Intro */
.intro { padding-top: 2.5rem; padding-bottom: 1rem; }
.lead { font-size: 1.2rem; max-width: 42rem; }

.notice {
  background: var(--notice-bg);
  color: var(--notice-text);
  border-left: 5px solid var(--notice-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  max-width: 42rem;
}
.notice-title { font-size: 1.05rem; margin-bottom: .3em; }
.notice p { margin: 0; }

/* Sections */
.section { padding-top: 2rem; padding-bottom: 1rem; }
.section > p { max-width: 42rem; }

/* Service cards */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.card-link { text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-link:focus-visible { outline: none; }
/* Whole card is clickable; the link text stays the accessible name. */
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-host { color: var(--muted); font-size: .95rem; margin-bottom: .6em; }
.card p:last-child { margin-bottom: 0; }

.badge {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
  white-space: nowrap;
}

.hint { color: var(--muted); font-size: .95rem; }

/* First-time steps */
.steps { padding-left: 1.4rem; max-width: 44rem; }
.steps > li { margin-bottom: 1.1rem; padding-left: .25rem; }
.steps p { margin-bottom: .5em; }
.platforms { padding-left: 1.2rem; }
.platforms li { margin-bottom: .4rem; }
.hint + .cmd { margin-top: -.5em; }
.cmd code, .fingerprint code {
  display: block;
  padding: .6rem .75rem;
  line-height: 1.5;
  letter-spacing: .02em;
}
.cmd { max-width: 44rem; }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
  padding: .6rem 1.1rem;
  border-radius: var(--radius);
}
.button:hover { text-decoration: underline; }

/* Support */
.contact { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; max-width: 42rem; margin: 0; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; }
.muted { color: var(--muted); }
@media (max-width: 30rem) {
  .contact { grid-template-columns: 1fr; gap: 0; }
  .contact dd { margin-bottom: .75rem; }
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: .95rem;
}
.site-footer .wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.site-footer p { margin: 0; max-width: 46rem; }
.site-footer strong { color: var(--text); }
