:root {
  color-scheme: light;
  --paper: #f4efe3;
  --paper-deep: #e8dfcd;
  --paper-light: #fffdf6;
  --ink: #17271f;
  --ink-soft: #3f5047;
  --green: #1c4a3a;
  --green-dark: #0d2d23;
  --clay: #9f3f27;
  --clay-dark: #722914;
  --mineral: #6d7961;
  --rule: #a99f8b;
  --focus: #ffbf47;
  --error: #8a1d10;
  --shadow: 0 18px 55px rgb(23 39 31 / 12%);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 0.16em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 2px var(--green-dark);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper-light);
  border: 2px solid var(--green-dark);
  color: var(--green-dark);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper-light);
}

.prototype-notice {
  margin: 0;
  padding: 0.72rem max(1rem, calc((100vw - 1280px) / 2));
  background: var(--green-dark);
  color: #fffdf6;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.012em;
  text-align: center;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
  padding-block: 1rem;
}

.brand-lockup > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
}

.brand-lockup strong {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1;
}

.brand-lockup div span {
  color: var(--ink-soft);
  font-size: 1rem;
}

.brand-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  font-family: var(--serif);
  font-size: 1.4rem;
  line-height: 1;
}

.brand-mark-small {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
}

.edition-mark,
.contents-label,
.eyebrow,
.plate-kicker,
.marginalia,
.static-label,
.layer-panel article > span {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.edition-mark {
  color: var(--clay-dark);
}

.contents-rail {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  width: min(100% - 2rem, 1280px);
  margin-inline: auto;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

.contents-rail ol {
  display: flex;
  flex: 1;
  gap: 0.35rem;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contents-rail a {
  display: inline-flex;
  min-height: 44px;
  gap: 0.45rem;
  align-items: center;
  padding: 0.5rem 0.65rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 720;
  text-decoration: none;
}

.contents-rail a span {
  color: var(--clay-dark);
  font-family: var(--serif);
  font-weight: 800;
}

main {
  position: relative;
  overflow: clip;
  border-left: 4px solid var(--clay);
}

section {
  scroll-margin-top: 1rem;
}

.opening-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  gap: clamp(2.5rem, 7vw, 7.5rem);
  align-items: center;
  width: min(100% - 4rem, 1280px);
  min-height: min(780px, calc(100vh - 10rem));
  margin-inline: auto;
  padding-block: clamp(4rem, 9vw, 8rem);
}

.eyebrow,
.plate-kicker {
  margin: 0 0 0.75rem;
  color: var(--clay-dark);
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin-block: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.35rem, 7.1vw, 7.25rem);
  line-height: 0.91;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.98;
}

h3,
h4 {
  margin-block: 0;
  line-height: 1.2;
}

.service-definition {
  max-width: 43rem;
  margin-block: 2.25rem 0.85rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.75rem);
  line-height: 1.42;
}

.opening-copy > p:not(.eyebrow, .service-definition, .boundary-line) {
  max-width: 45rem;
}

.boundary-line {
  max-width: 45rem;
  margin-block: 1.25rem;
  padding: 1rem 1rem 1rem 1.3rem;
  border-left: 4px solid var(--clay);
  background: var(--paper-deep);
  font-weight: 700;
}

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

.action-note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.action-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.button,
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 0;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
}

.button {
  text-decoration: none;
}

.button-primary {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: white;
}

.button-primary:hover {
  background: var(--green);
}

.button-secondary {
  border-color: var(--green-dark);
  background: transparent;
  color: var(--green-dark);
}

.text-link {
  padding-inline: 0;
  color: var(--green-dark);
  text-decoration-line: underline;
}

.opening-study {
  position: relative;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--rule);
  background: var(--paper-light);
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.study-window {
  position: relative;
  min-height: 31rem;
  overflow: hidden;
  border: 1px solid var(--green-dark);
  background:
    repeating-linear-gradient(17deg, transparent 0 17px, rgb(255 253 246 / 38%) 18px 19px),
    radial-gradient(circle at 24% 21%, #c7794f 0 5%, transparent 5.5%),
    radial-gradient(circle at 64% 61%, #73846b 0 18%, transparent 18.5%),
    linear-gradient(145deg, #ddd0b7, #acb09a 52%, #d9aa83);
}

.study-fibre {
  position: absolute;
  height: 2px;
  background: var(--green-dark);
  transform-origin: left;
}

.fibre-one { top: 27%; left: 9%; width: 71%; transform: rotate(28deg); }
.fibre-two { top: 45%; left: 20%; width: 64%; transform: rotate(-16deg); }
.fibre-three { top: 73%; left: 12%; width: 76%; transform: rotate(12deg); }

.study-measure {
  position: absolute;
  border: 1px solid rgb(13 45 35 / 70%);
  border-radius: 50%;
}

.measure-one { width: 11rem; height: 11rem; top: 23%; left: 29%; }
.measure-two { width: 6rem; height: 6rem; right: 10%; bottom: 14%; }

.study-pin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 0.9rem;
  transform: translate(-50%, -50%);
  border: 3px solid var(--paper-light);
  border-radius: 50%;
  background: var(--clay-dark);
}

figure figcaption {
  position: relative;
  z-index: 1;
  margin-top: 0.75rem;
  background: var(--paper-light);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}

figure figcaption strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ink);
}

.fieldbook-section,
.notebook-section,
.request-section {
  width: min(100% - 4rem, 1280px);
  margin-inline: auto;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(11rem, 0.38fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.section-heading .plate-kicker {
  margin: 0;
}

.section-intro {
  max-width: 47rem;
  margin: 0 0 3rem auto;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.layer-inspector {
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  gap: 1.5rem 3rem;
  margin-block: 4rem 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  background: var(--green-dark);
  color: white;
  box-shadow: var(--shadow);
}

.layer-inspector .eyebrow {
  color: #f5bd88;
}

.inspector-lead h3 {
  max-width: 14ch;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 500;
}

.inspector-lead p:last-child {
  color: #e8efe9;
}

.layer-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  border: 1px solid #b9c8bf;
}

.layer-controls button {
  min-width: 0;
  min-height: 48px;
  border: 0;
  border-right: 1px solid #b9c8bf;
  padding: 0.72rem 0.65rem;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.layer-controls button:last-child {
  border-right: 0;
}

.layer-controls button[aria-pressed="true"] {
  background: var(--paper-light);
  color: var(--green-dark);
  box-shadow: inset 0 -5px 0 var(--clay);
}

.layer-state {
  margin: 0;
  color: #f4d4b7;
  font-size: 0.9rem;
}

.layer-panels {
  min-width: 0;
}

.layer-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #8fa296;
  border: 1px solid #8fa296;
}

.layer-panel[hidden] {
  display: none;
}

.layer-panel article {
  min-width: 0;
  padding: 1.25rem;
  background: #173b30;
}

.layer-panel article > span {
  color: #f5bd88;
}

.layer-panel h4 {
  margin-top: 0.65rem;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.layer-panel p {
  color: #e8efe9;
}

.static-field-guide {
  padding-top: 2.2rem;
}

.static-label {
  margin: 0 0 1.5rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--green);
  color: var(--green-dark);
}

.field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-block: 0;
  border-top: 1px solid var(--rule);
}

.field-pair:last-of-type {
  border-bottom: 1px solid var(--rule);
}

.specimen-plate,
.plate-notes {
  min-width: 0;
  margin: 0;
  padding: clamp(1.4rem, 4vw, 3.5rem);
}

.specimen-plate {
  position: relative;
  align-self: stretch;
  border-inline: 1px solid var(--rule);
  background: var(--paper-light);
}

.field-pair:nth-child(odd) .specimen-plate {
  grid-column: 2;
  grid-row: 1;
}

.field-pair:nth-child(odd) .plate-notes {
  grid-column: 1;
  grid-row: 1;
}

.plate-number {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 0 0.75rem auto;
  place-items: center;
  border: 1px solid var(--green-dark);
  background: var(--paper-light);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 800;
}

.specimen-geometry {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border: 1px solid var(--green-dark);
}

.geometry-form {
  background:
    repeating-linear-gradient(72deg, transparent 0 12px, rgb(23 39 31 / 8%) 13px 14px),
    linear-gradient(140deg, #e3c7a8, #b96c45 47%, #8f9e79);
}

.geometry-form i {
  position: absolute;
  border: 2px solid rgb(23 39 31 / 78%);
  border-radius: 50%;
}

.geometry-form i:nth-child(1) { width: 17rem; height: 17rem; top: 12%; left: 10%; }
.geometry-form i:nth-child(2) { width: 10rem; height: 10rem; right: 8%; bottom: 13%; }
.geometry-form i:nth-child(3) { width: 2px; height: 80%; top: 10%; left: 52%; border: 0; background: var(--green-dark); transform: rotate(22deg); }
.geometry-form i:nth-child(4) { width: 72%; height: 2px; top: 47%; left: 14%; border: 0; background: var(--green-dark); transform: rotate(-13deg); }

.geometry-evidence {
  background:
    linear-gradient(90deg, transparent 10%, rgb(23 39 31 / 12%) 10.2% 10.7%, transparent 10.9%),
    repeating-linear-gradient(#e8e1cd 0 33px, #9ba693 34px 35px);
}

.geometry-evidence i {
  position: absolute;
  left: 17%;
  width: 66%;
  height: 1.2rem;
  border: 1px solid var(--green-dark);
  background: rgb(255 253 246 / 74%);
}

.geometry-evidence i:nth-child(1) { top: 16%; width: 42%; }
.geometry-evidence i:nth-child(2) { top: 31%; }
.geometry-evidence i:nth-child(3) { top: 46%; width: 51%; }
.geometry-evidence i:nth-child(4) { top: 61%; }
.geometry-evidence i:nth-child(5) { top: 76%; width: 34%; }

.geometry-movement {
  background:
    radial-gradient(circle at 18% 22%, #fbf0d9 0 1.6rem, transparent 1.7rem),
    radial-gradient(circle at 72% 38%, #fbf0d9 0 1.6rem, transparent 1.7rem),
    radial-gradient(circle at 39% 78%, #fbf0d9 0 1.6rem, transparent 1.7rem),
    linear-gradient(150deg, #788972, #294d3e);
}

.geometry-movement i {
  position: absolute;
  height: 2px;
  background: #fff3d9;
  transform-origin: left;
}

.geometry-movement i:nth-child(1) { top: 23%; left: 21%; width: 52%; transform: rotate(16deg); }
.geometry-movement i:nth-child(2) { top: 41%; left: 71%; width: 45%; transform: rotate(119deg); }
.geometry-movement i:nth-child(3) { top: 76%; left: 41%; width: 48%; transform: rotate(-56deg); }
.geometry-movement i:nth-child(4) { top: 47%; left: 18%; width: 64%; transform: rotate(62deg); opacity: 0.5; }

.plate-notes {
  align-self: center;
}

.marginalia {
  margin: 0 0 1rem;
  color: var(--clay-dark);
}

.plate-notes h3 {
  max-width: 18ch;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 500;
}

.plate-notes dl {
  margin: 2rem 0 0;
}

.plate-notes dl div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.8rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--rule);
}

.plate-notes dt {
  color: var(--clay-dark);
  font-size: 0.875rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plate-notes dd {
  margin: 0;
}

.lifecycle-account {
  display: grid;
  grid-template-columns: minmax(15rem, 0.55fr) minmax(0, 1.45fr);
  gap: 2rem 4rem;
  margin-top: 5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--green-dark);
  background: var(--paper-light);
}

.lifecycle-account > h3 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
}

.lifecycle-account ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.lifecycle-account li {
  position: relative;
  padding: 0 0 1.4rem 2.2rem;
  border-left: 2px solid var(--green);
}

.lifecycle-account li::before {
  position: absolute;
  top: 0;
  left: -0.6rem;
  display: grid;
  width: 1.1rem;
  height: 1.1rem;
  place-items: center;
  border: 3px solid var(--paper-light);
  border-radius: 50%;
  background: var(--clay);
  content: "";
}

.lifecycle-account li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.lifecycle-account h4 {
  font-size: 1.05rem;
}

.lifecycle-account p {
  margin-block: 0.35rem 0;
  color: var(--ink-soft);
}

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

.question-index {
  margin-left: min(16vw, 13rem);
  border-top: 2px solid var(--ink);
}

.question-index article {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rule);
}

.index-letter {
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
}

.question-index h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.question-index p {
  max-width: 47rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.boundaries-section {
  padding: clamp(4rem, 8vw, 7rem) max(2rem, calc((100vw - 1280px) / 2));
  background: var(--green-dark);
  color: white;
}

.section-heading-light {
  border-color: #7f9488;
}

.section-heading-light .plate-kicker {
  color: #f5bd88;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #91a398;
  border-left: 1px solid #91a398;
}

.boundary-grid article {
  min-width: 0;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-right: 1px solid #91a398;
  border-bottom: 1px solid #91a398;
}

.boundary-grid article > span {
  display: inline-block;
  margin-bottom: 1rem;
  color: #f5bd88;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.boundary-grid h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
}

.boundary-grid p {
  color: #e6eee9;
}

.human-section {
  display: grid;
  grid-template-columns: auto minmax(0, 47rem);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 10vw, 9rem) 2rem;
  background: var(--paper-deep);
}

.human-marker {
  display: grid;
  width: clamp(9rem, 18vw, 15rem);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--green-dark);
  border-radius: 50%;
  background: var(--paper-light);
}

.human-marker span {
  width: clamp(2.7rem, 6vw, 4.6rem);
  height: clamp(3.2rem, 7vw, 5.4rem);
  background:
    linear-gradient(var(--green-dark), var(--green-dark)) center / 100% 2px no-repeat,
    linear-gradient(var(--green-dark), var(--green-dark)) left / 2px 100% no-repeat,
    linear-gradient(var(--green-dark), var(--green-dark)) right / 2px 100% no-repeat;
}

.human-marker i {
  position: absolute;
  width: 4rem;
  height: 1px;
  background: var(--clay);
  transform: rotate(-35deg);
}

.human-section h2 {
  font-size: clamp(2.2rem, 4.7vw, 4rem);
}

.human-copy {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
}

.request-section {
  padding-bottom: 7rem;
}

.request-note,
.sensitive-note {
  max-width: 58rem;
  margin-left: auto;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--green);
  background: var(--paper-light);
}

.sensitive-note {
  border-left-color: var(--clay);
  font-weight: 700;
}

.no-js-note {
  display: none;
  max-width: 58rem;
  margin-left: auto;
  padding: 1rem;
  border: 2px dashed var(--clay-dark);
  background: var(--paper-light);
}

.no-js .no-js-note {
  display: block;
}

.no-js .layer-inspector,
.no-js .preview-control {
  display: none;
}

#request-form {
  max-width: 68rem;
  margin: 3rem 0 0 auto;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--green-dark);
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.5rem;
}

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

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

.field {
  min-width: 0;
}

.field label {
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-weight: 780;
  line-height: 1.4;
}

.field label span {
  flex: none;
  color: var(--clay-dark);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field-help {
  margin: 0 0 0.45rem;
  color: var(--ink-soft);
  font-size: 1rem;
}

input,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 2px solid #53675d;
  border-radius: 0;
  padding: 0.72rem 0.8rem;
  background: white;
  color: var(--ink);
  font: inherit;
}

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

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: inset 5px 0 0 var(--error);
}

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

.contact-fields {
  margin: 2.5rem 0 0;
  padding: 1.5rem;
  border: 1px solid var(--rule);
}

.contact-fields legend {
  padding-inline: 0.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.error-summary {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 3px solid var(--error);
  background: #fff1ed;
  color: #641106;
}

.error-summary h3 {
  font-size: 1.15rem;
}

.error-summary ul {
  margin-bottom: 0;
}

.error-summary a {
  color: #641106;
  font-weight: 750;
}

.request-preview {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--green);
  background: #eef4ed;
}

.request-preview h3 {
  margin-bottom: 1rem;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.request-preview dl {
  display: grid;
  grid-template-columns: minmax(10rem, 0.45fr) minmax(0, 1fr);
  margin: 0;
}

.request-preview dt,
.request-preview dd {
  margin: 0;
  padding-block: 0.55rem;
  border-top: 1px solid #9eaca1;
}

.request-preview dt {
  padding-right: 1rem;
  font-weight: 800;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.confirmation {
  max-width: 68rem;
  margin: 1rem 0 0 auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--green);
  background: transparent;
  color: var(--ink-soft);
}

.confirmation[data-preview-state="ready"] {
  border-width: 3px;
  background: #e5efe7;
  color: var(--ink);
  font-weight: 750;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

[hidden] {
  display: none !important;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem max(1rem, calc((100vw - 1280px) / 2));
  background: var(--ink);
  color: white;
}

.site-footer > div {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: #dce6df;
}

.site-footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: white;
}

@media (max-width: 900px) {
  .contents-rail {
    align-items: flex-start;
    overflow: visible;
  }

  .contents-rail ol {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .opening-spread {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .opening-study {
    width: min(100%, 34rem);
    justify-self: center;
  }

  .study-window {
    min-height: 25rem;
  }

  .layer-inspector {
    grid-template-columns: 1fr;
  }

  .question-index {
    margin-left: 0;
  }

  .form-grid-three {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-lockup {
    grid-template-columns: auto 1fr;
  }

  .edition-mark {
    grid-column: 2;
  }

  .contents-rail {
    display: block;
  }

  .contents-label {
    display: block;
    margin-bottom: 0.35rem;
  }

  .contents-rail ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .contents-rail a {
    width: 100%;
    padding-inline: 0.25rem;
  }

  main {
    border-left-width: 3px;
  }

  .opening-spread,
  .fieldbook-section,
  .notebook-section,
  .request-section {
    width: min(100% - 2rem, 1280px);
  }

  .opening-spread {
    gap: 3rem;
    padding-block: 4rem;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.5rem);
  }

  .opening-actions,
  .section-heading,
  .field-pair,
  .lifecycle-account,
  .boundary-grid,
  .human-section,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-intro {
    margin-left: 0;
  }

  .layer-inspector {
    padding: 1.2rem;
  }

  .layer-controls {
    grid-template-columns: 1fr;
  }

  .layer-controls button {
    border-right: 0;
    border-bottom: 1px solid #b9c8bf;
  }

  .layer-controls button:last-child {
    border-bottom: 0;
  }

  .layer-panel {
    grid-template-columns: 1fr;
  }

  .field-pair {
    padding-block: 1.25rem;
  }

  .field-pair .specimen-plate,
  .field-pair:nth-child(odd) .specimen-plate,
  .field-pair .plate-notes,
  .field-pair:nth-child(odd) .plate-notes {
    grid-column: 1;
    grid-row: auto;
  }

  .specimen-plate,
  .plate-notes {
    padding: 1rem;
  }

  .specimen-geometry {
    min-height: 20rem;
  }

  .plate-notes dl div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .lifecycle-account {
    padding: 1.25rem;
  }

  .question-index article {
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 0.75rem;
  }

  .index-letter {
    font-size: 2.2rem;
  }

  .boundaries-section {
    padding-inline: 1rem;
  }

  .human-section {
    justify-items: start;
    padding-inline: 1rem;
  }

  .human-marker {
    width: 8rem;
  }

  #request-form {
    padding: 1rem;
  }

  .contact-fields {
    padding: 1rem;
  }

  .field label {
    display: block;
  }

  .field label span {
    display: block;
    margin-top: 0.15rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }

  .request-preview dl {
    grid-template-columns: 1fr;
  }

  .request-preview dt {
    padding-bottom: 0;
  }

  .request-preview dd {
    border-top: 0;
    padding-top: 0.2rem;
  }
}

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

  .opening-study {
    transform: none;
  }
}

@media (forced-colors: active) {
  :focus-visible {
    outline: 3px solid Highlight;
    box-shadow: none;
  }

  .prototype-notice,
  .layer-inspector,
  .boundaries-section,
  .site-footer,
  .button-primary,
  .brand-mark {
    border: 1px solid CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .layer-controls button[aria-pressed="true"] {
    border: 3px solid Highlight;
    background: Canvas;
    color: CanvasText;
  }

  input[aria-invalid="true"],
  textarea[aria-invalid="true"] {
    border: 4px solid Mark;
  }
}
