:root {
  --desktop: #347b78;
  --desktop-dark: #1d5754;
  --window: #d5d2c8;
  --window-light: #f5f3e9;
  --window-mid: #b7b4aa;
  --window-dark: #565954;
  --ink: #111412;
  --title: #163f63;
  --title-dark: #092944;
  --primary: #145b35;
  --primary-dark: #083b20;
  --white: #fff;
  --focus: #ffcf33;
  --mono: 'Courier New', Courier, monospace;
  --ui: Tahoma, Verdana, 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behaviour: smooth;
}

body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background-color: var(--desktop);
  background-image: linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 8px 8px;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: #082f66;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: -60px;
  left: 12px;
  padding: 8px 12px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
}

.desktop-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  border-top: 3px solid var(--white);
  border-left: 3px solid var(--white);
  border-right: 3px solid #202320;
  border-bottom: 3px solid #202320;
  background: var(--window);
  box-shadow: 8px 10px 0 rgba(5, 30, 29, .45);
}

.title-bar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 5px 4px 9px;
  color: var(--white);
  background: linear-gradient(90deg, var(--title-dark), var(--title) 70%, #3e7794);
  border-bottom: 2px solid #000;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-lockup > span:last-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.brand-icon {
  width: 24px;
  height: 22px;
  position: relative;
  flex: 0 0 auto;
  border: 2px solid #fff;
  background: #c5c2b8;
  box-shadow: inset -2px -2px 0 #65665f;
}

.brand-icon::before,
.brand-icon::after {
  content: '';
  position: absolute;
  bottom: -1px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--title-dark);
}

.brand-icon::before { left: 1px; }
.brand-icon::after { right: 1px; }

.brand-icon span {
  position: absolute;
  width: 9px;
  height: 6px;
  top: 5px;
  left: 6px;
  border-top: 2px solid #173d57;
  transform: skew(-20deg);
}

.window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.control {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #252725;
  border-bottom: 2px solid #252725;
  color: #000;
  background: var(--window);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

.control-close {
  font-size: 21px;
}

.menu-strip {
  min-height: 36px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px 7px;
  border-bottom: 2px solid var(--window-dark);
  background: var(--window);
}

.menu-strip a {
  padding: 4px 10px;
  color: #111;
  text-decoration: none;
}

.menu-strip a:hover {
  color: #fff;
  background: var(--title);
}

.toolbar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-top: 2px solid var(--white);
  border-bottom: 2px solid #73756f;
  background: #c5c7bd;
  font-size: 13px;
}

.toolbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.tool-square {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #4d504b;
  border-bottom: 2px solid #4d504b;
  background: #dcdad0;
  color: var(--primary-dark);
  font-weight: 900;
}

.toolbar-divider {
  width: 2px;
  height: 28px;
  border-left: 1px solid #696b66;
  border-right: 1px solid #fff;
}

.toolbar-status {
  margin-left: auto;
  font-family: var(--mono);
  font-weight: 700;
}

main {
  padding: 12px;
}

.main-dialog,
.section-window {
  scroll-margin-top: 12px;
  margin-bottom: 14px;
  border-top: 3px solid #545752;
  border-left: 3px solid #545752;
  border-right: 3px solid #f9f7ed;
  border-bottom: 3px solid #f9f7ed;
  background: var(--window);
}

.dialog-title,
.section-title-bar {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 9px;
  border-bottom: 2px solid #555853;
  color: #fff;
  background: var(--desktop-dark);
  font-size: 14px;
  font-weight: 700;
}

.section-title-bar h1,
.section-title-bar h2 {
  margin: 0;
  font-size: inherit;
}

.section-title-bar span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
}

.dialog-content,
.section-body {
  padding: clamp(16px, 3vw, 30px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(270px, .8fr);
  gap: 24px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 7px;
  border: 2px solid #656760;
  background: #ece9dd;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.lead {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
}

.notice-panel,
.dispatch-panel,
.check-panel {
  border-top: 3px solid #555852;
  border-left: 3px solid #555852;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  background: #ece9dc;
}

.notice-panel {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.system-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #333632;
  border-bottom: 3px solid #333632;
  border-radius: 0;
  color: #101210;
  background: #d8d5ca;
  box-shadow: 1px 1px 0 #000;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.system-button:hover {
  background: #ebe8dc;
}

.system-button:active {
  border-top-color: #333632;
  border-left-color: #333632;
  border-right-color: #fff;
  border-bottom-color: #fff;
  transform: translate(1px, 1px);
  box-shadow: none;
}

.primary-button {
  border-top-color: #8ed4ae;
  border-left-color: #8ed4ae;
  border-right-color: #052d18;
  border-bottom-color: #052d18;
  color: #fff;
  background: var(--primary);
}

.primary-button:hover {
  background: #1b7445;
}

.dispatch-panel {
  align-self: stretch;
  padding: 10px;
}

.panel-caption {
  margin: -2px -2px 12px;
  padding: 5px 7px;
  border-bottom: 2px solid #696b65;
  background: #c2c2b8;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.route-display {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 5px;
  border: 2px solid #75776f;
  background-color: #d6e1dc;
  background-image: linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 10px 10px;
}

.route-node,
.route-box {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #111;
  background: #f4f0df;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.route-node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
}

.route-box {
  width: 56px;
  height: 68px;
  color: #fff;
  background: var(--title);
}

.route-line {
  min-width: 16px;
  flex: 1;
  height: 4px;
  border-top: 2px solid #111;
  border-bottom: 1px solid #111;
}

.system-list {
  margin: 12px 0;
  border: 2px solid #777970;
}

.system-list > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  border-bottom: 1px solid #999b92;
}

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

.system-list dt,
.system-list dd {
  margin: 0;
  padding: 5px 7px;
  font-size: 13px;
}

.system-list dt {
  border-right: 1px solid #999b92;
  font-weight: 700;
}

.mono-line {
  margin: 0;
  padding: 5px;
  color: #0a552e;
  background: #e9f0e9;
  border: 1px solid #868a82;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border-top: 3px solid #5e615b;
  border-left: 3px solid #5e615b;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  background: #e7e4d9;
}

.service-card legend {
  padding: 3px 7px;
  border: 2px solid #686b65;
  background: var(--window);
  font-weight: 700;
}

.service-symbol {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 8px 0 12px;
  border: 3px solid var(--title-dark);
  color: var(--title-dark);
  background: #d2dedb;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 900;
}

.service-card p {
  margin: 0 0 10px;
}

.service-card ul,
.legal-content ul {
  padding-left: 22px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.process-step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 10px;
  padding: 12px;
  border: 2px solid #72756e;
  background: #e9e6dc;
}

.step-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 3px double #fff;
  outline: 2px solid var(--title-dark);
  color: #fff;
  background: var(--title);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}

.process-step h3,
.process-step p {
  margin: 0;
}

.process-step h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
}

.about-grid h3 {
  margin-top: 0;
  font-size: 25px;
  line-height: 1.25;
}

.check-panel {
  padding: 10px;
}

.check-panel label {
  display: block;
  padding: 8px 6px;
  border-bottom: 1px solid #9b9d95;
}

.check-panel label:last-child {
  border-bottom: 0;
}

.check-panel input {
  margin-right: 7px;
  accent-color: var(--primary);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 5px;
  font-weight: 700;
}

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

input,
select,
textarea {
  width: 100%;
  border-top: 3px solid #545752;
  border-left: 3px solid #545752;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-radius: 0;
  color: #111;
  background: #fffef7;
}

input,
select {
  min-height: 43px;
  padding: 6px 8px;
}

textarea {
  min-height: 120px;
  padding: 8px;
  resize: vertical;
}

.consent-line {
  display: block;
  margin-top: 15px;
  padding: 10px;
  border: 2px solid #777a73;
  background: #e8e5da;
}

.consent-line input {
  width: auto;
  min-height: 0;
  margin-right: 7px;
  accent-color: var(--primary);
}

.form-result {
  margin-top: 14px;
  padding: 12px;
  border: 3px inset #aaa;
  background: #edf4ec;
  font-family: var(--mono);
}

.form-result a {
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.contact-record {
  min-width: 0;
  padding: 12px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #666962;
  border-bottom: 2px solid #666962;
  background: #dfdcd1;
}

.record-label {
  display: block;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 2px dotted #72756d;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.contact-record address {
  font-style: normal;
}

.contact-record > a {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}

.contact-record small {
  display: block;
}

.social-links {
  display: grid;
  gap: 5px;
}

.social-links a {
  padding: 5px 7px;
  border: 1px solid #777a72;
  background: #f0ede3;
  font-weight: 700;
  text-decoration: none;
}

.social-links a:hover {
  color: #fff;
  background: var(--title);
}

.status-bar {
  min-height: 34px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 4px;
  border-top: 3px solid #fff;
  background: var(--window);
  font-family: var(--mono);
  font-size: 11px;
}

.status-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 3px 7px;
  border-top: 2px solid #676a63;
  border-left: 2px solid #676a63;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.status-cell:first-child {
  flex: 1;
}

.status-grip {
  align-self: flex-end;
  margin-left: auto;
  color: #74766f;
  font-weight: 900;
  letter-spacing: -3px;
  transform: rotate(-45deg);
}

.legal-shell {
  max-width: 960px;
}

.privacy-document {
  margin-bottom: 0;
}

.legal-content {
  max-width: 850px;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 28px 0 8px;
  padding: 5px 8px;
  border-left: 8px solid var(--title);
  border-bottom: 2px solid #898b84;
  background: #e7e4da;
  font-size: 20px;
}

@media (max-width: 850px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .desktop-shell {
    width: calc(100% - 12px);
    margin: 6px auto;
    box-shadow: 3px 4px 0 rgba(5, 30, 29, .45);
  }

  .title-bar {
    min-height: 35px;
  }

  .window-controls {
    gap: 2px;
  }

  .control {
    width: 22px;
    height: 22px;
  }

  .control-min,
  .control-max {
    display: none;
  }

  .menu-strip {
    align-items: stretch;
  }

  .menu-strip a {
    flex: 1 0 30%;
    padding: 7px 6px;
    text-align: center;
  }

  .toolbar {
    overflow-x: auto;
  }

  .toolbar-item:nth-of-type(2),
  .toolbar-divider:nth-of-type(2) {
    display: none;
  }

  .toolbar-status {
    margin-left: 0;
  }

  main {
    padding: 6px;
  }

  .dialog-content,
  .section-body {
    padding: 14px;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

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

  .full-field {
    grid-column: auto;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

  .system-button {
    width: 100%;
  }

  .section-title-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }

  .status-bar {
    flex-wrap: wrap;
  }

  .status-cell {
    flex: 1 0 46%;
  }

  .status-cell:first-child {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behaviour: auto !important;
  }
}
