/* NINJAR — black and white, typographic. Colour lives only in the logo. */
:root {
  color-scheme: light;
  --bg: #fafaf8;
  --ink: #111111;
  --muted: #5c5c5c;
  --rule: #e2e2de;
  --todo-bg: #fff3b0;
  --max: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; }

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

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex: none;
}
.site-header nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { flex: 1; }

/* Home */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.hero img {
  width: 180px;
  height: auto;
}
.hero h1 {
  /* The logo already shows the name; the heading stays for screen readers and search. */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.tagline {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.35;
  font-weight: 600;
  margin: 2.5rem auto 1rem;
  max-width: 28rem;
}
.lede { color: var(--muted); max-width: 32rem; margin: 0 auto; }

.sample {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  letter-spacing: 0.08em;
  text-align: center;
  margin: 3rem 0;
  word-spacing: 0.3em;
}

.points {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  border-top: 1px solid var(--rule);
}
.points li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
.points strong { display: block; }

.availability {
  text-align: center;
  font-weight: 600;
  margin: 0 0 4rem;
}

/* Text pages */
.doc { padding-top: 3rem; padding-bottom: 4rem; }
.doc h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; }
.doc h2 { font-size: 1.25rem; margin: 2.5rem 0 0.5rem; }
.doc h3 { font-size: 1.05rem; margin: 1.75rem 0 0.25rem; }
.doc .meta { color: var(--muted); margin: 0 0 2rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.35rem 0; }
.doc address { font-style: normal; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 0.5rem 0.5rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
.table-scroll { overflow-x: auto; }

/* Unresolved launch facts. Every one must be gone before the site is published. */
.todo {
  background: var(--todo-bg);
  color: var(--ink);
  padding: 0 0.2em;
  font-weight: 600;
}
.draft-notice {
  border: 2px solid var(--ink);
  padding: 0.75rem 1rem;
  margin: 0 0 2rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
