:root {
  --blue: #123a6b;
  --green: #2b5d43;
  --open: #1c4a57;
  --on-blue: #ffffff;
  --on-blue-muted: #c3d3e8;
  --paper: #f5f7f6;
  --ink: #0e2a4d;
  --ink-muted: #4a5f7a;
  --rule: #c5d0dc;
  --signal: #ffc83d;
  --error: #b3261e;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.875rem, 5.4vw, 5.25rem);
  font-weight: 300;
  letter-spacing: -0.015em;
}

h2 {
  max-width: 20ch;
  font-size: clamp(2.125rem, 3.8vw, 3.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.625rem;
  line-height: 1.2;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

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

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.band,
.hero {
  background: var(--blue);
  color: var(--on-blue);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.band .eyebrow {
  color: var(--on-blue-muted);
}

.skip-link {
  position: absolute;
  top: -4rem;
  left: 1rem;
  z-index: 2;
  padding: 0.5rem 1rem;
  background: var(--signal);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

/* Hero */

.hero {
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  padding-top: 5rem;
}

.masthead {
  position: absolute;
  inset-inline: 0;
  z-index: 1;
  color: var(--on-blue);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.wordmark {
  display: inline-flex;
  gap: 0.625rem;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
}

.wordmark img {
  outline: 1px solid rgb(255 255 255 / 0.5);
  border-radius: 3px;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
}

.masthead nav a {
  padding-block: 0.25rem;
  color: var(--on-blue-muted);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current='page'] {
  color: var(--on-blue);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

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

.hero__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3.5rem, 6vw, 5.5rem);
}

.hero__lede {
  max-width: 34rem;
  margin-top: 1.75rem;
  color: var(--on-blue-muted);
  font-size: 1.1875rem;
}

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

.button {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  border-radius: 3px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms;
}

.button:hover {
  background: #ffd768;
}

.button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.text-link {
  text-underline-offset: 0.25em;
}

/* Why a paddock */

.statement {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 1rem 2.5rem;
}

.statement > div {
  display: grid;
  gap: 1.75rem;
  max-width: 50rem;
}

.statement > div > p:last-child {
  max-width: 40rem;
  color: var(--ink-muted);
}

.statement__lead {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.625rem);
  font-weight: 300;
  line-height: 1.22;
}

/* Where we work */

.domains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  color: var(--on-blue);
}

.domain {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1rem, 3vw, 3rem);
}

.domain--blue {
  background: var(--blue);
}

.domain--paddock {
  background: var(--green);
}

.domain--open {
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.05) 0 1.5px, transparent 1.5px 10px),
    var(--open);
}

.domain__kicker {
  margin-bottom: 0.5rem;
  color: var(--on-blue-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.domain__summary {
  margin-block: 1.25rem 1.75rem;
}

.domain li {
  padding-block: 0.625rem;
  border-top: 1px solid rgb(255 255 255 / 0.3);
  font-size: 0.9375rem;
}

/* What we build */

.section__intro {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: var(--ink-muted);
}

.practices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.practice {
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.practice__brand {
  margin-bottom: 0.5rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.practice h3 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 300;
}

.practice h3 + p {
  max-width: 32rem;
  margin-top: 0.875rem;
}

/* The fence */

.plots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px dashed var(--on-blue-muted);
  border-left: 1px dashed var(--on-blue-muted);
}

.plots li {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-right: 1px dashed var(--on-blue-muted);
  border-bottom: 1px dashed var(--on-blue-muted);
}

.plots p {
  max-width: 30rem;
  margin-top: 0.75rem;
  color: var(--on-blue-muted);
}

/* How we work */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.steps li {
  position: relative;
  padding: 2rem 2rem 0 0;
  border-top: 1px solid var(--ink);
}

.steps li::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}

.steps p {
  margin-top: 0.75rem;
  color: var(--ink-muted);
}

/* Call to action */

.cta {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.cta p {
  max-width: 36rem;
  margin-block: 1.25rem 2rem;
  color: var(--on-blue-muted);
}

.colophon {
  padding-block: 2rem;
  color: var(--on-blue-muted);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Contact page */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem 2.5rem;
}

.contact-hints {
  display: grid;
  gap: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 50rem;
}

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

.field--wide {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 500;
}

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

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.6875rem 0.75rem;
  border: 1px solid var(--ink-muted);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.field :is(input, select, textarea)[aria-invalid='true'] {
  border-color: var(--error);
  box-shadow: inset 0 0 0 1px var(--error);
}

.field__error {
  color: var(--error);
  font-size: 0.9375rem;
}

.turnstile {
  min-height: 65px;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.contact-form .button {
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.contact-sent h2 {
  max-width: none;
  outline: none;
}

.contact-sent p {
  margin-top: 1rem;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

@media (max-width: 60rem) {
  .hero__body {
    grid-template-columns: 1fr;
  }

  .statement,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .domains {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2.5rem;
  }
}

@media (max-width: 38rem) {
  .hero {
    padding-top: 7.5rem;
  }

  .plots,
  .steps,
  .practices,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .steps li {
    padding-right: 0;
  }
}

/* Hero chart */

.chart {
  display: block;
  width: 100%;
  height: auto;
}

.chart__contour,
.chart__coast,
.chart__wire,
.chart__posts,
.chart__trail,
.chart__frame {
  fill: none;
}

.chart__contour {
  stroke: var(--on-blue-muted);
  stroke-opacity: 0.45;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.chart__sounding {
  fill: var(--on-blue-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.chart__land {
  fill: var(--green);
}

.chart__open {
  fill: var(--open);
}

.chart__hatch {
  stroke: var(--on-blue);
  stroke-opacity: 0.14;
  stroke-width: 1.5;
}

.chart__coast {
  stroke: var(--on-blue);
  stroke-width: 2;
}

.chart__wire {
  stroke: var(--on-blue);
  stroke-width: 1;
}

.chart__posts {
  stroke: var(--on-blue);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 0 26;
}

.chart__trail {
  stroke: var(--signal);
  stroke-opacity: 0.5;
  stroke-width: 1.25;
  stroke-dasharray: 2 6;
}

.chart__frame {
  stroke: var(--on-blue);
  stroke-width: 1;
}

.chart__agent {
  fill: var(--signal);
}

.chart__kicker {
  fill: var(--on-blue-muted);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.04em;
}

.chart__name {
  fill: var(--on-blue);
  font-family: var(--font-display);
  font-size: 23px;
}

/* Odds and ends for the Razor version */

.hero .eyebrow {
  color: var(--on-blue-muted);
}

/* Contact form honeypot: off screen, so people never see it */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

