/* Hallmark pre-emit critique: P4 H5 E4 S4 R5 V4
 * Greenfield holding page. Macrostructure: split hero with a captioned mark
 * panel, a three-answer row, one calm example block, a five-step chain and a
 * method note. Every colour and font comes from tokens.css.
 */

@font-face {
  font-family: 'Inter Variable';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  overflow-x: clip;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
  padding: 0;
}

ol,
ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page {
  max-width: var(--content);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-6) var(--space-12);
}

/* Masthead */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block-end: var(--space-6);
  border-block-end: 1px solid var(--border);
}

.nameplate {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.mark {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--fg);
}

.wordmark {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
}

.dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--neutral);
}

.dot--pos {
  background: var(--pos);
}

.dot--warn {
  background: var(--warn);
}

.dot--accent {
  background: var(--accent);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-12);
  align-items: center;
  padding-block: var(--space-16);
}

.eyebrow {
  margin-block-end: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
}

.hero__title {
  font-size: clamp(2rem, 1.1rem + 4.2vw, var(--text-4xl));
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero__lead {
  max-width: 46ch;
  margin-block-start: var(--space-6);
  font-size: var(--text-lg);
  line-height: 1.45;
  color: var(--fg-muted);
}

.hero__note {
  max-width: var(--measure);
  margin-block-start: var(--space-6);
}

.plate {
  min-width: 0;
  padding: var(--space-8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.plate__mark {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  margin-inline: auto;
  color: var(--accent);
}

.plate__caption {
  margin-block-start: var(--space-6);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

/* Sections */

.section {
  padding-block: var(--space-12);
  border-block-start: 1px solid var(--border);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-8);
  margin-block-end: var(--space-8);
}

.section__title {
  min-width: 0;
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.section__intro {
  max-width: var(--measure);
  min-width: 0;
  color: var(--fg-muted);
}

/* Three answers */

.answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.answer {
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.answer__label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
}

.answer__label--pos {
  color: var(--pos-ink);
}

.answer__label--warn {
  color: var(--warn-ink);
}

.answer__label--neutral {
  color: var(--fg-muted);
}

.answer__body {
  margin-block-start: var(--space-3);
}

/* Not-yet example: calm on purpose. A fill, no border, no warning colour. */

.example {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--space-8);
  margin-block-start: var(--space-8);
  padding: var(--space-8);
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.example__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--fg-subtle);
}

.example__title {
  min-width: 0;
  margin-block-start: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.25;
}

.example__body {
  max-width: var(--measure);
  min-width: 0;
  color: var(--fg-muted);
}

.example__instead {
  max-width: var(--measure);
  margin-block-start: var(--space-3);
}

.example__instead b {
  font-weight: 600;
}

/* Chain */

.chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4);
}

.step {
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.step--first {
  border-color: var(--accent-plate);
  background: var(--accent-plate);
  color: var(--on-accent);
}

.step__no {
  font-size: var(--text-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--fg-subtle);
}

.step--first .step__no,
.step--first .step__body {
  color: var(--on-accent);
}

.step__name {
  margin-block-start: var(--space-1);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.step__body {
  margin-block-start: var(--space-2);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--fg-muted);
}

.chain__foot {
  max-width: var(--measure);
  margin-block-start: var(--space-6);
  color: var(--fg-muted);
}

/* Method note */

.method {
  padding: var(--space-6);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.method__head {
  margin-block-end: var(--space-2);
  font-weight: 600;
  color: var(--fg);
}

.method p {
  max-width: var(--measure);
}

.method p + p {
  margin-block-start: var(--space-2);
}

/* Colophon */

.colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding-block-start: var(--space-6);
  border-block-start: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--fg-subtle);
}

/* Entrance: once, 160ms, 6px. Never loops. */

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(var(--shift));
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.arrive {
  animation: arrive var(--dur) var(--ease-out) both;
}

.arrive--2 {
  animation-delay: 60ms;
}

.arrive--3 {
  animation-delay: 120ms;
}

@media (prefers-reduced-motion: reduce) {
  .arrive {
    animation: none;
  }
}

/* Responsive */

@media (max-width: 1023px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
    padding-block: var(--space-12);
  }

  .plate__mark {
    max-width: 200px;
  }

  .chain {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    column-gap: var(--space-3);
  }

  .step__no {
    grid-row: 1 / span 2;
    padding-block-start: 0.15rem;
  }

  .step__name {
    margin-block-start: 0;
  }
}

@media (max-width: 767px) {
  .section__head,
  .example {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-4);
  }

  .answers {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 479px) {
  .page {
    padding-inline: var(--space-4);
  }

  .wordmark {
    font-size: var(--text-base);
  }

  .plate,
  .example {
    padding: var(--space-6);
  }

  .hero {
    padding-block: var(--space-8);
  }
}
