/* singulant.tech
   Local system fonts only. No remote stylesheets. */

:root {
  --bg: #070907;
  --raise: #101510;
  --line: #243028;
  --text: #e7f2ec;
  --muted: #c5d5cb;
  --green: #00e880;
  --gold: #e0c48a;
  --focus: #f0d7a2;
  --swatch-research: #8fa398;
  color-scheme: dark;
}

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

html {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--gold);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--focus);
}

:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-150%);
  background: var(--bg);
  color: var(--focus);
  padding: 0.55rem 0.8rem;
  z-index: 2;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  border-top: 3px solid var(--green);
  border-bottom: 1px solid var(--line);
  background: #0b0e0b;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
  min-width: 12rem;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: inline-block;
  padding: 0.4rem 0.55rem;
  text-decoration: none;
  color: var(--text);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

main {
  padding: 1.75rem 0 3rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 68ch;
}

h1,
h2,
h3 {
  line-height: 1.25;
  font-weight: 600;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 2vw + 1rem, 2.35rem);
}

h2 {
  margin: 2.2rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
}

p,
li,
td,
th,
a,
code {
  overflow-wrap: anywhere;
}

p,
li {
  max-width: 72ch;
}

.card p,
.card li,
.evidence,
.evidence li {
  max-width: none;
}

ul,
ol {
  padding-left: 1.2rem;
}

.note,
.card,
.flow {
  background: var(--raise);
  border: 1px solid var(--line);
}

.note {
  padding: 0.9rem 1rem;
  margin: 1.2rem 0;
}

.note strong {
  color: var(--gold);
  font-weight: 600;
}

.card {
  margin: 0.9rem 0;
  padding: 0.95rem 1rem 1rem;
  border-left-width: 4px;
}

.card h2 {
  margin: 0 0 0.45rem;
  padding: 0;
  border: 0;
  font-size: 1.12rem;
}

.card.implemented {
  border-left-color: var(--green);
}

.card.preview {
  border-left-color: var(--gold);
}

.card.research {
  border-left-color: var(--swatch-research);
}

.tier {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  flex: 0 0 auto;
}

.swatch.implemented {
  background: var(--green);
}

.swatch.preview {
  background: var(--gold);
}

.swatch.research {
  background: var(--swatch-research);
}

.evidence {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
}

.evidence li {
  margin: 0.2rem 0;
}

.mono,
code,
pre {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Menlo, Consolas, monospace;
}

code {
  font-size: 0.92em;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 0.9rem 1rem;
  background: #0c100c;
  border: 1px solid var(--line);
  line-height: 1.45;
}

pre code {
  font-size: 0.9rem;
}

.sha {
  overflow-wrap: anywhere;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.8rem;
}

.grid a.tile {
  display: block;
  padding: 0.85rem 0.95rem;
  background: var(--raise);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}

.grid a.tile:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.tile span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--gold);
  font-weight: 600;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2.2rem;
  color: var(--muted);
}

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

.rule {
  color: var(--text);
}

@media (max-width: 420px) {
  .wrap {
    width: min(72rem, calc(100% - 1.25rem));
  }

  .brand img {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skip {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  body {
    background: #fff;
    color: #111;
  }

  a {
    color: #111;
  }

  .skip,
  .site-header nav {
    display: none;
  }

  .card,
  .note,
  pre {
    border-color: #999;
  }
}
