/* Bellvantage — bellvantagehost.website
   A records ledger, not a landing page.

   Deliberate choices:
   - No sans-serif anywhere. Serif prose + monospace data reads as a printed
     policy document, which is what a Google reviewer needs this to look like.
   - One accent (deep pine). No gradients, no shadows, no stock photos.
   - Structure carries information: numbered ledger rails, hairline rules.
   - Zero webfonts. Nothing to block first paint, nothing to license.
*/

:root {
  --paper:      #fbfaf7;
  --paper-sunk: #f4f2ec;
  --ink:        #14181b;
  --ink-2:      #565f65;
  --ink-3:      #858e94;
  --rule:       #e3e0d8;
  --rule-soft:  #ecebe4;
  --accent:     #0b4f4a;
  --accent-wash:#eaf2f0;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --mono:  ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
           "Liberation Mono", monospace;

  --max: 46rem;
  --rail: 6.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.4rem;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { text-decoration-thickness: 2px; }

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

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--ink);
  padding: 1.5rem 0 1rem;
  margin-bottom: 3.5rem;
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--ink-3); }

.masthead nav {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  gap: 1.25rem;
}
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover,
.masthead nav a[aria-current="page"] { color: var(--accent); }

/* ---------- title block ---------- */

.titleblock { margin-bottom: 3rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2rem, 5.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.lead {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 1.75rem;
  text-wrap: pretty;
}

.dateline {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.dateline b { color: var(--ink-2); font-weight: 400; }

/* ---------- ledger rows ---------- */

.ledger { border-top: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 38rem) {
  .row {
    grid-template-columns: var(--rail) 1fr;
    gap: 2rem;
  }
}

.rail {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.5;
  padding-top: 0.35rem;
}
.rail span { display: block; color: var(--accent); }

.row h2 {
  font-size: 1.24rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 0 0 0.85rem;
  text-wrap: balance;
}
.row h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.6rem 0 0.5rem;
}
.row > div > :first-child { margin-top: 0; }
.row p { margin: 0 0 1rem; }
.row p:last-child, .row ul:last-child { margin-bottom: 0; }

.row ul, .row ol { margin: 0 0 1rem; padding-left: 1.15rem; }
.row li { margin-bottom: 0.5rem; }
.row li:last-child { margin-bottom: 0; }

code {
  /* keep command names intact; they are never worth hyphenating */
  overflow-wrap: normal;
  word-break: keep-all;
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--paper-sunk);
  border: 1px solid var(--rule-soft);
  border-radius: 3px;
  padding: 0.1em 0.34em;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- pipeline ---------- */

.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.pipeline li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dotted var(--rule);
  margin: 0;
}
.pipeline li:first-child { padding-top: 0.2rem; }
.pipeline li:last-child { border-bottom: 0; padding-bottom: 0.2rem; }

.pipeline li::before {
  content: counter(step, decimal-leading-zero);
  grid-column: 1;
  /* span both rows so the marker sits beside the whole step */
  grid-row: 1 / span 2;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  padding-top: 0.28rem;
}

/* Both text spans live in the wide column. Without these two lines the
   grid auto-places .why back into column 1 (1.6rem) and every word wraps. */
.pipeline .what { display: block; grid-column: 2; }
.pipeline .why {
  display: block;
  grid-column: 2;
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

/* ---------- definition pairs ---------- */

.pairs { margin: 0; }
.pairs > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px dotted var(--rule);
}
.pairs > div:last-child { border-bottom: 0; }
@media (min-width: 30rem) {
  .pairs > div { grid-template-columns: 12rem 1fr; }
}
.pairs dt {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.7;
}
.pairs dd { margin: 0; }

/* ---------- callout ---------- */

.note {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  padding: 1.15rem 1.3rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.62;
}
.note b { font-weight: 600; }

/* ---------- contact ---------- */

.contact { font-style: normal; }
.contact strong { font-weight: 600; }

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

footer {
  margin-top: 5rem;
  border-top: 1px solid var(--ink);
  padding: 1.5rem 0 3.5rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}
.footer__inner a { color: var(--ink-2); text-decoration: none; }
.footer__inner a:hover { color: var(--accent); }

/* ---------- legal pages ---------- */

.legal h2 { font-size: 1.1rem; margin-top: 2.4rem; }
.legal h3 { font-size: 0.98rem; margin-top: 1.6rem; color: var(--ink); }
.legal ol { padding-left: 1.2rem; }
.legal > :first-child { margin-top: 0; }

.effective {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.8rem 0;
  margin: 0 0 2.5rem;
}

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; }

.legal table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.92rem;
  line-height: 1.55;
}
.legal th, .legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.legal thead th {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 400;
  white-space: nowrap;
  border-bottom-color: var(--ink);
}
.legal tbody th { font-weight: 600; white-space: nowrap; }

/* ---------- 404 ---------- */

.centred { padding: 6rem 0 8rem; }
.centred h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body { background: #fff; font-size: 11pt; }
  .masthead nav, footer { display: none; }
  .note { background: none; border-left: 2px solid #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
  .row { break-inside: avoid; }
}
