/* Stead Software. Tokens first; every colour and type decision derives from them. */

@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Spectral";
  src: url("/fonts/spectral-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/public-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #13262b;
  --paper: #f4f6f5;
  --surface: #ffffff;
  --tint: #e9eeec;
  --stone: #d6dddb;
  --slate: #52646a;
  --teal: #1f5f66;
  --vial: #cfdf5a;
  --vial-wash: rgba(207, 223, 90, 0.26);

  --display: "Spectral", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--vial);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--ink);
  text-decoration-thickness: 2px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-weight: 600;
}
.skip:focus {
  left: 16px;
}

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

/* Type */

h1,
h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 1.55rem + 4.1vw, 4.5rem);
  line-height: 1.04;
  max-width: 18ch;
}
h2 {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  line-height: 1.14;
  max-width: 24ch;
}
h3 {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.35;
}
.h-small {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0;
}

.eyebrow,
.meta,
.stack-caption,
.footer-head,
.chip,
.facts dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.eyebrow {
  margin-bottom: 18px;
}
.meta {
  margin-top: 16px;
}

.lead {
  margin-top: 24px;
  max-width: 58ch;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--stone);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 32px;
  padding-block: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.wordmark {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  list-style: none;
  padding: 0;
}
.nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  padding-block: 6px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
  text-decoration-color: var(--teal);
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.button:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--surface);
  text-decoration: none;
}
.button-quiet {
  background: transparent;
  color: var(--ink);
}
.button-quiet:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Hero and the stacked blocks: the logo at full width, the one signature element */

.hero {
  padding-block: clamp(56px, 9vw, 120px) clamp(56px, 8vw, 104px);
}
.stack {
  position: relative;
  height: clamp(84px, 10vw, 128px);
  margin-top: clamp(48px, 7vw, 88px);
  /* A stead is a fixed place: the blocks settle onto a placement grid. */
  background-image: radial-gradient(circle, rgba(19, 38, 43, 0.2) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
  background-position: 0 0;
}
.blk {
  position: absolute;
  border: 1.5px solid var(--ink);
  border-radius: clamp(12px, 1.4vw, 18px);
}
/* Same proportions as the logo: equal blocks with a modest overhang. */
.blk-top {
  top: 0;
  right: 0;
  width: 83%;
  height: calc(50% - 4px);
  background: var(--surface);
  animation: settle 1.6s cubic-bezier(0.22, 0.68, 0.18, 1) 0.2s both;
}
.blk-bottom {
  bottom: 0;
  left: 0;
  width: 85%;
  height: calc(50% - 4px);
  background: var(--vial);
}
@keyframes settle {
  0% {
    transform: translate(3%, -34%);
  }
  55% {
    transform: translate(0, 6%);
  }
  78% {
    transform: translate(0, -2%);
  }
  100% {
    transform: none;
  }
}
.stack-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .blk-top {
    animation: none;
  }
  .button {
    transition: none;
  }
}

/* The name as a dictionary entry */

.entry {
  padding: clamp(22px, 3.6vw, 40px);
  background: var(--surface);
  border: 1px solid var(--stone);
  border-radius: calc(var(--radius) + 4px);
}
.entry-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.entry-word {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.8rem, 2rem + 3.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(transparent 64%, var(--vial) 64%, var(--vial) 90%, transparent 90%);
  padding-inline: 2px;
}
.entry-ipa,
.entry-pos {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--slate);
}
.entry-pos {
  font-style: italic;
}
.entry-origin {
  margin-top: 14px;
  color: var(--slate);
  font-size: 0.98rem;
}
.entry-sense {
  margin-top: 10px;
  font-family: var(--display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
}
.entry-rows {
  margin-top: 18px;
  border-top: 1px solid var(--stone);
}
.entry-rows > div {
  display: grid;
  gap: 2px 18px;
  padding-top: 12px;
}
.entry-rows dt {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 4px;
}
.entry-rows dd {
  margin: 0;
}
.entry-rows b {
  font-weight: 650;
}
.name-claim {
  align-self: end;
}
.name-claim p {
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  line-height: 1.3;
  max-width: 24ch;
}
.name-after {
  margin-top: 18px;
}
@media (min-width: 720px) {
  .entry-rows > div {
    grid-template-columns: 6.5rem 1fr;
  }
}

/* Sections */

.section {
  padding-block: clamp(64px, 9vw, 112px);
}
.section-tight {
  padding-block: clamp(40px, 6vw, 72px);
}
.section-tinted {
  background: var(--tint);
  border-block: 1px solid var(--stone);
}
.page-head {
  padding-block: clamp(56px, 8vw, 104px) clamp(16px, 3vw, 32px);
}
.page-head h1 {
  max-width: 20ch;
}
.page-head-tall {
  padding-bottom: clamp(80px, 12vw, 160px);
}

.trio {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
.trio > div {
  border-top: 1.5px solid var(--ink);
  padding-top: 20px;
}
.trio p {
  margin-top: 10px;
  color: var(--slate);
}

.principles {
  display: grid;
  gap: 0 48px;
  margin-top: 40px;
  padding: 0;
  list-style: none;
}
.principles li {
  border-top: 1px solid var(--stone);
  padding-block: 22px 26px;
}
.principles p {
  margin-top: 8px;
  color: var(--slate);
  max-width: 46ch;
}

.split {
  display: grid;
  gap: 20px 56px;
}
.split > div > p + p,
.split > div > ul + p,
.split > div > p + ul {
  margin-top: 16px;
}

/* Product */

.product {
  display: grid;
  gap: 28px 56px;
  padding: clamp(24px, 4.5vw, 52px);
  background: var(--surface);
  border: 1px solid var(--stone);
  border-radius: calc(var(--radius) + 4px);
}
.product-name {
  margin-top: 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.7rem + 2.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.product-tag {
  margin-top: 12px;
  color: var(--slate);
  max-width: 26ch;
}
.product-body > p + p,
.product-body > p + .links {
  margin-top: 18px;
}
.product-full .product-body h3 {
  margin-top: 30px;
}
.product-full .product-body h3:first-child {
  margin-top: 0;
}
.product-full .product-body h3 + p,
.product-full .product-body h3 + ul {
  margin-top: 10px;
}
.product-head .links {
  margin-top: 22px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--stone);
  border-radius: 999px;
  color: var(--ink);
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--vial);
}
.limits {
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 12px;
  color: var(--slate);
  font-size: 0.98rem;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 600;
}

.ticks,
.crosses {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}
.ticks li,
.crosses li {
  position: relative;
  padding-left: 28px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: var(--vial);
}
.crosses li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 11px;
  height: 1.5px;
  background: var(--slate);
}

/* Facts, cards, notes */

.facts {
  border-top: 1px solid var(--stone);
}
.facts > div {
  display: grid;
  gap: 4px 24px;
  padding-block: 14px;
  border-bottom: 1px solid var(--stone);
}
.facts dt {
  padding-top: 3px;
}
.facts dd {
  margin: 0;
  overflow-wrap: break-word;
}

.duo {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}
.card,
.note {
  background: var(--surface);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
}
.card p,
.note p {
  margin-top: 10px;
}
.aside-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

/* Prose pages */

.prose {
  max-width: calc(72ch + 2 * var(--gutter));
  margin-inline: 0;
}
.prose h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  margin-top: 2.2em;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose ul {
  margin-top: 0.9em;
}
.prose ul {
  padding-left: 1.25em;
}
.prose li + li {
  margin-top: 0.35em;
}

/* Contact form */

.contact-form {
  display: grid;
  gap: 18px;
  max-width: 44rem;
}
.field {
  display: grid;
  gap: 6px;
}
.field-row {
  display: grid;
  gap: 18px;
}
.field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.optional {
  font-weight: 400;
  color: var(--slate);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #b9c4c1;
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--slate) 50%), linear-gradient(135deg, var(--slate) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 500;
}
.form-status-error {
  background: #fbeeea;
  border: 1px solid #e3b4a6;
  color: #7a2e1b;
}
.form-note {
  color: var(--slate);
  font-size: 0.95rem;
}

/* Contact band */

.band {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(56px, 8vw, 96px);
}
.band h2 {
  color: var(--paper);
}
.band p {
  margin-top: 16px;
  max-width: 56ch;
  color: #c9d3d1;
  font-size: 1.125rem;
}
.band a {
  color: var(--vial);
}
.band a:hover {
  color: var(--surface);
}
.band .band-action {
  margin-top: 28px;
}
.band .button-light {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.band .button-light:hover {
  background: var(--vial);
  border-color: var(--vial);
  color: var(--ink);
}
.band :focus-visible {
  outline-color: var(--vial);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--stone);
  padding-top: clamp(48px, 6vw, 72px);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
}
.footer-grid ul {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.footer-head {
  margin-bottom: 12px;
}
.footer-grid a {
  color: var(--ink);
  text-decoration: none;
}
.footer-grid a:hover {
  text-decoration: underline;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--slate);
}
.brand-small .wordmark {
  font-size: 1.2rem;
}
.footer-legal {
  margin-top: clamp(40px, 6vw, 64px);
  padding-block: 22px 32px;
  border-top: 1px solid var(--stone);
  color: var(--slate);
  font-size: 0.85rem;
}
.footer-legal p + p {
  margin-top: 6px;
}

/* Larger screens */

@media (min-width: 720px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
  .principles {
    grid-template-columns: 1fr 1fr;
  }
  .duo {
    grid-template-columns: 1fr 1fr;
  }
  .facts > div {
    grid-template-columns: minmax(12rem, 16rem) 1fr;
  }
}
@media (min-width: 880px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  }
  .split-wide-first {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }
  .product {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
  .footer-grid {
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  }
}

@media print {
  .site-header nav,
  .band,
  .stack,
  .stack-caption,
  .actions {
    display: none;
  }
  body {
    background: #fff;
  }
}
