/*
 * Vectis Consulting — site stylesheet, v4 (no framework).
 * Inter for text and headings (its display optical size for the large headlines), JetBrains
 * Mono for genuine technical snippets only. Both under the SIL Open Font License 1.1, subset
 * to Latin and self-hosted (licences in /assets/fonts/).
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/inter-var-latin.a2da250f62.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-regular-latin.abd92bb69f.woff2") format("woff2");
}

:root {
  --ink: #0f1b2d;
  --navy: #1a2e4a;
  --blue: #2d5086;
  --accent: #4a90d9;
  --accent-light: #9cc5f2;
  --text: #3d4a5c;
  --muted: #56637a;
  --on-dark: #c9d4e3;
  --rule: #dce2ea;
  --rule-dark: rgba(201, 212, 227, 0.18);
  --field: #7a879a;
  --wash: #eef2f7;
  --danger: #9b1c1c;
  /* The one green: only for the primary action (questionnaire), its hover and focus states. */
  --go: #15803d;
  --go-hover: #166534;
  --danger-wash: #fdf3f3;
  --measure: 40rem;
  --container: 76rem;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.017em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.2rem, 1.55rem + 2.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 32;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  letter-spacing: -0.024em;
  font-variation-settings: "opsz" 32;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.005em;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

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

a:hover {
  color: var(--navy);
  text-decoration-thickness: 2px;
}

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

strong {
  color: var(--ink);
  font-weight: 620;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
  color: var(--ink);
}

/* ------------------------------------------------------------------ dark bands */

.dark {
  background: var(--navy);
  color: var(--on-dark);
}

.dark h1,
.dark h2,
.dark h3,
.dark strong {
  color: #ffffff;
}

.dark a:not(.btn) {
  color: #ffffff;
}

.dark :focus-visible {
  outline-color: var(--accent-light);
}

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

.site-header {
  background: var(--navy);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #ffffff;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-size: 1.32rem;
  font-weight: 640;
  letter-spacing: -0.015em;
}

.brand-sub {
  margin-top: 0.24rem;
  color: var(--accent-light);
  font-size: 0.62rem;
  font-weight: 560;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.lang {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--on-dark);
  font-size: 0.975rem;
  text-decoration: none;
}

.site-nav a:hover,
.lang:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.5em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.975rem;
  font-weight: 620;
  text-decoration: none;
}

.cta-short {
  display: none;
}

@media (max-width: 50rem) {
  .cta-long {
    display: none;
  }

  .cta-short {
    display: inline;
  }
}

.lang-item {
  padding-left: 1.4rem;
  border-left: 1px solid var(--rule-dark);
}

.nav-cta {
  margin-left: 1.6rem;
}

.brand + .lang {
  margin-left: auto;
  padding-left: 0;
  border-left: 0;
}

@media (max-width: 50rem) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand cta" "nav nav";
    align-items: center;
    gap: 0.6rem 1rem;
  }

  .brand {
    grid-area: brand;
  }

  .nav-cta {
    grid-area: cta;
    margin-left: 0;
  }

  .site-nav {
    grid-area: nav;
    margin-left: 0;
  }

  .site-nav ul {
    gap: 0.2rem 1.1rem;
  }

  .lang-item {
    padding-left: 0;
    border-left: 0;
  }
}

/* ------------------------------------------------------------------ hero (home) */

.hero {
  padding-block: clamp(4rem, 2.5rem + 6vw, 8rem) clamp(4.5rem, 3rem + 6vw, 8.5rem);
}

.hero h1 {
  max-width: 12ch;
  margin-bottom: 0.45em;
  font-size: clamp(3.1rem, 1.6rem + 5.6vw, 6.25rem);
  line-height: 0.96;
  letter-spacing: -0.042em;
}

.hero .lead {
  max-width: 40rem;
  color: var(--on-dark);
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
}

.lead {
  max-width: 44rem;
  color: var(--text);
  font-size: clamp(1.12rem, 1.04rem + 0.35vw, 1.27rem);
  line-height: 1.55;
}

/* Real report excerpts, shown as paper */

.paper {
  margin: 0;
}

.paper img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 16px 40px rgba(15, 27, 45, 0.1);
}

.dark .paper img {
  border: 0;
  box-shadow: 0 2px 6px rgba(5, 12, 24, 0.25), 0 28px 60px rgba(5, 12, 24, 0.45);
}

.paper figcaption {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.dark .paper figcaption {
  color: var(--on-dark);
}

/* ------------------------------------------------------------------ inner page head */

.page-head {
  padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(3rem, 2rem + 3.5vw, 4.5rem);
}

.page-head h1 {
  max-width: 20ch;
  font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.6rem);
  letter-spacing: -0.035em;
}

.page-head .lead {
  margin-bottom: 0;
  color: var(--on-dark);
}

/* ------------------------------------------------------------------ bands and sections */

.band {
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem);
}

.band--wash {
  background: var(--wash);
}

.band h2 {
  margin-bottom: 0.8rem;
}

.band-intro {
  max-width: var(--measure);
}

.section > .container {
  padding-block: clamp(2.5rem, 2rem + 2.5vw, 4rem);
}

.section + .section > .container {
  border-top: 1px solid var(--rule);
}

.section h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.4rem, 1.2rem + 0.9vw, 1.8rem);
}

.section > .container > p {
  max-width: var(--measure);
}

.small {
  max-width: 48rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.dark .small {
  color: var(--on-dark);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 5rem);
}

@media (max-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ------------------------------------------------------------------ columns (services, commitments) */

.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem 2.5rem;
  margin-top: 2.25rem;
}

@media (min-width: 40rem) {
  .cols--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 56rem) {
  .cols--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .cols--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.cols > div {
  padding-top: 1.25rem;
  border-top: 2px solid var(--navy);
}

.cols h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.cols p {
  margin: 0;
}

.cols .meta {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-link {
  margin: 2rem 0 0;
}

/* ------------------------------------------------------------------ report previews */

.previews {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 56rem) {
  .previews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

.preview {
  margin: 0;
}

.preview a {
  display: block;
}

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 18px 44px rgba(15, 27, 45, 0.12);
}

.preview figcaption {
  margin-top: 0.85rem;
  color: var(--text);
  font-size: 0.95rem;
}

.preview figcaption strong {
  display: block;
}

.previews-note {
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ------------------------------------------------------------------ launch offer and closing call */

.launch {
  padding-block: 1.75rem;
  background: var(--wash);
}

.launch .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.launch p {
  margin: 0;
  max-width: 44rem;
  color: var(--ink);
  font-size: 1.05rem;
}

.closing h2 {
  margin-bottom: 0;
}

.closing-note {
  max-width: 34rem;
  margin: 0.6rem 0 0;
  color: var(--on-dark);
}

.closing .cta {
  margin: 0;
}

.closing .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.closing .actions {
  margin: 0;
}

.btn--ghost {
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: #ffffff;
}

/* ------------------------------------------------------------------ actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin: 2.25rem 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font: inherit;
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--blue);
  color: #ffffff;
}

.btn--go,
.btn.btn--go,
.dark .btn.btn--go {
  background: var(--go);
  color: #ffffff;
}

.btn--go:hover,
.btn.btn--go:hover,
.dark .btn.btn--go:hover,
.btn--go[aria-current="page"] {
  background: var(--go-hover);
  color: #ffffff;
}

.btn--go:focus-visible,
.dark .btn.btn--go:focus-visible {
  outline: 3px solid var(--go);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffffff;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem 1.75rem;
  margin: 2.25rem 0 0;
}

.cta .btn--go {
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

.cta-note {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.dark .cta-note {
  color: var(--on-dark);
}

.cta-alt {
  display: inline-block;
  padding-top: 0.85rem;
  font-weight: 600;
}

.btn--large {
  min-height: 3.4rem;
  padding: 0.9rem 1.75rem;
  font-size: 1.07rem;
}

.dark .btn {
  background: #ffffff;
  color: var(--navy);
}

.dark .btn:hover {
  background: var(--wash);
  color: var(--ink);
}

.text-link {
  font-weight: 600;
  text-decoration: none;
}

.text-link::after {
  content: " →";
}

.text-link:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ tables (as in the report) */

.table-wrap {
  margin: 1.75rem 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.985rem;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--wash);
  color: var(--ink);
  font-weight: 620;
}

tbody th {
  color: var(--ink);
  font-weight: 560;
}

.table-narrow {
  max-width: 48rem;
}

@media (max-width: 40rem) {
  .stack-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .stack-table tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .stack-table td,
  .stack-table tbody th {
    display: block;
    padding: 0.15rem 0;
    border: 0;
  }

  .stack-table td::before,
  .stack-table tbody th::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
  }
}

/* ------------------------------------------------------------------ timeline (home) */

.timeline {
  position: relative;
  max-width: 48rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline > li {
  position: relative;
  padding: 0 0 2.1rem 2.6rem;
  counter-increment: step;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

/* The thin accent line runs from each dot to the next one, and stops at the last dot. */
.timeline > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.3rem;
  bottom: -0.38rem;
  left: 0.4rem;
  width: 2px;
  background: var(--accent);
  opacity: 0.6;
}

.timeline > li::before {
  content: "";
  position: absolute;
  top: 0.38rem;
  left: 0;
  width: calc(0.8rem + 2px);
  height: calc(0.8rem + 2px);
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--navy);
}

.timeline h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.timeline h3::before {
  content: counter(step) ". ";
  color: var(--accent-light);
}

.timeline p {
  margin: 0;
  color: var(--on-dark);
}

.timeline code {
  padding: 0.1rem 0.45rem;
  border: 1px solid rgba(201, 212, 227, 0.28);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ lists */

.steps {
  max-width: 46rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps > li {
  position: relative;
  padding: 0 0 1.6rem 2.6rem;
  counter-increment: step;
}

.steps > li:last-child {
  padding-bottom: 0;
}

.steps > li::before {
  content: counter(step) ".";
  position: absolute;
  top: -0.1rem;
  left: 0;
  color: var(--blue);
  font-size: 1.2rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  margin-bottom: 0.3rem;
  font-size: 1.125rem;
}

.steps p {
  margin: 0;
}

.steps + p,
.timeline + p {
  margin-top: 2rem;
}

.facts {
  max-width: 48rem;
  margin: 1.5rem 0 0;
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  color: var(--ink);
  font-weight: 600;
}

.facts dd {
  margin: 0;
}

@media (max-width: 40rem) {
  .facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.readers > div + div {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.readers h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.readers p {
  margin: 0;
}

.plain {
  max-width: var(--measure);
  padding-left: 1.2rem;
}

.plain li + li {
  margin-top: 0.35rem;
}

/* ------------------------------------------------------------------ prose (legal pages) */

.prose > * {
  max-width: var(--measure);
}

.prose > .table-wrap {
  max-width: 50rem;
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.45rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.5rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------------ contact */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (max-width: 56rem) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.aside h2 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.aside p {
  font-size: 0.97rem;
}

.aside > div + div {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.aside > div > :last-child {
  margin-bottom: 0;
}

.choices {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  max-width: 60rem;
}

@media (min-width: 48rem) {
  .choices {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.75rem;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: #ffffff;
}

.choice h2 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.choice p {
  margin-bottom: 1.25rem;
}

.choice .btn {
  margin-top: auto;
}

.choice .cta-note {
  margin-bottom: 0;
}

.choice--go {
  border: 2px solid var(--go);
}

.choice-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.85rem;
  margin-bottom: 0.5rem;
}

.choice-head h2 {
  margin: 0;
}

.choice-flag {
  color: var(--go);
  font-size: 0.9rem;
  font-weight: 650;
}

.write-line {
  margin-top: 1.75rem;
}

/* Form markup comes from intake/lib/form.php. */

.group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.group > legend {
  margin-bottom: 0.75rem;
  padding: 0;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 650;
}

.group {
  display: grid;
  gap: 1.1rem;
}

.choice-group > legend {
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.choice-group {
  gap: 0.4rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.option input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  accent-color: var(--navy);
}

.option label,
.field--toggle label {
  color: var(--text);
  font-weight: 450;
}

.field-note {
  margin: 0.2rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

/* "Not publicly reachable yet" swaps the URL for a description, without JavaScript. */
.url-block:has(#f-not-public:checked) .field--app_url {
  display: none;
}

.url-block:not(:has(#f-not-public:checked)) .field--desc {
  display: none;
}

.more {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.more > summary {
  padding: 1rem 0;
  color: var(--blue);
  font-weight: 620;
  cursor: pointer;
}

.more > summary:hover {
  color: var(--navy);
}

.more-body {
  display: grid;
  gap: 1.35rem;
  padding: 0.25rem 0 1.5rem;
}

.form-after {
  margin: 0;
  color: var(--muted);
}

.form-aside-cta {
  margin-top: 0.5rem;
}

.intake-form {
  display: grid;
  gap: 1.35rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.35rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field label {
  color: var(--ink);
  font-weight: 600;
}

.req {
  color: var(--danger);
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.counter {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.counter.is-over {
  color: var(--danger);
  font-weight: 700;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--field);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
}

.field textarea {
  resize: vertical;
}

.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.8rem) 50%;
  background-size: 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  border-color: var(--blue);
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--danger);
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 600;
}

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.4rem 0.75rem;
}

.field--check .field-error {
  grid-column: 1 / -1;
}

.field--check input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}

.field--check label {
  color: var(--text);
  font-weight: 450;
}

.field--hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.error-summary {
  padding: 1.25rem 1.4rem;
  border: 2px solid var(--danger);
  border-radius: 6px;
  background: var(--danger-wash);
  color: var(--ink);
}

.error-summary:focus {
  outline: 3px solid var(--danger);
  outline-offset: 2px;
}

.error-summary__title {
  margin-bottom: 0.5rem;
  color: var(--danger);
  font-size: 1.15rem;
}

.error-summary ul {
  margin: 0;
  padding-left: 1.2rem;
}

.error-summary a {
  color: var(--danger);
  font-weight: 600;
}

.error-summary > :last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ 404 */

.notfound {
  padding-block: clamp(3rem, 2rem + 5vw, 6rem);
}

.notfound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 3rem;
}

.notfound h1,
.notfound .h1-like {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 32;
}

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

.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  font-size: 0.95rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer a:hover {
  color: var(--accent-light);
}

.site-footer :focus-visible {
  outline-color: var(--accent-light);
}

.footer-inner {
  display: grid;
  gap: 1rem;
  padding-block: 3rem 3.25rem;
}

.footer-inner p {
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.footer-brand .brand-mark {
  width: 1.9rem;
  height: 1.9rem;
}

.footer-brand strong {
  color: #ffffff;
}

.footer-brand span {
  color: var(--on-dark);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer .small {
  color: var(--on-dark);
}

/* ------------------------------------------------------------------ misc */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media print {
  .site-nav,
  .lang,
  .skip-link,
  .site-footer {
    display: none;
  }

  .dark,
  .site-header {
    background: none;
    color: #000000;
  }
}
