/* Colors */
:root {
  color-scheme: light dark;
  --paper: #f7f4ec;
  --tint: #efeadd;
  --ink: #17231e;
  --muted: #4f5c55;
  --rule: #d6d0bf;
  --accent: #1f5c46;
  --accent-strong: #15432f;
  --on-accent: #fbf9f3;
  --marker: #96590a;
  --error: #a3201a;
  --error-tint: #f8e4e0;
  --success-tint: #dfeee6;
  --band: #15432f;
  --on-band: #fbf9f3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121a16;
    --tint: #19231e;
    --ink: #efeade;
    --muted: #a9b3ac;
    --rule: #2f3b34;
    --accent: #84d1b1;
    --accent-strong: #a5e0c8;
    --on-accent: #0e1a15;
    --marker: #e3a750;
    --error: #ffa79d;
    --error-tint: #3a1d1a;
    --success-tint: #16302a;
    --band: #1b4d3a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

h1,
h2,
h3,
.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-strong);
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--paper);
}

.skip-link:focus {
  left: 0.5rem;
  color: var(--paper);
}

/* Header and footer */
.site-header {
  /* A horizon line, nodding to the old site's wheat field banner. */
  border-top: 6px solid var(--marker);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
  padding-block: 1rem;
}

.brand {
  margin: 0;
  color: var(--ink);
  font-size: 1.6rem;
  text-decoration: none;
}

.brand:hover {
  color: var(--accent);
}

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

.nav-list a {
  color: var(--ink);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.nav-list a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
  padding-block: 2.5rem;
}

.site-footer p {
  margin: 0;
}

/* Page openers */
.hero {
  padding-block: clamp(3.5rem, 10vw, 7.5rem);
}

.page-intro {
  padding-block: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-intro h1 {
  font-size: clamp(2.3rem, 6vw, 3.75rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--marker);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lede {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  line-height: 1.5;
}

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

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

.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 3px;
  background: var(--accent);
  color: var(--on-accent);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-strong);
  color: var(--on-accent);
}

/* Sections */
.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section--flush {
  padding-top: 0.5rem;
}

.section--tinted {
  background: var(--tint);
}

.cta {
  padding-block: clamp(3rem, 7vw, 4.5rem);
  background: var(--band);
  color: var(--on-band);
}

.cta h2 {
  margin-bottom: 0.5rem;
}

.cta p:last-child {
  margin: 1.5rem 0 0;
}

.button--light,
.button--light:hover {
  background: var(--on-band);
  color: var(--band);
}

.button--light:hover {
  text-decoration: underline;
}

.cta :focus-visible {
  outline-color: currentColor;
}

/* Numbered service summary */
.service-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: service;
  border-top: 1px solid var(--rule);
}

.service-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--rule);
  counter-increment: service;
}

.service-list li::before {
  grid-row: 1 / span 2;
  content: counter(service, decimal-leading-zero);
  color: var(--marker);
  font-weight: 600;
  line-height: 1.9;
}

.service-list h3,
.service-list p {
  grid-column: 2;
  margin: 0;
}

.service-list h3 a {
  color: var(--ink);
  text-decoration: none;
}

.service-list h3 a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.service-list p {
  color: var(--muted);
}

.columns {
  display: grid;
  gap: 2rem;
}

.columns p {
  margin: 0;
  color: var(--muted);
}

/* Services page */
.service {
  display: grid;
  gap: 1rem 3rem;
  padding-block: 2.25rem;
  border-top: 1px solid var(--rule);
}

.service h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.service p {
  margin: 0;
  color: var(--muted);
}

.service ul {
  margin: 0;
  padding-left: 1.15rem;
}

.service li {
  margin-bottom: 0.4rem;
}

.service li::marker {
  color: var(--marker);
}

/* About page */
.about {
  display: grid;
  gap: 2.5rem 4rem;
}

.about__body {
  max-width: 40rem;
}

.about__body .button {
  margin-top: 0.75rem;
}

.facts {
  margin: 0;
  border-top: 1px solid var(--rule);
}

.facts div {
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

/* Contact form */
.form-wrap {
  padding-bottom: 1rem;
}

.form {
  max-width: 38rem;
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--muted);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.field [aria-invalid="true"] {
  border: 2px solid var(--error);
}

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

.notice {
  max-width: 38rem;
  margin-bottom: 1.75rem;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid;
}

.notice--error {
  border-color: var(--error);
  background: var(--error-tint);
}

.notice--success {
  border-color: var(--accent);
  background: var(--success-tint);
}

/* Hidden from people; bots tend to fill it in. */
.form-trap {
  position: absolute;
  left: -9999px;
}

/* Wider screens */
@media (min-width: 48rem) {
  .service-list li {
    grid-template-columns: 3rem minmax(0, 18rem) minmax(0, 1fr);
    column-gap: 1rem;
    align-items: baseline;
  }

  .service-list li::before {
    grid-row: auto;
  }

  .service-list h3,
  .service-list p {
    grid-column: auto;
  }

  .columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
  }

  .service {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding-block: 3rem;
  }

  .about {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}
