/* eiye — dark ink, one amber accent, editorial type */
:root {
  --bg: #0c0d0b;
  --bg-2: #141511;
  --ink: #f3efe6;
  --muted: #9a9488;
  --line: #2c2b26;
  --amber: #e8a54b;
  --amber-dim: #b57d2e;
  --danger: #c45c3a;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --serif: "Fraunces", "Times New Roman", serif;
  --wrap: 1080px;
  --gutter: clamp(1.1rem, 4vw, 2.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--amber);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}
.skip:focus { left: var(--gutter); }

.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a { color: var(--amber); text-underline-offset: 0.18em; }
a:hover { color: #f3c47a; }
code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--amber);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.6rem;
  gap: 1rem;
}
.mark {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.mark:hover { color: var(--amber); }

.nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }
.nav-github {
  color: var(--bg) !important;
  background: var(--amber);
  padding: 0.32rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.78rem !important;
  letter-spacing: 0.02em;
}
.nav-github:hover { background: #f3c47a; color: var(--bg) !important; }

.nav-toggle {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0.55rem;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--ink);
  margin: 6px 0;
}

.hero {
  padding: clamp(3rem, 8vw, 6.5rem) 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.kicker {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.35rem, 7vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  max-width: 16ch;
}
.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0 0 1.75rem;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--amber);
  color: var(--bg);
}
.btn-primary:hover { background: #f3c47a; color: var(--bg); }
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-compact {
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  margin: 0;
}
.spec-strip div {
  padding: 0.85rem 1rem;
  border-right: 1px solid var(--line);
}
.spec-strip div:last-child { border-right: 0; }
.spec-strip dt {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.spec-strip dd {
  margin: 0;
  font-weight: 500;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.section-n {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
}
.section h2 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.7rem;
  line-height: 1.12;
}
.section-lead {
  max-width: 58ch;
  color: var(--muted);
  margin: 0 0 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.split-uneven { grid-template-columns: 1.35fr 0.85fr; }
.panel {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1.35rem 1.4rem 1.2rem;
}
.panel h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
  color: var(--amber);
}
.panel.is-not h3 { color: var(--danger); }
.panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.panel li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.panel li:first-child { border-top: 0; padding-top: 0; }
.quiet { color: var(--muted); font-size: 0.95rem; }
.dim { opacity: 0.95; }

.spec-list li {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.75rem;
}
.spec-list span {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.15rem;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.flow li {
  position: relative;
  padding: 1.2rem 1.1rem 1.3rem;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 11.5rem;
}
.flow li:last-child { border-right: 0; }
.flow li:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -0.45em;
  top: 1.15rem;
  color: var(--amber);
  font-size: 0.95rem;
  background: var(--bg-2);
  z-index: 1;
  padding: 0 0.1em;
}
.flow-n {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--amber);
  letter-spacing: 0.08em;
}
.flow strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.flow span:last-child {
  color: var(--muted);
  font-size: 0.92rem;
}
.flow-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.pricing {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
.pricing th, .pricing td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.pricing thead th {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--bg-2);
}
.pricing tbody th {
  font-weight: 600;
}
.pricing tbody tr:last-child th,
.pricing tbody tr:last-child td { border-bottom: 0; }
.pricing tbody tr:hover { background: #121310; }
.pricing code {
  font-size: 0.95rem;
  color: var(--ink);
}
.pricing .btn { text-decoration: none; }
.pricing-note { margin-top: 1.1rem; color: var(--muted); }

.code {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  padding: 1.05rem 1.15rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #ddd6c8;
}
.code code { color: inherit; font-size: inherit; }

.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.05rem 0;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  font-family: var(--mono);
  color: var(--amber);
  font-weight: 400;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  max-width: 62ch;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner p { margin: 0.25rem 0; }
.footer-inner strong { color: var(--ink); font-family: var(--serif); font-weight: 600; }

@media (max-width: 900px) {
  .spec-strip { grid-template-columns: 1fr 1fr; }
  .spec-strip div:nth-child(odd) { border-right: 1px solid var(--line); }
  .spec-strip div:nth-child(1),
  .spec-strip div:nth-child(2) { border-bottom: 1px solid var(--line); }
  .spec-strip div:nth-child(2),
  .spec-strip div:nth-child(4) { border-right: 0; }
  .split, .split-uneven { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .flow li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-left: 1.2rem;
  }
  .flow li:last-child { border-bottom: 0; }
  .flow li:not(:last-child)::after {
    content: "\2193";
    right: auto;
    left: 50%;
    top: auto;
    bottom: -0.65em;
    transform: translateX(-50%);
  }
  .spec-list li { grid-template-columns: 1fr; gap: 0.2rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 3.6rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 0 0.8rem;
  }
  .site-header.open .nav { display: flex; }
  .nav a {
    padding: 0.7rem var(--gutter);
  }
  .nav-github {
    margin: 0.4rem var(--gutter);
    text-align: center;
    justify-content: center;
    display: inline-flex;
    width: calc(100% - 2 * var(--gutter));
  }
  .hero h1 { max-width: none; }
}
