:root {
  --background: #F7F6F3;
  --ink: #111111;
  --accent: #F05A1A;
  --rule: 2px solid var(--ink);
  --heavy-rule: 4px solid var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Inter", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, transparent calc(100% - 1px), var(--ink) calc(100% - 1px));
  background-size: 48px 100%;
  opacity: 0.035;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ol {
  margin-top: 0;
}

h1,
h2,
h3,
strong,
.field-label,
.index-label,
.eyebrow,
.status-stamp,
figcaption,
.call-action,
.process-row,
.privacy-jump {
  font-family: "Space Mono", monospace;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.04em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 4vw, 3.5rem);
  max-width: 18ch;
}

h3 {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 3px;
}

a:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 4px;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding: 0.8rem 1rem;
  background: var(--ink);
  color: var(--background);
  font-family: "Space Mono", monospace;
  transform: translateY(-120%);
}

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

main {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

.status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.7fr) auto;
  align-items: stretch;
  border: var(--heavy-rule);
}

.status-strip__brand,
.status-strip__area,
.status-stamp {
  padding: 1rem 1.2rem;
}

.status-strip__area {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: var(--rule);
}

.status-stamp {
  display: grid;
  place-items: center;
  min-width: 210px;
  border-left: var(--rule);
  background: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}

.eyebrow,
.field-label,
.index-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.index-label--accent {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  background: var(--accent);
}

.hours-panel,
.dispatch-card,
.contact-panel {
  margin-top: 24px;
}

.hours-panel {
  border: var(--rule);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.6fr);
  column-gap: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border-bottom: var(--rule);
}

.section-heading .index-label {
  grid-column: 1 / -1;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading p {
  align-self: end;
  margin-bottom: 0.25rem;
  max-width: 46ch;
}

.hours-layout {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
}

.hours-list {
  margin-bottom: 0;
}

.hours-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--ink);
  font-family: "Space Mono", monospace;
}

.hours-list > div:last-child {
  border-bottom: 0;
}

.hours-list > div.is-today {
  box-shadow: inset 8px 0 0 var(--accent);
}

.hours-list dt {
  font-weight: 700;
}

.hours-list dd {
  margin-bottom: 0;
}

.work-figure {
  margin-bottom: 0;
  border: var(--rule);
  background: var(--background);
}

.work-figure--hours {
  border-width: 0 0 0 2px;
}

.work-figure--hours img {
  min-height: 390px;
}

.work-figure img {
  aspect-ratio: 4 / 3;
}

.work-figure figcaption {
  padding: 0.65rem 0.8rem;
  border-top: var(--rule);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.dispatch-card {
  border: var(--heavy-rule);
  box-shadow: 10px 10px 0 var(--ink);
}

.dispatch-card__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(290px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.4rem, 4vw, 3rem);
  border-bottom: var(--heavy-rule);
}

.dispatch-card__top p {
  max-width: 66ch;
  margin-bottom: 0;
}

.call-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 150px;
  padding: 1.2rem;
  border: var(--heavy-rule);
  text-decoration: none;
}

.call-action:hover {
  background: var(--ink);
  color: var(--background);
}

.call-action span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.call-action strong {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
}

.service-spec {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(150px, 0.5fr));
  border-bottom: var(--rule);
}

.service-spec > div {
  padding: 1.1rem;
  border-left: var(--rule);
}

.service-spec > div:first-child {
  border-left: 0;
}

.service-spec strong {
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
}

.scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: var(--rule);
}

.scope-grid > div {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.scope-grid > div + div {
  border-left: var(--rule);
}

.scope-list,
.parameter-list {
  margin-bottom: 0;
  border-top: var(--rule);
}

.scope-list > div,
.parameter-list > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ink);
}

.scope-list dt,
.parameter-list dt {
  font-family: "Space Mono", monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.scope-list dd,
.parameter-list dd {
  margin-bottom: 0;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 0;
  padding: 0;
  border-bottom: var(--heavy-rule);
  list-style: none;
}

.process-row li {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 130px;
  padding: 1rem;
  border-left: var(--rule);
}

.process-row li:first-child {
  border-left: 0;
}

.process-row span {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
}

.process-row strong {
  font-size: 0.8rem;
  text-transform: uppercase;
}

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.work-grid .work-figure {
  border-width: 0;
}

.work-grid .work-figure + .work-figure {
  border-left: var(--rule);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  border: var(--rule);
}

.contact-panel__details,
.privacy-note {
  padding: clamp(1.4rem, 4vw, 3rem);
}

.contact-panel__details {
  border-right: var(--rule);
}

.contact-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

address {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  font-style: normal;
}

.contact-phone {
  margin-bottom: 1.5rem;
}

.contact-phone a {
  font-family: "Space Mono", monospace;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.privacy-jump {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
}

.privacy-note {
  scroll-margin-top: 1rem;
}

.privacy-note p {
  max-width: 68ch;
}

.privacy-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .status-strip {
    grid-template-columns: 1fr 1fr;
  }

  .status-stamp {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: var(--rule);
    border-left: 0;
  }

  .section-heading,
  .hours-layout,
  .dispatch-card__top,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-heading p {
    margin-top: 1rem;
  }

  .work-figure--hours {
    border-width: 2px 0 0;
  }

  .service-spec {
    grid-template-columns: 1fr 1fr;
  }

  .service-spec > div:nth-child(odd) {
    border-left: 0;
  }

  .service-spec > div {
    border-top: var(--rule);
  }

  .service-spec > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .contact-panel__details {
    border-right: 0;
    border-bottom: var(--rule);
  }
}

@media (max-width: 620px) {
  main {
    width: min(100% - 20px, 1180px);
    margin: 10px auto 20px;
  }

  .status-strip {
    grid-template-columns: 1fr;
  }

  .status-strip__area,
  .status-stamp {
    border-top: var(--rule);
    border-left: 0;
  }

  .hours-layout {
    display: block;
  }

  .dispatch-card {
    box-shadow: 5px 5px 0 var(--ink);
  }

  .service-spec,
  .scope-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-spec > div,
  .service-spec > div:nth-child(odd) {
    border-top: var(--rule);
    border-left: 0;
  }

  .service-spec > div:first-child {
    border-top: 0;
  }

  .scope-grid > div + div {
    border-top: var(--rule);
    border-left: 0;
  }

  .process-row {
    grid-template-columns: 1fr 1fr;
  }

  .process-row li:nth-child(odd) {
    border-left: 0;
  }

  .process-row li:nth-child(n + 3) {
    border-top: var(--rule);
  }

  .work-grid .work-figure + .work-figure {
    border-top: var(--rule);
    border-left: 0;
  }

  .scope-list > div,
  .parameter-list > div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

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