/* Tenvar Ltd. Restraint is the design: paper ground, graphite ink,
   one accent used once. No motion, no imagery, no tracking. */

/* Self-hosted fonts. No third-party requests. */
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/spectral-400.woff2") format("woff2");
}
@font-face {
  font-family: "Spectral";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/spectral-500.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/source-serif-4-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/public-sans-400.woff2") format("woff2");
}

:root {
  --graphite: #1A1B1C; /* near-black, all text and the wordmark, the default ink */
  --paper:    #F4F1E9; /* warm off-white, the default page ground */
  --white:    #FFFFFF; /* only where paper looks dirty against true white; not the default */
  --slate:    #5C5F63; /* secondary text: the footer, captions, metadata */
  --hairline: #D9D4C8; /* warm low-contrast rule, if a neutral rule is ever needed */
  --ink-blue: #1C3A5E; /* the single accent, used once, on the one hairline */

  --serif-display: "Spectral", Georgia, "Times New Roman", serif;
  --serif-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 40rem; /* prose measure, ~640px, a comfortable reading line */
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--serif-body);
  font-size: 1.125rem; /* 18px body */
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

/* Single column, centred. The reading measure is capped and the column sits
   in the middle of the viewport, with even margins on both sides. */
.page {
  padding-block-start: clamp(4rem, 10vh, 8rem);
  padding-block-end: clamp(2.5rem, 6vh, 4rem);
  padding-inline: clamp(1.6rem, 5vw, 3rem);
}

header,
main,
.accent,
footer {
  max-width: var(--measure);
  margin-inline: auto;
}

/* Header: the wordmark as live text, descriptor smaller and quieter beneath it. */
.wordmark {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 500;
  /* The masthead leads: largest element at every width (42px to 52px). Its floor
     stays above the hero's ceiling so the hierarchy never inverts on mobile.
     Also sized so the 15px descriptor lands at ~32 to 40% of its cap height. */
  font-size: clamp(2.625rem, 1.95rem + 2.5vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--graphite);
}

.descriptor {
  margin: 0.65rem 0 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem; /* 15px, kept above the 14px sans floor */
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--slate);
}

main {
  margin-block-start: clamp(3rem, 7vh, 5rem);
}

/* Hero: the one-line description, set large in the serif, tight leading. */
.hero {
  margin: 0;
  font-family: var(--serif-display);
  font-weight: 400;
  /* Large, but a clear step below the wordmark. Its ceiling (38px) stays under
     the wordmark's floor (42px), so the wordmark always reads as largest. */
  font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.375rem); /* ~27px to 38px */
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--graphite);
  text-wrap: balance;
}

.body {
  margin: clamp(2rem, 4vh, 2.75rem) 0 0;
}

.body em,
.sectors em {
  font-style: italic; /* emphasis is italic of the serif, never bold */
}

/* Sectors and engagement line: its own short block. */
.sectors {
  margin: clamp(1.75rem, 3.5vh, 2.5rem) 0 0;
}

/* Contact: the only interactive element. mailto link, graphite fill, square corners. */
.contact {
  margin: clamp(2.25rem, 4.5vh, 3rem) 0 0;
}

.button {
  display: inline-block;
  background: var(--graphite);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  padding: 0.9rem 1.7rem;
  border: 2px solid var(--graphite);
  border-radius: 2px; /* square, not a pill */
}

/* Quiet state change only. No animation, no transition. */
.button:hover {
  background: #000000;
  border-color: #000000;
}

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

/* The single accent on the page: one Ink Blue hairline, full content width. */
.accent {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--ink-blue);
  /* auto left/right keeps the rule centred with the content column */
  margin: clamp(3.5rem, 7vh, 5.5rem) auto clamp(1.5rem, 3vh, 2rem);
}

/* Footer: the registration line, small, in the sans, in Slate. */
footer .reg {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.9375rem; /* 15px, above the 14px floor */
  line-height: 1.7;
  color: var(--slate);
}

/* There is no motion, but honour the preference regardless. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Print: document-grade. Clean on white or paper-toned stock. */
@media print {
  body {
    background: var(--white);
    color: var(--graphite);
  }
  .page {
    padding: 2rem;
  }
  .button {
    background: transparent;
    color: var(--graphite);
    border: 1px solid var(--graphite);
  }
  .accent {
    background: var(--ink-blue);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
