/* Systemlyx
   Trust-first company site. Cool graphite, one deep-green accent.
   Radius lock: 8px on buttons, the identity sheet, and notices.
   Theme follows the system. Motion is limited to the press state. */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f3f4f6;
  --bg-2: #fbfcfd;
  --ink: #1c2128;
  --ink-2: #3a4250;
  --line: #d5d9e0;
  --accent: #0c4f42;
  --on-accent: #f4faf7;
  --shadow: 0 16px 40px rgb(28 33 40 / 6%);
  --radius: 8px;
  --header: 64px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12161c;
    --bg-2: #1a1f27;
    --ink: #eef1f4;
    --ink-2: #c5ccd6;
    --line: #2c3340;
    --accent: #7dcec0;
    --on-accent: #06241c;
    --shadow: 0 16px 40px rgb(0 0 0 / 28%);
  }
}

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

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 4.6vw, 3.6rem);
  max-width: 11em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
}

p,
li,
dd {
  color: var(--ink-2);
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

code {
  font-family: "Geist", ui-monospace, monospace;
  font-size: 0.92em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 3;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.6rem 0.9rem;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header);
}

.brand {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--ink);
  font: inherit;
  font-weight: 560;
  cursor: pointer;
}

.nav-toggle:active {
  transform: scale(0.98);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

@media (max-width: 767px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1rem 0.85rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .js .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .header-bar {
    flex-wrap: wrap;
  }

  .js .header-bar {
    flex-wrap: nowrap;
    height: var(--header);
  }
}

@media (min-width: 768px) {
  .header-bar {
    height: var(--header);
    flex-wrap: nowrap;
  }
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem 0 4rem;
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  text-decoration: none;
}

.button:active {
  transform: scale(0.98);
}

.sheet {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sheet-head {
  padding: 0.9rem 1.15rem;
  background: var(--accent);
  color: var(--on-accent);
}

.sheet-head h2 {
  color: var(--on-accent);
  font-size: 1.45rem;
}

.sheet-body {
  padding: 0.25rem 1.15rem 0.9rem;
}

.sheet h3 {
  margin-top: 1rem;
  font-size: 1rem;
}

.sheet h3.flag,
.flag {
  color: var(--accent);
}

.facts,
.missing {
  margin-top: 0.55rem;
}

.facts div,
.missing li {
  padding: 0.18rem 0;
}

.facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.05rem;
}

.facts dt {
  color: var(--ink);
  font-weight: 560;
}

.facts dd,
.missing li {
  color: var(--ink-2);
}

.missing {
  padding-left: 1.1rem;
}

.sheet-note {
  margin-top: 0.65rem;
  font-size: 0.95rem;
}

.section {
  padding: 5rem 0;
}

.band {
  padding: 5rem 0;
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.index {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.index article {
  max-width: 40rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.index h3 {
  color: var(--ink);
}

.index p {
  margin-top: 0.45rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 2rem;
}

.split h3 {
  color: var(--ink);
}

.split ul {
  margin-top: 0.7rem;
  padding-left: 1.1rem;
}

.split li + li {
  margin-top: 0.45rem;
}

.follow {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.channel {
  margin-top: 1.5rem;
  max-width: 40rem;
}

.channel div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem 0;
}

.channel dt {
  color: var(--ink);
  font-weight: 560;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.footer-brand {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-grid nav a {
  color: var(--ink);
}

.doc {
  width: min(42rem, 100%);
  padding: 2.5rem 0 4rem;
}

.doc h1 {
  max-width: 16ch;
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.doc .meta {
  margin-top: 0.75rem;
}

.doc h2 {
  margin-top: 2.4rem;
  font-size: 1.45rem;
}

.doc h3 {
  margin-top: 1.4rem;
  font-size: 1.1rem;
}

.doc p,
.doc ul,
.doc ol {
  margin-top: 0.75rem;
}

.doc ul,
.doc ol {
  padding-left: 1.15rem;
}

.doc li + li {
  margin-top: 0.4rem;
}

.doc a {
  text-decoration: underline;
}

.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.notice h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.toc {
  margin-top: 1.5rem;
  padding-left: 1.15rem;
}

.toc a {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.8fr);
    align-items: start;
    gap: 4rem;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .channel div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .hero {
    padding-top: 1.75rem;
  }

  .section,
  .band {
    padding: 3.5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .nav-toggle {
    transition: none;
  }

  .button:active,
  .nav-toggle:active {
    transform: none;
  }
}
