:root {
  --enamel: #e7ecee;
  --ink: #142028;
  --shirt: #163044;
  --copper: #8d3d28;
  --brass: #c4a15a;
  --line: #c5d0d4;
  --muted: #3c4e58;
  --sheet: #f7f9f9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--enamel);
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--copper); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  z-index: 3;
}

.skip:focus { top: 0.5rem; }

.top {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  align-items: flex-end;
  padding: 1.15rem 4vw 1.05rem;
  background: var(--shirt);
  color: var(--enamel);
}

.brand a {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  letter-spacing: -0.03em;
  color: var(--enamel);
  text-decoration: none;
  line-height: 0.88;
}

.brand p {
  margin: 0.4rem 0 0;
  color: #d5dee3;
  font-size: 1.05rem;
}

.plate {
  display: block;
  text-decoration: none;
  color: var(--enamel);
  border-left: 4px solid var(--brass);
  padding: 0.15rem 0 0.15rem 0.85rem;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: 0.01em;
}

.plate span {
  display: block;
  margin-bottom: 0.28rem;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 0.98rem;
  color: #d5dee3;
}

.routes {
  display: flex;
  flex-wrap: wrap;
  background: var(--sheet);
  border-bottom: 1px solid var(--line);
}

.routes a {
  flex: 1 1 8.5rem;
  padding: 0.72rem 0.85rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.22rem;
  letter-spacing: 0.01em;
}

.routes a:hover { background: #dce4e7; }

.routes a[aria-current="page"] {
  background: var(--ink);
  color: var(--enamel);
}

.routes a[aria-current="page"]:hover { background: var(--ink); }

h1 {
  margin: 1.15rem 4vw 0.55rem;
  max-width: 16ch;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-weight: 650;
  font-size: clamp(2.7rem, 6.4vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 0.55rem;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.lede,
.split,
.ledger,
.people,
.page,
.towns {
  margin-left: 4vw;
  margin-right: 4vw;
}

.lede {
  max-width: 38rem;
  margin-top: 0;
  font-size: 1.35rem;
}

.hero img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}

.split {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.15fr);
  gap: 1.6rem 2rem;
  align-items: start;
  margin-top: 2.4rem;
}

.split p { max-width: 38rem; }

.act {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--enamel);
  text-decoration: none;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
}

.act:hover { background: var(--copper); }

.trio {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 0.7rem;
  margin: 2.2rem 4vw 0;
}

.trio a {
  color: inherit;
  text-decoration: none;
}

.trio img {
  width: 100%;
  height: 19rem;
  object-fit: cover;
}

.trio figcaption {
  padding: 0.45rem 0 0.2rem;
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.25rem;
}

.ledger { margin-top: 2.8rem; }

table {
  width: min(100%, 58rem);
  border-collapse: collapse;
}

th,
td {
  padding: 0.72rem 0.7rem 0.72rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.8rem;
  margin-top: 3rem;
}

.people img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: center 18%;
}

figcaption { margin-top: 0.55rem; max-width: 36rem; }

.towns {
  margin-top: 2.4rem;
  max-width: 40rem;
  color: var(--muted);
}

.page {
  width: min(40rem, 92vw);
  margin-top: 0.4rem;
  padding-bottom: 0.5rem;
}

.page h1 { margin-left: 0; margin-right: 0; }

.page .wide {
  width: min(68rem, calc(100vw - 8vw));
  margin: 0.4rem 0 1.2rem;
}

.page .wide img,
.page figure img {
  width: 100%;
}

.page figure { margin: 0.8rem 0 1.1rem; }

.page p { max-width: 62ch; }

.steps { padding-left: 1.2rem; max-width: 62ch; }

.steps li { margin: 0.45rem 0; }

.job {
  display: grid;
  grid-template-columns: minmax(12rem, 22rem) minmax(0, 36rem);
  gap: 1rem 1.4rem;
  align-items: start;
  margin: 0 4vw;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.job img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.job h2 { font-size: clamp(1.5rem, 2vw, 2rem); }

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0.8rem 0 1.1rem;
}

.pair img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

form label {
  display: block;
  margin: 0 0 0.95rem;
}

input,
textarea {
  display: block;
  width: min(100%, 32rem);
  margin-top: 0.3rem;
  padding: 0.6rem 0.55rem;
  border: 1px solid #7e9098;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea { min-height: 8.5rem; resize: vertical; }

button {
  border: 0;
  border-radius: 0;
  padding: 0.75rem 1.05rem;
  background: var(--ink);
  color: var(--enamel);
  font-family: "Avenir Next Condensed", "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  font-size: 1.35rem;
  cursor: pointer;
}

button:hover { background: var(--copper); }

.note {
  padding: 0.7rem 0.8rem;
  background: #f4e4dc;
  max-width: 36rem;
}

.colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding: 1.4rem 4vw 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.02rem;
}

.colophon p { margin: 0; }

.colophon a { color: var(--copper); }

@media (max-width: 860px) {
  .top { flex-direction: column; align-items: flex-start; }
  .split,
  .people,
  .pair,
  .job,
  .trio { grid-template-columns: 1fr; }
  .trio img { height: 14rem; }
  .routes a { flex-basis: 46%; }
  .people img { max-height: 32rem; aspect-ratio: 3 / 4; }
}

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