/* Tenara Group site.
   Stride design system: DM Serif Display and IBM Plex Sans, navy ink and dusty
   rose accent on cool 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: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-serif-display-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-400.woff2") format("woff2");
}

:root {
  --ink: #102A54;      /* Stride navy-800 */
  --paper: #FCFCFD;    /* Stride paper */
  --muted: #5B6478;    /* Stride ink-mute */
  --accent: #8E3A54;   /* Stride accent-deep, for text */
  --rule: #B0566F;     /* Stride dusty rose, the signature line */

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

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

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 32px;
  --space-4: 64px;

  --measure: 34rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #FCFCFD;
    --paper: #0A1C3C;  /* Stride navy-900 */
    --muted: #A9B3C8;
    --accent: #CE8499; /* Stride accent-soft */
    --rule: #CE8499;
  }
}

*, *::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(--serif);
  font-weight: 400;
  font-size: var(--t-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

/* The name and its line share one box, so the line runs exactly the width of
   the name, from the T to the p. */
.mark { display: inline-block; margin-bottom: var(--space-3); }

/* The one graphic device: a line signed beneath the name. */
.signature {
  display: block;
  height: 1px;
  width: 100%;
  margin-top: var(--space-3);
  background: var(--rule);
  transform-origin: left center;
  animation: sign 1100ms var(--ease) 200ms both;
}
@keyframes sign {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .signature { animation: none; }
}

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;
}
.foot p { margin: 0 auto; max-width: none; }

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

@media print {
  .signature { animation: none; }
}
