/* ================================================================
   Veritas Data Partners, "Warm Graphite" identity
   Warm off-white ground, dark graphite ink, flame-blued steel accent.
   Serif headlines set in Source Serif 4 over a Public Sans body.
   Light theme only. The site does not respond to the OS colour scheme.
   ================================================================ */

:root {
  --paper:  #F6F5F2;
  --paper-rgb: 246, 245, 242;   /* same as --paper, for translucent surfaces */
  --ink:    #2A2724;
  --muted:  #6E6A64;
  --rule:   #E0DDD6;
  --accent: #2B4E8E;   /* flame-blued steel */

  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Public Sans", "Helvetica Neue", Arial, sans-serif;

  --measure: 62ch;
}

/* ---------- base ---------- */

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  text-wrap: balance;
  font-family: var(--serif);
  font-weight: 600;
}
p, dl, ol, ul { margin: 0; }

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

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

/* ---------- letterhead ---------- */

/* Translucent, frosted: page content washes beneath it as you scroll. */
.letterhead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(var(--paper-rgb), 0.65);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
}

/* Where backdrop-filter is unsupported, lean opaque so the nav stays legible. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .letterhead { background: rgba(var(--paper-rgb), 0.94); }
}

.letterhead__row {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

/* The mark carries its own opaque plate and hardcoded colours, so it renders
   identically in every browser and in both themes. Do not theme it. */
.brand__mark { flex: none; display: block; }

.brand__stack {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}

.brand__sub {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.letterhead__nav {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.letterhead__nav a {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
}
.letterhead__nav a:hover { color: var(--accent); }

/* ---------- document column ---------- */

.doc {
  max-width: var(--measure);
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

section { position: relative; }

.kicker {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}

em {
  font-style: normal;
  font-weight: inherit;
  text-decoration: none;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  margin-bottom: 1.6rem;
}

.prose { display: flex; flex-direction: column; gap: 1.2rem; }

.prose p { max-width: var(--measure); }

.write-line { color: var(--muted); }

/* ---------- section divider ---------- */

.asterism {
  text-align: center;
  color: var(--muted);
  font-size: 1.15rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em; /* balance the trailing letter-space */
  padding-block: clamp(2.8rem, 6vw, 4.2rem);
  user-select: none;
}

/* ---------- services ---------- */

.services {
  display: flex;
  flex-direction: column;
}

.service {
  position: relative;
  padding-block: 1.35rem;
}
.service + .service { border-top: 1px solid var(--rule); }

.service dt {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.service dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- method ---------- */

.method {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
  counter-reset: step;
}

.method li {
  counter-increment: step;
  position: relative;
  padding-left: 2.9rem;
}

.method li::before {
  content: counter(step) ".";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.method h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.method p { color: var(--muted); }

/* ---------- commitments ---------- */

.commitments {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.commitments li {
  position: relative;
  padding-left: 2rem;
}

.commitments li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--accent);
  font-size: 1.05rem;
}

/* ---------- questions ---------- */

.qa {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.qa__item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.qa__item p { color: var(--muted); }

/* ---------- closing ---------- */

.write-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.85rem 1.6rem;
  background: var(--ink);
  border: 1.5px solid var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.write-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}

.signature {
  margin-top: 3rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
}

.signature span {
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- current page in nav ---------- */

.letterhead__nav a.is-current {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

/* ---------- page heading (subpages) ---------- */

.page-h {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.6rem;
}

/* ---------- figures ---------- */

.plate {
  margin: clamp(2.4rem, 5vw, 3.4rem) 0 0;
}

.plate img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  filter: saturate(1.03) contrast(1.02);
}

/* ---------- process diagram ---------- */

.process {
  border: 1px solid var(--rule);
  background: #FCFBF8;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 3vw, 1.8rem);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
}

.process__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
}

.process__node {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.process__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.process__note {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  max-width: 12ch;
  line-height: 1.3;
}

.process__arrow {
  flex: none;
  margin-top: 0.6rem;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

@media (max-width: 560px) {
  .process {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }
  .process__step {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 0.9rem;
  }
  .process__text { align-items: flex-start; }
  .process__note { max-width: none; }
  .process__arrow {
    margin: 0.1rem 0 0.1rem 1.05rem;
    transform: rotate(90deg);
    align-self: flex-start;
  }
}

/* ---------- meeting request form ---------- */

#meeting-form {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7rem 2.2rem;
}

@media (max-width: 640px) {
  .field-grid { grid-template-columns: 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field__label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__label b { color: var(--accent); font-weight: 600; }

input[type="text"],
input[type="email"],
select {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.4rem 0.1rem;
}

select { cursor: pointer; }

textarea {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.7rem 0.8rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 0.75; font-style: italic; }

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

textarea:focus { box-shadow: none; }

.choices {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.choices legend {
  padding: 0;
  margin-bottom: 0.9rem;
}

.choices label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 1.02rem;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  flex: none;
  margin: 0.3rem 0 0;
  cursor: pointer;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

button.write-btn {
  cursor: pointer;
  margin-top: 0;
}

.form-note {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--rule);
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
}

.footer__row {
  max-width: 72rem;
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.footer__contact a {
  color: var(--accent);
  text-decoration: none;
}

.footer__contact a:hover { text-decoration: underline; }

.footer__legal { color: var(--muted); }
