/*
 * One stylesheet, no build step, no JavaScript.
 *
 * A framework would add a toolchain, a lockfile and a supply chain to a site
 * that is four pages and a form. Custom properties and a couple of grid rules do
 * the same job here and will still work untouched in five years.
 */

:root {
  --ink-950: #0b0d10;
  --ink-900: #0f1216;
  --ink-800: #171b21;
  --ink-700: #232833;
  --ink-400: #8b95a5;
  --ink-300: #aeb7c4;
  --ink-100: #e7eaee;
  --accent: #7aa2f7;
  --accent-dim: #5f86d8;
  --good: #7ec699;
  --bad: #e87d7d;
  --radius: 10px;
  --wrap: 68rem;
}

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

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

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--ink-100);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 650; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 620; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #9dbaf9; }

/* Visible focus everywhere. Removing the outline is how a keyboard user loses
   their place on a form; this replaces it with something clearer, not nothing. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 40rem; }
.muted { color: var(--ink-400); font-size: 0.875rem; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 10;
  background: var(--accent); color: #06080b; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---- header ---- */
.site { border-bottom: 1px solid var(--ink-800); background: rgba(11,13,16,0.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 1rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-100); font-weight: 640; text-decoration: none; letter-spacing: -0.02em; }
.mark { width: 1.1rem; height: 1.1rem; border-radius: 5px; background: linear-gradient(140deg, var(--accent), #b48ef7); display: inline-block; }
.tag { margin: 0 0 0 auto; font-size: 0.75rem; color: var(--ink-400); border: 1px solid var(--ink-700); border-radius: 999px; padding: 0.2rem 0.6rem; }

/* ---- hero ---- */
.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; margin-bottom: 0.9rem; }
.lede { font-size: clamp(1rem, 2.3vw, 1.15rem); color: var(--ink-300); max-width: 42rem; }
.lede.small { font-size: 1rem; }
.cta-row { margin-top: 1.6rem; }

.btn {
  display: inline-block; background: var(--accent); color: #06080b;
  padding: 0.72rem 1.3rem; border-radius: var(--radius); border: 0;
  font: inherit; font-weight: 620; text-decoration: none; cursor: pointer;
}
.btn:hover { background: #9dbaf9; color: #06080b; }
.btn.small { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn.ghost { background: transparent; color: var(--ink-100); border: 1px solid var(--ink-700); }
.btn.ghost:hover { background: var(--ink-800); color: var(--ink-100); }

/* ---- sections ---- */
.how, .honest, .join, .prose, .owner { padding: clamp(2.5rem, 6vw, 4rem) 0; border-top: 1px solid var(--ink-800); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
.steps li { counter-increment: s; background: var(--ink-900); border: 1px solid var(--ink-800); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before {
  content: counter(s); display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 6px;
  background: var(--ink-800); color: var(--accent);
  font-size: 0.8rem; font-weight: 700; margin-bottom: 0.85rem;
}
.steps p { margin: 0; color: var(--ink-300); font-size: 0.94rem; }

.honest p { max-width: 44rem; color: var(--ink-300); }

/* ---- forms ---- */
.field { margin-bottom: 1.15rem; }
label { display: block; font-size: 0.9rem; font-weight: 560; margin-bottom: 0.4rem; }
.req { color: var(--ink-400); font-weight: 400; }
.opt { color: var(--ink-400); font-weight: 400; }
.hint { font-size: 0.8rem; color: var(--ink-400); margin: 0.35rem 0 0; }

input[type="text"], input[type="email"], input[type="password"], input[type="search"], textarea, select {
  width: 100%; background: var(--ink-900); color: var(--ink-100);
  border: 1px solid var(--ink-700); border-radius: var(--radius);
  padding: 0.65rem 0.8rem; font: inherit;
}
textarea { resize: vertical; min-height: 6rem; }
input:hover, textarea:hover, select:hover { border-color: #2e3542; }

.consent .check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; font-size: 0.9rem; color: var(--ink-300); }
.consent input { margin-top: 0.28rem; width: 1rem; height: 1rem; flex: 0 0 auto; accent-color: var(--accent); }

.errors, .ok {
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1.5rem;
  border: 1px solid; font-size: 0.92rem;
}
.errors { border-color: rgba(232,125,125,0.4); background: rgba(232,125,125,0.08); color: #f0b4b4; }
.errors ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.ok { border-color: rgba(126,198,153,0.4); background: rgba(126,198,153,0.08); }
.ok h2 { color: var(--good); }
.err { color: var(--bad); font-size: 0.82rem; margin: 0.35rem 0 0; }

/* ---- owner ---- */
.owner-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; justify-content: space-between; margin-bottom: 1.6rem; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: flex-end; margin-bottom: 1.5rem; }
.inline-field { margin: 0; flex: 1 1 12rem; }

.table-scroll { overflow-x: auto; border: 1px solid var(--ink-800); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 44rem; }
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--ink-800); vertical-align: top; }
th { background: var(--ink-900); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-400); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
.nowrap { white-space: nowrap; color: var(--ink-400); }
.desc { max-width: 26rem; color: var(--ink-300); }

.empty { border: 1px dashed var(--ink-700); border-radius: var(--radius); padding: 2.5rem 1.5rem; text-align: center; color: var(--ink-300); }
.empty h2 { color: var(--ink-100); }

/* ---- prose ---- */
.prose h2 { margin-top: 2rem; }
.prose ul { color: var(--ink-300); padding-left: 1.2rem; }
.prose blockquote { margin: 0 0 0.5rem; padding: 0.9rem 1.1rem; border-left: 2px solid var(--accent); background: var(--ink-900); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-300); font-size: 0.92rem; }

/* ---- footer ---- */
.site-foot { border-top: 1px solid var(--ink-800); padding: 2.5rem 0 3rem; color: var(--ink-400); font-size: 0.875rem; }
.site-foot p { margin: 0 0 0.4rem; }

/* 375px is the narrowest phone worth designing for, and the tag in the header is
   the first thing that runs out of room. */
@media (max-width: 26rem) {
  .tag { display: none; }
  .owner-head { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .btn.small { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
