/* RELIC landing page — relicproject.org
   Zero external requests. System fonts only. Change the accent here. */
:root {
  --accent: #1f3a8a;          /* deep ink-blue; swap for signal-red #b91c1c if preferred */
  --bg: #fafafa;
  --fg: #111;
  --muted: #555;
  --line: #e2e2e2;
  --card: #fff;
  --bar: #111;
  --sans: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8ea8ff;
    --bg: #0e0e0f;
    --fg: #ededed;
    --muted: #a3a3a3;
    --line: #2a2a2c;
    --card: #161618;
    --bar: #ededed;
  }
  .mark { filter: invert(1) hue-rotate(180deg); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--fg); color: var(--bg);
  padding: .5rem .9rem; font-family: var(--mono); font-size: .85rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }

.mono { font-family: var(--mono); }
.tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 0; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: .6rem;
  color: var(--fg); text-decoration: none;
  font-family: var(--mono); font-weight: 700; letter-spacing: .14em;
}
.brand img { width: 26px; height: 26px; }
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: .4rem 1.1rem; flex-wrap: wrap;
}
@media (max-width: 639px) { .nav ul li:nth-child(1), .nav ul li:nth-child(4) { display: none; } }
.nav ul a {
  font-family: var(--mono); font-size: .8rem; color: var(--muted);
  text-decoration: none; letter-spacing: .04em;
}
.nav ul a:hover { color: var(--fg); }

/* ---------- Redaction bar motif ---------- */
.bar-rule { height: 4px; background: var(--bar); border: 0; margin: 0; width: 3rem; }
.divider {
  display: flex; gap: 6px; margin: 0; padding: 0; border: 0;
}
.divider span { height: 3px; background: var(--bar); }
.divider span:nth-child(1) { width: 4rem; }
.divider span:nth-child(2) { width: 1.5rem; background: var(--accent); }
.divider span:nth-child(3) { width: 2.5rem; }

.redact { position: relative; white-space: nowrap; }
.redact::after {
  content: ""; position: absolute;
  left: -.08em; right: -.08em; top: .14em; bottom: .08em;
  background: var(--bar);
  transform-origin: right center;
  transition: transform .45s cubic-bezier(.7,0,.2,1);
}
.redact:nth-of-type(2)::after { transition-delay: .08s; }
.redact:nth-of-type(3)::after { transition-delay: .16s; }
.hero-title:hover .redact::after,
.hero-title:focus .redact::after,
.hero-title.revealed .redact::after { transform: scaleX(0); }
@media (prefers-reduced-motion: reduce) {
  .redact::after { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 800px) { .hero { padding-top: 7rem; padding-bottom: 6rem; } }
.hero .mark { width: 56px; height: 56px; display: block; margin-bottom: 1.75rem; }
.wordmark {
  font-family: var(--mono); font-weight: 700;
  font-size: clamp(2.6rem, 9vw, 4.5rem); letter-spacing: .18em;
  line-height: 1; margin: 0;
}
.expansion { margin: .9rem 0 2.5rem; font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.hero-title {
  font-size: clamp(1.9rem, 5.2vw, 3.3rem); line-height: 1.12;
  letter-spacing: -.02em; font-weight: 700; margin: 0 0 1.25rem;
  max-width: 18ch; cursor: default;
}
.hero-title:focus { outline: none; }
.hero-title:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; margin: 0 0 2.25rem; }
.hint { font-size: .72rem; color: var(--muted); margin: 0 0 2rem; }

.ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: .8rem 1.3rem;
  font-family: var(--mono); font-size: .88rem; text-decoration: none;
  border: 2px solid var(--fg); color: var(--fg); background: transparent;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn.primary { background: var(--fg); color: var(--bg); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
section.block { padding: 4rem 0; border-top: 1px solid var(--line); }
@media (min-width: 800px) { section.block { padding: 5.5rem 0; } }
.block-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 800px) {
  .block-head { grid-template-columns: 14rem 1fr; align-items: baseline; }
}
h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2;
  letter-spacing: -.015em; margin: 0;
}
.block p { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.prose strong { font-weight: 650; }

/* Feature cards */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); padding: 1.6rem 1.5rem 1.75rem; }
.card h3 { font-size: 1.08rem; margin: .7rem 0 .5rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card .bar-rule { width: 1.75rem; height: 3px; background: var(--accent); }

/* Trust */
.trust-lines { list-style: none; margin: 0 0 2rem; padding: 0; }
.trust-lines li {
  font-size: clamp(1.25rem, 3vw, 1.7rem); font-weight: 650;
  letter-spacing: -.01em; padding: .55rem 0;
  display: flex; gap: 1rem; align-items: baseline;
}
.trust-lines li .tag { min-width: 3.5rem; }
.quote {
  border-left: 4px solid var(--bar); padding: .25rem 0 .25rem 1.25rem;
  margin: 0; font-style: normal; color: var(--muted); max-width: 42rem;
}

/* Roadmap */
.roadmap { list-style: none; margin: 0; padding: 0; counter-reset: ph; }
.roadmap li {
  position: relative; padding: 0 0 1.75rem 2.25rem;
  border-left: 2px solid var(--line); margin-left: .4rem;
}
.roadmap li:last-child { padding-bottom: 0; }
.roadmap li::before {
  content: ""; position: absolute; left: -7px; top: .45rem;
  width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--fg);
}
.roadmap li.now::before { background: var(--accent); border-color: var(--accent); }
.roadmap .tag { display: block; }
.roadmap strong { font-size: 1.05rem; }
.roadmap p { margin: .2rem 0 0; color: var(--muted); }

/* Who */
.who { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .who { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.who ul { margin: 0; padding-left: 1.1rem; }
.who li { margin-bottom: .4rem; }
.callout {
  background: var(--card); border: 1px solid var(--line);
  padding: 1.5rem; font-size: .95rem;
}
.callout code { font-family: var(--mono); font-size: .85rem; }

/* Footer */
footer { border-top: 4px solid var(--bar); padding: 3rem 0 4rem; margin-top: 2rem; }
.foot { display: grid; gap: 2rem; }
@media (min-width: 800px) { .foot { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot p { margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); }
.stamp {
  font-family: var(--mono); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .85rem; color: var(--fg) !important;
}
.badge {
  display: inline-block; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .05em; border: 1.5px solid var(--fg); padding: .35rem .6rem;
  color: var(--fg);
}
.foot h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; font-weight: 400; }
.foot ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.foot li { margin-bottom: .45rem; }

/* ---------- Getting-started guide ---------- */
.guide { padding-bottom: 3rem; }
.guide-head { padding: 3rem 0 1rem; }
.guide-head h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.02em; line-height: 1.1; margin: .5rem 0 1rem; }
.toc { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1rem 0; margin-top: 2rem; }
.toc ol { margin: 0; padding-left: 1.3rem; columns: 2 16rem; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; font-size: .95rem; }
.step { padding: 2.75rem 0 1rem; border-bottom: 1px solid var(--line); }
.step h2 { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.num { display: inline-grid; place-items: center; width: 2rem; height: 2rem; background: var(--bar); color: var(--bg); font-family: var(--mono); font-size: .95rem; border-radius: 2px; flex: none; }
.step p, .step li, .step dd { max-width: 44rem; }
.step li { margin-bottom: .4rem; }
.shot { margin: 1rem 0 1.25rem; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.shot.narrow img { max-width: min(100%, 26rem); }
.shot-row { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 860px) { .shot-row { grid-template-columns: minmax(0, 26rem) 1fr; } .shot-row .shot { margin-top: 0; } }
.two-col { display: grid; gap: 1rem; }
@media (min-width: 720px) { .two-col { grid-template-columns: 1fr 1fr; } }
pre { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: .7rem .9rem; overflow-x: auto; margin: .3rem 0 1rem; }
code, kbd { font-family: var(--mono); font-size: .88em; }
kbd { border: 1px solid var(--fg); border-radius: 3px; padding: 0 .35rem; }
.note { border-left: 4px solid var(--bar); background: var(--card); padding: .6rem .9rem; }
.note.warn { border-left-color: #a35a00; }
.legend-list { list-style: none; padding: 0; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .5rem; vertical-align: middle; }
.dot.green { background: #1d7a3e; } .dot.amber { background: #a35a00; } .dot.grey { background: #6b6b6b; }
.checklist { list-style: none; padding: 0; }
.checklist li::before { content: "▮ "; color: var(--accent); }
.faq dt { font-weight: 650; margin-top: 1rem; }
.faq dd { margin: .3rem 0 0; color: var(--muted); }

/* ---------- Get RELIC section (home page) ---------- */
.get-grid { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .get-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.steps-list { margin: 0; padding-left: 1.2rem; }
.steps-list li { margin-bottom: .6rem; }
.fingerprint { font-family: var(--mono); font-size: .78rem; word-break: break-all; background: var(--card); border: 1px solid var(--line); padding: .6rem .8rem; border-radius: 4px; }
/* Let grid columns shrink on phones so code blocks scroll inside themselves instead of widening the page */
.two-col > *, .shot-row > *, .get-grid > * { min-width: 0; }
