/* Tenara Group site.
   Tenara design system: Archivo Expanded and Archivo, ink on near-white.
   Two typefaces, three sizes. No @import, no external URLs: every asset is
   same-origin so the CSP can stay at default-src 'none'.
   Colour pairs are checked by scripts/check-contrast.mjs. */

@font-face {
  font-family: "Archivo Expanded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/archivo-expanded-700.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/archivo-400.woff2") format("woff2");
}

:root {
  --ink: #111111;      /* Tenara ink */
  --paper: #FCFCFC;    /* Tenara paper */
  --muted: #6B6B70;    /* Tenara stone */
  --accent: #111111;   /* links and focus use ink */
  --rule: #8A8A8F;     /* hairline */

  --display: "Archivo Expanded", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* The only three sizes on the site. */
  --t-display: clamp(36px, 5.5vw, 64px);
  --t-body: clamp(17px, 1.4vw, 19px);
  --t-small: 13px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 40px;
  --space-4: 104px;

  --measure: 34rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F5F5F5;
    --paper: #0A0A0A;
    --muted: #A1A1A6;
    --accent: #F5F5F5;
    --rule: #6E6E73;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  align-self: center;
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--space-3));
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}
main.page:not(.prose) { max-width: 52rem; }

h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-display);
  letter-spacing: 0;
  line-height: 1.05;
  margin: 0 0 var(--space-3);
}

/* The lockup: the name and the handover, as one image. */
.mark { margin: 0 0 var(--space-3); line-height: 0; }
.mark img { display: block; height: clamp(32px, 6vw, 64px); width: auto; max-width: 100%; }
.eyebrow img { display: block; height: 16px; width: auto; }

p { margin: 0 0 var(--space-2); max-width: var(--measure); }
.links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--t-body);
  color: var(--muted);
  margin: var(--space-3) 0 var(--space-1);
}

.eyebrow, .meta, .foot {
  font-size: var(--t-small);
  color: var(--muted);
}
.eyebrow { margin-bottom: var(--space-3); }
.meta { margin-top: var(--space-3); }

.foot {
  padding: var(--space-3);
  text-align: center;
  border-top: 1px solid var(--rule);
}
.foot p { margin: 0 auto; max-width: none; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
