/*
  OpenSoftLabs landing page.

  Ported from the design system's `templates/landing-page/LandingPage.dc.html`.
  The template is desktop-fixed and styled inline; this keeps its proportions
  and typography exactly, adds the responsive behaviour a shipped page needs,
  and corrects two colour choices that fail WCAG AA (noted below).
*/

:root {
  /* Bone: warm off-white paper neutrals. Never pure grey, never cold. */
  --bone-0: #FFFFFF;
  --bone-1: #F3F0EA;
  --bone-2: #E9E5DC;
  --bone-3: #DBD6CB;
  --bone-5: #9B968A;

  /* Ink: the primary ramp. Near-black, warm-shifted, never #000. */
  --ink-1: #111110;
  --ink-2: #2A2A28;
  --ink-4: #6B6B66;
  --ink-5: #9B9B94;

  /* Vermilion: the single accent. Eyebrows, the wordmark period. */
  --verm-2: #B33520;
  --verm-3: #D8452B;

  --bg-page: var(--bone-1);
  --text-heading: var(--ink-1);
  --text-body: var(--ink-2);
  --text-muted: var(--ink-4);
  --border-hairline: var(--bone-3);

  /*
    The template sets eyebrows in --verm-3 on paper, which measures 3.84:1 —
    below the 4.5:1 AA floor, and these are 11px. --verm-2 is the same accent
    one step down the ramp at 5.36:1. Footer meta moves from --ink-5 (2.46:1)
    to --ink-4 (4.71:1) for the same reason. The wordmark period stays
    --verm-3: it is part of the logotype, which WCAG exempts.
  */
  --text-eyebrow: var(--verm-2);
  --text-footer-meta: var(--ink-4);

  --shell-max: 1180px;
  --gutter: 40px;

  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p { margin: 0; }

a { color: var(--text-body); }

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

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------------------------------------------------------------- header */

.site-header { border-bottom: 1px solid var(--border-hairline); }

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
}

.wordmark {
  font: 600 19px/1 var(--font-display);
  letter-spacing: -0.025em;
  color: var(--text-heading);
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-light { font-weight: 400; }
.wordmark-dot { color: var(--verm-3); }
.wordmark-sm { font-size: 17px; }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 28px;
  font: 500 14px/1.3 var(--font-sans);
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 140ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-nav a:hover { color: var(--text-heading); }

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

.eyebrow {
  font: 500 11px/1.2 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-eyebrow);
}

.hero { padding-block: 140px 150px; }

.hero-title {
  /*
    96px is the template's desktop size. It scales down rather than wrapping
    into five lines on a laptop or overflowing on a phone; the tracking stays
    tight throughout, which is what makes the type read as display rather than
    as a large paragraph.
  */
  font: 500 clamp(40px, 8.2vw, 96px) / 1.02 var(--font-display);
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin-top: 26px;
  max-width: 1000px;
  text-wrap: balance;
}

.hero-lede {
  font: 400 clamp(18px, 1.6vw, 21px) / 1.6 var(--font-sans);
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 32px;
  text-wrap: pretty;
}

/* ---------------------------------------------------------------- vision */

.vision {
  background: var(--ink-1);
  color: var(--bone-1);
}

.vision-inner { padding-block: 130px; }

.vision-quote {
  font: 500 clamp(30px, 4.4vw, 52px) / 1.22 var(--font-display);
  letter-spacing: -0.025em;
  max-width: 900px;
  text-wrap: balance;
}

.vision-sub {
  font: 400 17px/1.6 var(--font-sans);
  color: var(--bone-5);
  margin-top: 36px;
  max-width: 480px;
  text-wrap: pretty;
}

/* ------------------------------------------------------------ principles */

.principles { padding-block: 130px 40px; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 56px;
}

.principle {
  border-top: 1.5px solid var(--border-hairline);
  padding-top: 22px;
}

.principle h3 {
  font: 500 26px/1.2 var(--font-display);
  letter-spacing: -0.015em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.principle p {
  font: 400 16px/1.65 var(--font-sans);
  color: var(--text-muted);
  text-wrap: pretty;
}

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

.site-footer {
  border-top: 1px solid var(--border-hairline);
  margin-top: 130px;
}

.footer-inner {
  padding-block: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-meta {
  font: 400 12px/1.5 var(--font-mono);
  color: var(--text-footer-meta);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  :root { --gutter: 28px; }

  .hero { padding-block: 96px 104px; }
  .vision-inner { padding-block: 96px; }
  .principles { padding-block: 96px 32px; }
  .site-footer { margin-top: 96px; }

  .principle-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 560px) {
  :root { --gutter: 22px; }

  .header-inner { height: 66px; }
  .hero { padding-block: 68px 76px; }
  .vision-inner { padding-block: 72px; }
  .principles { padding-block: 72px 24px; }
  .site-footer { margin-top: 72px; }

  .footer-inner {
    padding-block: 32px;
    /* The wordmark and the copyright line stop fitting side by side well
       before they actually collide; stacking reads better than a tight row. */
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Nothing here animates, but honour the preference for anything added later. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
