/* vayr.io — shared styles
   Design direction: legibility & provenance. Deep ink, warm paper, one brass accent.
   Deliberately avoids the cream+terracotta / black+acid-green AI defaults. */

:root {
  --ink: #16202e;          /* deep ink navy — primary text + dark sections */
  --ink-soft: #33414f;     /* secondary text */
  --paper: #f6f3ec;        /* warm paper — page bg (not the #F4F1EA tell) */
  --paper-pure: #fffdf8;   /* card bg */
  --line: #d9d2c4;         /* hairlines on paper */
  --line-ink: #2c3a49;     /* hairlines on ink */
  --brass: #b07a2c;        /* single restrained accent */
  --brass-deep: #8a5e1f;
  --muted: #6b7480;        /* captions, meta */
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display face: a real grotesk, loaded via <link> in each page head */
h1, h2, h3, .nav__brand, .eyebrow, .btn, .stat__num, .foot__brand {
  font-family: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.12; letter-spacing: -0.015em; font-weight: 600; margin: 0 0 .6em; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 .4em; }
p { margin: 0 0 1.1em; }
a { color: var(--brass-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-deep); font-weight: 600; margin: 0 0 1em;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246,243,236,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__brand { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; display: flex; align-items: baseline; gap: .5ch; }
.nav__brand .dot { color: var(--brass); }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-family: "Space Grotesk", sans-serif; font-size: .92rem; color: var(--ink-soft); text-decoration: none; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--brass-deep); }
.nav__toggle { display: none; }
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__inner { height: 56px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-size: .95rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 2px; text-decoration: none; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- hero ---------- */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero__lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 34ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; gap: 32px; } }

/* provenance motif — the signature element: a record and its source line */
.prov {
  background: var(--ink); color: var(--paper); border-radius: 4px; padding: 22px 24px;
  font-family: "Space Grotesk", monospace; font-size: .86rem; line-height: 1.7;
  box-shadow: 0 18px 40px -24px rgba(22,32,46,.5);
}
.prov__row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--line-ink); }
.prov__row:last-child { border-bottom: 0; }
.prov__k { color: #8ea0b4; }
.prov__v { color: var(--paper); text-align: right; }
.prov__v.brass { color: #e0a94e; }
.prov__cap { color: #7d8ea2; font-size: .72rem; letter-spacing: .04em; margin-top: 14px; display: block; }

/* ---------- sections ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink .eyebrow { color: #e0a94e; }
.section--ink p { color: #c4cdd8; }
.section--ink a { color: #e0a94e; }

.lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 60ch; }
.section--ink .lede { color: #cdd6e0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 40px; }
@media (max-width: 780px) { .grid3, .grid2 { grid-template-columns: 1fr; gap: 20px; } }

.card { background: var(--paper-pure); border: 1px solid var(--line); border-radius: 4px; padding: 26px 24px; }
.card h3 { display: flex; align-items: baseline; gap: 10px; }
.card h3 .mk { font-size: .8rem; color: var(--brass); font-family: "Space Grotesk", sans-serif; }
.card p { font-size: .98rem; color: var(--ink-soft); margin-bottom: 0; }

/* ---------- content pages ---------- */
.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.prose { padding: 56px 0 72px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose .meta { color: var(--muted); font-size: .9rem; font-family: "Space Grotesk", sans-serif; }
.prose--narrow { max-width: 72ch; }

/* definition rows for contact / entity facts */
.facts { border-top: 1px solid var(--line); margin-top: 8px; }
.facts__row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts__k { font-family: "Space Grotesk", sans-serif; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.facts__v { font-size: 1.02rem; }
@media (max-width: 620px) { .facts__row { grid-template-columns: 1fr; gap: 4px; } }

/* opt-in form */
.form { background: var(--paper-pure); border: 1px solid var(--line); border-radius: 4px; padding: 30px; max-width: 560px; }
.form label { display: block; font-family: "Space Grotesk", sans-serif; font-size: .9rem; font-weight: 500; margin: 18px 0 6px; }
.form input[type="text"], .form input[type="tel"], .form input[type="email"] {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px;
  font-family: inherit; font-size: 1rem; background: #fff;
}
.form input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0 4px; }
.consent input { margin-top: 5px; flex-shrink: 0; width: 18px; height: 18px; }
.consent label { margin: 0; font-family: inherit; font-size: .92rem; font-weight: 400; color: var(--ink-soft); }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 16px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #c4cdd8; padding: 56px 0 40px; }
.foot a { color: #c4cdd8; text-decoration: none; }
.foot a:hover { color: #e0a94e; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__brand { font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 600; color: var(--paper); margin-bottom: 10px; }
.foot__brand .dot { color: var(--brass); }
.foot h4 { font-family: "Space Grotesk", sans-serif; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8ea0b4; margin: 0 0 14px; font-weight: 600; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: 9px; font-size: .94rem; }
.foot__legal { border-top: 1px solid var(--line-ink); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: #7d8ea2; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot__addr { font-style: normal; line-height: 1.6; }
@media (max-width: 720px) { .foot__grid { grid-template-columns: 1fr; gap: 26px; } }

.skip { position: absolute; left: -999px; }
.skip:focus { position: static; display: inline-block; padding: 8px 14px; background: var(--brass); color: #fff; }
