/* SUPER MES — static site styles */

:root {
  --ink: #14202b;
  --ink-2: #2b3a48;
  --steel: #4a5967;
  --steel-line: #c9d2da;
  --steel-soft: #e6ebf0;
  --paper: #f4f6f8;
  --white: #ffffff;
  --blue: #1f4fbf;
  --blue-deep: #173e96;
  --amber: #d68a00;
  --field-border: #7c8996;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  color: var(--blue-deep);
}

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

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 14px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid var(--blue);
  z-index: 10;
}

.skip:focus {
  left: 16px;
}

/* Header */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--steel-line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  fill: var(--blue);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 8px 12px;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--blue);
}

/* Type */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: inherit;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 36em;
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  font: 600 1rem/1.2 var(--font);
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--blue);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  color: var(--white);
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-light {
  color: var(--blue-deep);
  background: var(--white);
  border-color: var(--white);
}

.btn-light:hover {
  color: var(--blue-deep);
  background: var(--steel-soft);
  border-color: var(--steel-soft);
}

/* Home hero */

.hero {
  background: var(--paper);
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--steel-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero .lead {
  margin-bottom: 32px;
}

/* Station board — the one illustrated element */

.board {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--steel-line);
  border-top: 4px solid var(--blue);
  padding: 24px 28px 20px;
}

.board-title {
  margin: 0 0 18px;
  font-weight: 700;
  color: var(--ink);
}

.stations {
  margin: 0;
  padding: 0;
  list-style: none;
}

.station {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 0 22px 36px;
}

.station:last-child {
  padding-bottom: 0;
}

.station::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 20px;
  bottom: -2px;
  width: 2px;
  background: var(--steel-line);
}

.station:last-child::before {
  display: none;
}

.dot {
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--steel);
  background: var(--white);
}

.station-name {
  font-weight: 600;
}

.station-state {
  font-size: 0.9375rem;
  color: var(--steel);
}

.station-done .dot {
  background: var(--blue);
  border-color: var(--blue);
}

.station-done::before {
  background: var(--blue);
}

.station-run .dot {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: inset 0 0 0 3px var(--blue);
}

.station-run .station-state {
  color: var(--blue-deep);
  font-weight: 600;
}

.station-wait .dot {
  border-color: var(--amber);
  background: var(--amber);
}

.station-wait .station-state {
  color: var(--ink-2);
  font-weight: 600;
}

.board-note {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--steel-soft);
  font-size: 0.875rem;
  color: var(--steel);
}

@keyframes run-pulse {
  0% {
    box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 0 rgba(31, 79, 191, 0.45);
  }
  70% {
    box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 10px rgba(31, 79, 191, 0);
  }
  100% {
    box-shadow: inset 0 0 0 3px var(--blue), 0 0 0 0 rgba(31, 79, 191, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .station-run .dot {
    animation: run-pulse 2.4s ease-out infinite;
  }
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head p {
  max-width: 36em;
  margin: 12px 0 0;
  color: var(--ink-2);
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capabilities li {
  padding-top: 18px;
  border-top: 3px solid var(--blue);
}

.capabilities h3 {
  margin-bottom: 8px;
}

.capabilities p {
  margin: 0;
  color: var(--ink-2);
}

.band-dark {
  background: var(--ink);
  color: var(--white);
}

.band-dark h2 {
  margin-bottom: 16px;
}

.band-dark p {
  max-width: 40em;
  margin: 0;
  color: #d6dee6;
}

.band-blue {
  background: var(--blue);
  color: var(--white);
}

.band-blue .section-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

/* Inner page heads */

.page-head {
  background: var(--paper);
  border-bottom: 1px solid var(--steel-line);
  padding: 64px 0 56px;
}

.page-head h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}

.page-head .lead {
  margin: 0;
}

/* Features page */

.feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px 48px;
  padding: 36px 0;
  border-top: 1px solid var(--steel-line);
}

.feature:first-child {
  border-top: 3px solid var(--blue);
}

.feature p {
  margin: 0;
  max-width: 38em;
  color: var(--ink-2);
}

.features-cta {
  margin-top: 24px;
}

/* About page */

.prose {
  max-width: 40rem;
}

.prose h2 {
  margin-bottom: 16px;
}

.prose p {
  color: var(--ink-2);
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.form-note {
  margin: 0 0 24px;
  color: var(--steel);
  font-size: 0.9375rem;
}

.field {
  margin-bottom: 20px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 3px;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-status {
  margin: 16px 0 0;
  min-height: 1.6em;
  color: var(--ink-2);
}

.contact-list {
  margin: 0;
}

.contact-list dt {
  margin-top: 20px;
  font-weight: 700;
}

.contact-list dt:first-child {
  margin-top: 0;
}

.contact-list dd {
  margin: 2px 0 0;
}

.contact-aside {
  padding-left: 32px;
  border-left: 3px solid var(--blue);
}

.contact-aside h2 {
  margin-bottom: 20px;
  font-size: 1.375rem;
}

/* 404 */

.notfound {
  padding: 96px 0;
}

.notfound h1 {
  margin-bottom: 16px;
}

.notfound p {
  margin-bottom: 28px;
}

/* Footer */

.site-footer {
  padding: 36px 0;
  background: var(--paper);
  border-top: 1px solid var(--steel-line);
  color: var(--steel);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
}

.site-footer p {
  margin: 0;
}

/* Small screens */

@media (max-width: 860px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .capabilities {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section {
    padding: 56px 0;
  }

  .contact-aside {
    padding-left: 20px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(1120px, 100% - 32px);
  }

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

  .board {
    padding: 20px 18px 16px;
  }
}
