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

/* BRAND.md section 12. Defined once here, switched by colour scheme. */
:root {
  color-scheme: light dark;
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --ink: #141414;
  --graphite: #5E5B55;
  --rule: #E3DFD6;
  --accent: #2340D8;
  --settled: #1F7A4D;
  --halt: #B42318;

  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --measure: 38rem;
  --ease: 180ms ease-out;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212;
    --card: #1C1C1C;
    --ink: #F2F0EB;
    --graphite: #A39F97;
    --rule: #2E2D2A;
    --accent: #7C93FF;
    --settled: #5CC28E;
    --halt: #F07A6E;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-color var(--ease), color var(--ease); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0.75rem;
  padding: 0.5rem 0.875rem;
  background: var(--accent);
  color: var(--paper);
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  z-index: 1;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}
.brand { display: block; line-height: 0; }
.brand img { width: auto; height: 1.75rem; }
.site-header nav { display: flex; gap: clamp(1rem, 4vw, 2rem); font-size: 0.9375rem; }
.site-header nav a { color: var(--graphite); text-decoration: none; }
.site-header nav a:hover { color: var(--accent); }

.hero { padding-block: clamp(4.5rem, 14vw, 10rem) clamp(4rem, 10vw, 8rem); }
.hero h1 {
  max-width: 11ch;
  font: 600 clamp(2.75rem, 1.2rem + 7.4vw, 6.25rem)/1.02 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero p { margin-top: clamp(1.25rem, 3vw, 2rem); max-width: 34rem; font-size: 1.25rem; color: var(--graphite); text-wrap: balance; }

.section {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.section-head h2 { font: 600 1.5rem/1.2 var(--display); letter-spacing: -0.02em; }
.section-head p { margin-top: 1rem; max-width: 24rem; color: var(--graphite); }
@media (min-width: 60rem) {
  .section { grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; }
}

.tools-empty-statement {
  font: 600 clamp(2rem, 1.1rem + 3.6vw, 3.5rem)/1.08 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.tools-empty p + p { margin-top: 1.5rem; max-width: 32rem; font-size: 1.125rem; color: var(--graphite); text-wrap: pretty; }

.tool-list { display: grid; }
.tool {
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
}
.tool:first-child { padding-top: 0; border-top: 0; }
.tool:last-child { padding-bottom: 0; }
.tool h3 { font: 600 1.75rem/1.15 var(--display); letter-spacing: -0.02em; }
.tool-signature { margin-top: 0.5rem; font-weight: 600; }
.tool-description { margin-top: 0.75rem; max-width: 26rem; color: var(--graphite); }
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.5rem;
  font-weight: 600;
  text-decoration: underline;
}
.tool-link::after { content: ""; position: absolute; inset: 0; }
.tool-link svg { width: 1rem; height: 1rem; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ease); }
.tool:hover .tool-link { text-decoration-thickness: 2px; }
.tool:hover .tool-link svg { transform: translate(2px, -2px); }
.tool:has(.tool-link:focus-visible) .tool-preview { outline: 2px solid var(--accent); outline-offset: 4px; }
.tool-preview { border: 1px solid var(--rule); border-radius: 0.5rem; overflow: hidden; background: var(--card); aspect-ratio: 960 / 600; }
.tool-preview img { width: 100%; height: 100%; }
@media (min-width: 72rem) {
  .tool { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 2.5rem; align-items: start; }
}

.standard { display: grid; gap: 3rem; }
.promise-group h3 { font-size: 1rem; font-weight: 600; }
.promise-group ul { margin-top: 0.875rem; display: grid; gap: 0.75rem; max-width: 30rem; color: var(--graphite); }
@media (min-width: 40rem) {
  .standard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem 3rem; }
}

.nowrap { white-space: nowrap; }
.about p { max-width: var(--measure); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); line-height: 1.5; text-wrap: pretty; }

.site-footer { padding-block: 3rem 4rem; color: var(--graphite); font-size: 0.9375rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
