/* Metria — getmetria.app
   One stylesheet for both pages, so the site stays a single visual system.

   Inter is self-hosted. This page makes no third-party request of any kind:
   no webfont CDN, no analytics, no tag manager, no embedded media. The privacy
   notice states that plainly, so nothing here may quietly contradict it. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Inter-400Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/Inter-500Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/Inter-600SemiBold.woff2') format('woff2');
}

:root {
  /* Background, surface and ink are the app-wide Metria design-system values;
     pale blue and slate are the D5 brand foundation, unchanged.

     --blue is one derivation further than the app's #1C7AB5. That value is the
     darkest Metria blue clearing 4.5:1 on PURE WHITE, and this site is not
     white: on the warm background it measures 4.48:1 and on the pale-blue pill
     4.25:1, so links and the status label would both miss AA. Derived the way
     the app derives its own — hue 203.1 and saturation 73% held exactly,
     lightness taken 41% -> 39% — it is the closest darker cut clearing 4.5:1 on
     all three surfaces here: 4.87:1 on background, 5.00:1 on surface, 4.62:1 on
     pale blue. Same colour, one step down; no new hue enters the palette. */
  --bg: #FDFAF6;
  --surface: #FFFDFC;
  --ink: #2A2622;
  --slate: #66727A;
  --blue: #1B74AC;
  --blue-soft: #EAF6FF;
  --hairline: rgba(42, 38, 34, 0.10);

  --measure: 34rem;
  --gutter: clamp(1.5rem, 6vw, 2.5rem);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  max-width: calc(var(--measure) + var(--gutter) * 2);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 6rem) var(--gutter) 0;
}

/* ---- Masthead --------------------------------------------------------- */

.masthead {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.masthead img {
  /* The mark is a tall portrait, so it is sized by height and left to find its
     own width. Below ~40px the line work stops reading as a face. */
  height: 44px;
  width: auto;
  display: block;
}

.wordmark {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ---- Hero ------------------------------------------------------------- */

.status {
  display: inline-block;
  margin-top: clamp(2.75rem, 8vw, 4.5rem);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.125rem, 7.2vw, 3.125rem);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.028em;
  max-width: 18ch;
}

.lede {
  margin: 1.5rem 0 0;
  font-size: clamp(1.0625rem, 2.6vw, 1.1875rem);
  line-height: 1.62;
  color: var(--slate);
  max-width: 48ch;
}

/* ---- Capability list -------------------------------------------------- */

.capabilities {
  margin: clamp(3rem, 8vw, 4.5rem) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}

.capabilities li {
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--hairline);
}

.capabilities h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.capabilities p {
  margin: 0.3rem 0 0;
  color: var(--slate);
  font-size: 0.9375rem;
  line-height: 1.58;
  max-width: 46ch;
}

/* ---- Boxed note ------------------------------------------------------- */

.note {
  margin: clamp(2.5rem, 7vw, 3.5rem) 0 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

.note p {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 46ch;
}

.note p + p { margin-top: 0.75rem; color: var(--slate); }

/* ---- Small caps section label ----------------------------------------- */

.eyebrow,
.note h2,
.contact h2 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}

.contact {
  margin: clamp(2.5rem, 7vw, 3.5rem) 0 0;
}

.contact p {
  margin: 0.6rem 0 0;
  font-size: 0.9375rem;
  max-width: 46ch;
}

/* ---- Links ------------------------------------------------------------ */

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

/* ---- Long-form prose (privacy notice) --------------------------------- */

.prose {
  margin-top: clamp(2.5rem, 7vw, 3.5rem);
}

.prose h2 {
  margin: 2.75rem 0 0;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.prose h3 {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate);
  max-width: 50ch;
}

.prose h2 + p,
.prose h3 + p { margin-top: 0.5rem; }

.prose ul {
  margin: 0.65rem 0 0;
  padding-left: 1.1rem;
  max-width: 50ch;
}

.prose li {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--slate);
}

.prose li strong,
.prose p strong {
  color: var(--ink);
  font-weight: 500;
}

.meta {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--slate);
}

/* ---- Footer ----------------------------------------------------------- */

footer {
  margin-top: clamp(3.5rem, 9vw, 5rem);
  padding: 1.5rem 0 clamp(2.5rem, 7vw, 4rem);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  font-size: 0.8125rem;
  color: var(--slate);
}

footer a { color: var(--slate); }

/* One restrained entrance on the landing page. Nothing loops, and Reduce
   Motion removes it entirely. */
@media (prefers-reduced-motion: no-preference) {
  .page.animate > * {
    animation: rise 620ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  }
  .page.animate > *:nth-child(2) { animation-delay: 60ms; }
  .page.animate > *:nth-child(3) { animation-delay: 100ms; }
  .page.animate > *:nth-child(4) { animation-delay: 140ms; }
  .page.animate > *:nth-child(5) { animation-delay: 180ms; }
  .page.animate > *:nth-child(n + 6) { animation-delay: 220ms; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
