/* eml8.com — one stylesheet, no external anything.
   Palette and card grammar are deliberately close to the product family
   (3fts.ai, 1bx.app) so this page reads as the same hand, not a template. */

:root {
  color-scheme: dark;

  --bg: #08090b;
  --bg-2: #0b0d10;
  --panel: #0f1217;
  --panel-hi: #141922;
  --line: #1e232b;
  --line-hi: #2b323d;
  --ink: #f2f0ea;
  --muted: #9aa1ab;
  /* WCAG AA at the sizes it is used: 5.27:1 on --bg, 4.96 on --panel, 4.66 on --panel-hi.
     The previous #6f7681 measured 4.10-4.40 and failed every text run it painted. */
  --faint: #7c848f;

  --amber: #e8a33d;
  --teal: #7db8ae;
  --moss: #9fbf8a;
  --plum: #b493d6;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --shell: 68rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --measure: 38rem;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* The ground: one amber light at the top right, a hairline grid that fades
   out, nothing that needs a request. Fixed so it does not scroll with copy. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58rem 34rem at 82% -8%, rgba(232, 163, 61, 0.16), transparent 62%),
    radial-gradient(46rem 30rem at 8% 4%, rgba(125, 184, 174, 0.09), transparent 60%),
    linear-gradient(180deg, #0a0c10 0%, var(--bg) 42%, #060708 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70rem 44rem at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(70rem 44rem at 50% 0%, #000 0%, transparent 72%);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.0625rem;
}

.brand svg { display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2.4vw, 1.75rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line-hi); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem); }

.eyebrow {
  margin: 0 0 1.15rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero h1 {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(2.5rem, 7.2vw, 4.9rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero .lede {
  margin: 1.6rem 0 0;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
}

.hero .lede strong { color: var(--ink); font-weight: 600; }

.factline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  margin: 2.1rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--faint);
}

.factline li { display: flex; align-items: baseline; gap: 0.5rem; }
.factline strong { color: var(--ink); font-weight: 600; font-family: var(--sans); }

/* ---------- sections ---------- */

.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }

.section__head { max-width: var(--measure); }

.section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.section .lede { margin: 0.85rem 0 0; color: var(--muted); max-width: var(--measure); }

/* ---------- product cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
  margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 1.3rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-hi), var(--panel) 55%);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--edge, var(--amber));
}

.card--teal { --edge: var(--teal); }
.card--moss { --edge: var(--moss); }
.card--plum { --edge: var(--plum); }

.card:hover { border-color: var(--line-hi); }

/* Hover only where hover exists, and the same state for keyboard focus: a card that lifts
   under the pointer but not under Tab is an affordance only half the readers get. */
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); }
}

.card:focus-within {
  border-color: var(--line-hi);
  transform: translateY(-2px);
}

.card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.card h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.012em;
}

.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint);
}

.card__foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-hi); }
.card__foot a:hover { color: var(--ink); border-bottom-color: var(--amber); }

/* state chips: the label is a measurement, so it is styled like one */

.state {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  flex: none;
  padding: 0.2rem 0.55rem 0.2rem 0.5rem;
  border: 1px solid var(--line-hi);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(242, 240, 234, 0.07);
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent);
}

/* Plain values first, then the mixture: an engine without color-mix() discards the
   mixture but keeps the declaration above it, instead of falling back to a saturated pill. */
.state--live { color: var(--moss); border-color: var(--line-hi); border-color: color-mix(in srgb, var(--moss) 34%, var(--line)); }
.state--live::before { animation: pulse 3.6s ease-in-out infinite; }
.state--demo { color: var(--amber); border-color: var(--line-hi); border-color: color-mix(in srgb, var(--amber) 30%, var(--line)); }
.state--build { color: var(--plum); border-color: var(--line-hi); border-color: color-mix(in srgb, var(--plum) 26%, var(--line)); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(242, 240, 234, 0.07); }
  50% { box-shadow: 0 0 0 5px rgba(242, 240, 234, 0.03); }
}

/* ---------- prose blocks ---------- */

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1rem; color: var(--muted); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); font-weight: 600; }

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.checks {
  margin: clamp(1.5rem, 4vw, 2.25rem) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
}

.checks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 1px;
  background: var(--amber);
}

.checks strong { color: var(--ink); font-weight: 600; }

/* ---------- contact ---------- */

.contact { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }

.write {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--line-hi);
  border-radius: 10px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--ink);
}
.write:hover { border-color: var(--amber); }
.write span { color: var(--faint); }

/* ---------- footer ---------- */

.foot {
  padding-block: 2.25rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

.note {
  margin-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* ---------- responsive / motion ---------- */

@media (max-width: 46rem) {
  .two-col { grid-template-columns: 1fr; }
  .masthead { flex-wrap: wrap; row-gap: 0.75rem; }
  .nav { width: 100%; justify-content: space-between; }
  /* .cards is deliberately absent: auto-fit with minmax(19rem, 1fr) already collapses at
     ~42.4rem, and forcing one column until 46rem threw away a working two-column layout
     while stretching each card by more than 300px for a 1px change in viewport. */
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
}
