/* EdSign landing site (specs/edsign-landing-site.md). No inline styles anywhere: the CSP is style-src 'self'.
   Rename this file (site.v2.css ...) when it changes; the deploy caches assets for a year. */

:root {
  --ink: #1b1b1f;
  --ink-soft: #4a4b52;
  --paper: #ffffff;
  --wash: #f3f4f6;
  --line: #d9dbe0;
  --red: #cc0000;
  --red-dark: #a30000;
  --yellow: #ffd400;
  --measure: 68ch;
  --page: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: "Segoe UI", "SF Pro Text", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--red-dark); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--red); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.topbar { border-bottom: 1px solid var(--line); background: var(--paper); }
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.brand { display: inline-flex; align-items: center; }
.brand img { width: 5.75rem; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.5rem 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); text-decoration: underline; }

/* Hero */
.hero { background: var(--wash); border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid;
  gap: 2.5rem 4rem;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
  align-items: center;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; margin: 0; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.lede { font-size: 1.2rem; max-width: 46ch; margin: 1.25rem 0 0; color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--paper); }

/* The evidence sample: the one memorable element */
.sample { position: relative; max-width: 27rem; margin: 0 auto; width: 100%; }
.sample::before {
  content: "";
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  background: var(--yellow);
  z-index: 0;
}
.sample-card { position: relative; z-index: 1; background: var(--paper); border: 2px solid var(--ink); padding: 1.25rem 1.4rem 1.4rem; }
.sample-card h2 { font-size: 1.05rem; letter-spacing: 0; }
.sample-note { margin: 0.15rem 0 1rem; font-size: 0.85rem; color: var(--ink-soft); }
.sample dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.92rem; }
.sample dt { color: var(--ink-soft); }
.sample dd { margin: 0; overflow-wrap: anywhere; }
.signature { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }
.signature svg { width: 100%; max-width: 16rem; }
.signature p { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.sig-path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: sign 2.4s ease-out 0.4s both;
}
@keyframes sign { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Sections */
section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
section + section { border-top: 1px solid var(--line); }
.intro { max-width: var(--measure); margin: 0.9rem 0 0; color: var(--ink-soft); }

.steps { list-style: none; counter-reset: step; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem 3rem; }
.steps li { counter-increment: step; padding-left: 3.25rem; position: relative; max-width: 34rem; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.15rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  background: var(--red);
  color: var(--paper);
  font-weight: 800;
  border-radius: 50%;
}
.steps p { margin: 0.4rem 0 0; color: var(--ink-soft); }

.facts { margin: 2.5rem 0 0; display: grid; gap: 1.75rem 3rem; }
.facts div { border-left: 4px solid var(--yellow); padding-left: 1.1rem; max-width: 34rem; }
.facts dt { font-weight: 800; letter-spacing: -0.01em; }
.facts dd { margin: 0.35rem 0 0; color: var(--ink-soft); }

.note { margin: 2rem 0 0; max-width: var(--measure); color: var(--ink-soft); font-size: 0.95rem; }

/* Contact and identity */
.identity { background: var(--wash); }
.identity dl { margin: 2rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem; max-width: 40rem; }
.identity dt { font-weight: 700; }
.identity dd { margin: 0; overflow-wrap: anywhere; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: 0.92rem; color: var(--ink-soft); }
.footer p { margin: 0 0 0.6rem; max-width: 60rem; }
.footer .links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 1rem 0 0; padding: 0; list-style: none; }

/* Legal pages */
.doc { padding: clamp(2rem, 6vw, 4rem) 0 clamp(2.5rem, 7vw, 5rem); }
.doc .wrap { max-width: 50rem; }
.doc h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); max-width: none; }
.doc h2 { font-size: 1.25rem; margin-top: 2.25rem; letter-spacing: -0.01em; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.25rem; }
.meta { color: var(--ink-soft); font-size: 0.95rem; margin: 0.75rem 0 0; }
.doc section { padding: 0; border: 0; }

@media (min-width: 52rem) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 30rem) {
  .sample dl, .identity dl { grid-template-columns: 1fr; gap: 0.1rem; }
  .sample dd, .identity dd { margin-bottom: 0.5rem; }
  .sample::before { inset: 0.6rem -0.4rem -0.6rem 0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sig-path { animation: none; }
}
