/* Varnexity Ltd — static HQ site.
   Restraint is the design language: no gradients, shadows, radii, or imagery. */

/* IBM Plex Sans — self-hosted, no third-party request on any page view.
   One variable woff2 (latin subset) serves both weights; the two rules point at
   the same file, mirroring the upstream declarations, so it downloads once.
   SIL Open Font License 1.1 — see fonts/OFL.txt. */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0A0A0A;
  --fg: #F5F5F5;
  --rule: #1F1F1F;        /* hairline between list rows */
  --rule-section: #262626; /* section-top rules */
  --col: 880px;
}

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

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  color: var(--fg);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

p { margin: 0; text-wrap: pretty; }

/* ---------- shared scaffolding ---------- */

.section { padding: 0 32px; }
.section--gap { margin-top: 88px; }
.section--rule { border-top: 1px solid var(--rule-section); }

.wrap {
  max-width: var(--col);
  margin: 0 auto;
  padding: 72px 0 8px;
}
.wrap--rule { border-top: 1px solid var(--rule-section); }
/* The strong rule is the tonal break from product to service. */
.wrap--rule-strong { border-top: 2px solid var(--fg); }
.wrap--contact { padding-bottom: 96px; }

.heading {
  margin: 0 0 48px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.5;
}

/* ---------- hero ---------- */

/* Heading followed by an explanatory note rather than going straight to rows. */
.heading--tight { margin-bottom: 16px; }

.section-note {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.6;
  max-width: 560px;
  margin: 0 0 44px;
}

.hero {
  padding: 180px 32px 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-size: clamp(22px, 7.2vw, 34px);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* matched indent keeps the optical centring true */
  line-height: 1;
}

.hero__line {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.86;
}

/* ---------- venture / advisory rows ---------- */

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

.row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
}
.row:last-child { border-bottom: 1px solid var(--rule); }

.row__meta { display: flex; flex-direction: column; gap: 10px; }

.row__name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.row__link {
  font-size: 14px;
  letter-spacing: 0.02em;
  opacity: 0.55;
  align-self: flex-start;
}

/* Motoble: same row, same rules — only this small meta label is muted. */
.row__status {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.48;
}

.row__desc {
  font-size: 17px;
  line-height: 1.6;
  opacity: 0.86;
  max-width: 520px;
}
.row__desc--muted { opacity: 0.72; }

.row__name--advisory {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  max-width: 200px;
}

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

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 48px;
}

.contact__route { display: flex; flex-direction: column; gap: 12px; }

.contact__label {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.6;
  max-width: 300px;
  /* Grid stretches each route to the row height; letting the label absorb the
     slack pushes every mailto to the same baseline even when one label wraps.
     Collapses harmlessly when the routes stack into a single column. */
  flex: 1 1 auto;
}

.email {
  font-size: 18px;
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-start;
}
/* Without JS the anchor carries no href — inert, never a dead link. */
.email:not([href]) { text-decoration: none; opacity: 0.86; cursor: default; }

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

.footer { margin-top: auto; padding: 0 32px; }

.footer__inner {
  max-width: var(--col);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
  padding: 40px 0 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.48; /* raised from 0.42 to clear 4.5:1 on #0A0A0A */
  max-width: 420px;
}
.footer__note { margin-top: 8px; }

.footer__link {
  font-size: 13px;
  opacity: 0.48;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- privacy page ---------- */

.doc { --col: 720px; padding: 0 32px; }

.doc__header {
  max-width: var(--col);
  margin: 0 auto;
  width: 100%;
  padding: 96px 0 56px;
}

.doc__wordmark {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-indent: 0.38em;
  display: inline-block;
}

.doc__title {
  margin: 64px 0 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.doc__main {
  max-width: var(--col);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.doc__section {
  border-top: 1px solid var(--rule);
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.doc__section--details { gap: 14px; }
.doc__section--last { padding-bottom: 0; gap: 12px; }

.doc__heading { margin: 0 0 6px; }

.doc__body {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.86;
}

.doc__aside {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.55;
}

.doc .email { font-size: 17px; }

.doc__footer {
  max-width: var(--col);
  margin: 96px auto 0;
  width: 100%;
  border-top: 1px solid var(--rule);
  padding: 32px 0 72px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.doc__footer a { text-decoration: underline; text-underline-offset: 3px; }
.doc__footer > * { font-size: 13px; opacity: 0.48; }

/* ---------- narrow viewports ---------- */

@media (max-width: 640px) {
  .hero { padding: 110px 32px 88px; gap: 32px; }

  .row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .row__name--advisory { max-width: none; }
  .doc__header { padding: 72px 0 40px; }
  .doc__title { margin-top: 48px; }
}
