/**
 * VYRM — vyrm.xyz
 *
 * No web fonts, no CDN, no build step.
 * System sans + Georgia. Light only: this is a firm’s front door, not a nightclub.
 *
 * Contrast: a fill never travels without its foreground.
 *   --accent (button fill) → --on-accent
 *   links on paper use --accent-ink, never a decorative green.
 */

:root {
  color-scheme: light;

  --ink: #12262b;
  --muted: #3e5258;
  --soft: #4d6167;

  --paper: #f3f6f5;
  --lift: #ffffff;
  --matte: #e7eeec;
  --line: rgba(18, 38, 43, 0.13);
  --line-strong: rgba(18, 38, 43, 0.28);

  --accent: #12262b;
  --on-accent: #f3f6f5;
  --accent-ink: #0b5a44;
  --mint: #cfe7d8;

  --radius: 2px;
  --shadow: 0 1px 0 rgba(18, 38, 43, 0.04);
  --shadow-lift: 0 1px 0 rgba(18, 38, 43, 0.05), 0 14px 36px rgba(18, 38, 43, 0.07);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: Georgia, "Times New Roman", Times, serif;

  --pad: clamp(1.15rem, 4.2vw, 2.4rem);
  --max: 68rem;
  --prose: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(207, 231, 216, 0.45), transparent 55%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  font-weight: 600;
}
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.wrap--narrow {
  max-width: calc(var(--prose) + 2 * var(--pad));
}

/* ── header ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(10px);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .nav { background: var(--paper); }
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-block: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 13px;
}

.brand__plate { fill: var(--ink); }
.brand__glyph { fill: var(--mint); }

.brand__word { transform: translateY(1px); }

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}

.nav__links a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--muted);
  padding: 7px 10px;
  border-radius: var(--radius);
}

.nav__links a:hover { color: var(--ink); background: var(--matte); }

.nav .btn--sm { margin-left: auto; }

/* ── type ───────────────────────────────────────────── */

.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.85rem;
}

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.18; }

h1 {
  font-family: var(--display);
  font-size: clamp(2.05rem, 5.4vw, 3.35rem);
  font-weight: 500;
  margin-bottom: 1.15rem;
}

h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  margin-bottom: 0.85rem;
}

h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 40rem;
}

.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* ── buttons ────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 1.15rem;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  box-shadow: var(--shadow);
}

.btn:hover { filter: brightness(1.08); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn--ghost:hover { background: var(--lift); }

.btn--sm {
  min-height: 38px;
  padding: 0 0.9rem;
  font-size: 13.5px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.6rem;
}

.cta-note {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--soft);
  max-width: 38rem;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 15px;
  text-underline-offset: 4px;
}

.text-link:hover { color: var(--ink); }

/* ── bands ──────────────────────────────────────────── */

.hero {
  padding: clamp(2.6rem, 7vw, 5.4rem) 0 clamp(3.2rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}

.hero__grid { max-width: 44rem; }

.band {
  padding: clamp(2.8rem, 6vw, 4.6rem) 0;
  border-bottom: 1px solid var(--line);
}

.band--alt { background: var(--matte); }

.band--cta {
  background: var(--ink);
  color: var(--on-accent);
  border-bottom: 0;
}

.band--cta .eyebrow { color: var(--mint); }
.band--cta .lead,
.band--cta p { color: rgba(243, 246, 245, 0.82); }
.band--cta .cta-note { color: rgba(243, 246, 245, 0.55); }
.band--cta .btn {
  background: var(--lift);
  color: var(--ink);
  border-color: var(--lift);
}
.band--cta .btn:hover { filter: none; background: var(--mint); }

.band--cta .wrap--narrow p + p { margin-top: 0.9rem; }

/* ── cards ──────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card h3 { margin-bottom: 0.55rem; }

.card p { color: var(--muted); font-size: 15.5px; }

.card__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 0.55rem;
}

.card__meta {
  margin-top: auto;
  padding-top: 1.1rem;
  font-size: 13.5px !important;
  color: var(--soft) !important;
}

/* ── ops list ───────────────────────────────────────── */

.ops {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
  counter-reset: op;
}

.ops li {
  counter-increment: op;
  padding-top: 0.2rem;
}

.ops h3 {
  margin-bottom: 0.45rem;
}

.ops h3::before {
  content: counter(op, decimal-leading-zero);
  display: block;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent-ink);
  margin-bottom: 0.45rem;
}

.ops p { color: var(--muted); font-size: 15.5px; }

/* ── who ────────────────────────────────────────────── */

.wrap--narrow p + p { margin-top: 0.95rem; }
.wrap--narrow p { color: var(--muted); }
.wrap--narrow h1,
.wrap--narrow h2 { color: var(--ink); }

/* ── legal doc ──────────────────────────────────────── */

.doc {
  padding: clamp(2.4rem, 6vw, 4.2rem) 0 4rem;
}

.doc h1 { margin-bottom: 0.7rem; }

.doc h2 {
  font-size: 1.28rem;
  margin-top: 2.1rem;
  margin-bottom: 0.65rem;
}

.doc ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 0.7rem 0 1rem;
  color: var(--muted);
}

.doc li { margin-bottom: 0.35rem; }

.doc a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

.doc a:hover { color: var(--ink); }

.doc strong { color: var(--ink); font-weight: 650; }

/* ── footer ─────────────────────────────────────────── */

.foot {
  padding: 1.4rem 0 1.6rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  font-size: 13.5px;
  color: var(--soft);
}

.foot__brand {
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--ink);
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin-left: auto;
}

.foot__links a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.foot__links a:hover { color: var(--ink); }

.foot__year { width: 100%; }

/* ── breakpoints ────────────────────────────────────── */

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .ops { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav__inner { min-height: 56px; }
  .hero { padding-top: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { filter: none; }
}
