@font-face {
  font-family: "Instrument Sans";
  src: url("../images/67e95a303757b975d2da1b5e_Instrument%20Sans%20Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("../images/67e95a303757b975d2da1b62_InstrumentSans%20SemiBold.woff2") format("woff2");
  font-display: swap;
  font-weight: 600;
}

:root {
  color-scheme: light;
  --primary: #1B6FA8;
  --primary-dark: #0F4C75;
  --secondary: #2CA6A4;
  --ink: #17202a;
  --muted: #6b7280;
  --line: #ececf0;
  --fill: #f4f5f7;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* One column, one measure. Every edge on this page aligns to it. */
main {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 88px 24px 96px;
}

a {
  color: inherit;
}

.brand {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

h1 {
  margin: 40px 0 0;
  font-size: clamp(2rem, 7vw, 2.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lede {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Calling is the fastest route to a booked appointment, so it is the only
   filled colour on the page. Nothing else competes with it. */
.call {
  display: block;
  margin-top: 32px;
  padding: 17px 20px 19px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease;
}

.call:hover,
.call:active {
  background: var(--primary-dark);
}

.call:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.call__label {
  display: block;
  color: rgb(255 255 255 / 78%);
  font-size: 0.8125rem;
  font-weight: 600;
}

.call__number {
  display: block;
  margin-top: 2px;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.or {
  margin: 48px 0 24px;
  color: var(--muted);
  font-size: 0.9375rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.8125rem;
  font-weight: 600;
}

label span,
.field-note {
  color: var(--muted);
  font-weight: 400;
}

/* Fields are defined by tone, not by outlines — no strokes to align. */
input,
textarea {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  background: var(--fill);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease;
}

input {
  height: 52px;
  padding: 0 16px;
}

textarea {
  min-height: 116px;
  padding: 15px 16px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
textarea:focus {
  background: #fff;
  box-shadow:
    inset 0 0 0 1.5px var(--primary),
    0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
}

.field-note {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

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

button {
  height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: opacity 150ms ease;
}

button:hover,
button:active {
  opacity: 0.86;
}

button:disabled {
  cursor: wait;
  opacity: 0.5;
}

/* Takes up no room until it has something to say. */
.form-status {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form-status:empty {
  display: none;
}

.form-status[data-state="success"] {
  color: color-mix(in srgb, var(--secondary) 78%, #000);
}

.form-status[data-state="error"] {
  color: #a51d2d;
}

.noscript-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.office {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.office p,
.office address {
  margin: 0;
}

.office address {
  font-style: normal;
}

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

@media (max-width: 520px) {
  main {
    padding: 56px 24px 80px;
  }

  h1 {
    margin-top: 32px;
  }
}

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