:root {
  color-scheme: light;
  --desktop-bg: #bfc5c0;
  --ink: #111;
  --paper: #fff;
  --muted: #4d4d4d;
}

* {
  box-sizing: border-box;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .3) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .24) 1px, transparent 1px),
    var(--desktop-bg);
  background-size: 24px 24px;
}

p,
strong,
span {
  color: var(--ink);
}

a {
  color: inherit;
}

.top-menu {
  position: sticky;
  top: 0;
  z-index: 10000;
  margin: 0;
}

.top-menu [role="menu"] {
  z-index: 10001;
}

.menu-brand {
  cursor: default;
  font-weight: 700;
}

.top-menu > .menu-brand[role="menu-item"]:hover,
.top-menu > .menu-brand[role="menu-item"]:focus,
.top-menu > .menu-brand[role="menu-item"]:focus-within {
  color: #000;
  background: #fff;
  outline: none;
}

.menu-clock {
  margin-left: auto;
  padding-right: 12px;
}

.menu-clock span {
  color: inherit;
}

.desktop-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero-grid {
  display: block;
}

.content-grid {
  display: block;
  margin-top: 22px;
}

.intro-window {
  max-width: 560px;
  min-height: 0;
}

.window.is-draggable {
  position: relative;
  z-index: 1;
  transform: translate(var(--drag-x, 0), var(--drag-y, 0));
}

.window.is-draggable.is-resetting {
  transition: transform 180ms ease-out;
}

.window.is-draggable .title-bar {
  position: relative;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.window.is-draggable.is-dragging {
  z-index: 20;
}

.window.is-draggable.is-dragging .title-bar {
  cursor: grabbing;
}

.window-pane {
  overflow: visible;
  padding: 16px;
}

.title-bar .title-reset {
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  box-shadow: none;
  font-family: Chicago_12, Chicago, serif;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.title-bar .title-reset:active {
  color: var(--paper);
  background: var(--ink);
}

.profile-copy {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
}

.control-label {
  color: var(--muted);
  font-size: 14px;
}

.profile-copy h2 {
  max-width: 12em;
  margin: 4px 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
}

.profile-copy p,
.window-pane p,
.contact-modal p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  text-decoration: none;
}

.modal-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.control-item {
  min-height: 190px;
  padding: 14px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

.control-item strong {
  display: block;
  margin: 8px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.05;
}

.control-item p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
}

.contact-strip {
  display: block;
  margin-top: 22px;
}

.contact-window {
  width: auto;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.contact-strip .modal-dialog {
  width: 100%;
}

.contact-modal {
  text-align: left;
  font-family: Georgia, "Times New Roman", serif;
}

.contact-alert-body {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.alert-icon {
  width: 50px;
  height: 50px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  position: relative;
}

.alert-icon::before {
  content: "";
  position: absolute;
  inset: 9px 7px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 3px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 0 / 3px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 3px 100% no-repeat;
}

.alert-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 16px;
  width: 26px;
  height: 18px;
  background:
    linear-gradient(45deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--ink) 45%, var(--ink) 55%, transparent 55%);
  background-size: 50% 100%, 50% 100%;
  background-position: left top, right top;
  background-repeat: no-repeat;
}

.contact-alert-body p {
  max-width: 420px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.alert-actions {
  justify-content: flex-end;
  padding-right: 6px;
}

.alert-actions .btn {
  min-width: 96px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset 0 0 0 2px var(--paper);
  padding: 4px 20px;
}

.centered {
  justify-content: center;
}

@media (max-width: 860px) {
  .contact-window {
    margin-left: 1rem;
    margin-right: 1rem;
  }

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

  .profile-copy h2 {
    max-width: none;
    font-size: 40px;
  }

  .control-item {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .top-menu {
    overflow: visible;
  }

  .top-menu > [role="menu-item"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  .top-menu > [role="menu-item"] [role="menu"] {
    max-width: calc(100vw - 8px);
  }

  .top-menu > [role="menu-item"]:nth-of-type(3) [role="menu"] {
    right: 0;
    left: auto;
  }

  .desktop-shell {
    width: calc(100% - 16px);
    padding-top: 16px;
  }

  .window {
    width: auto;
    max-width: 100%;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .contact-window {
    margin-left: 0;
    margin-right: 0;
  }

  .profile-copy h2 {
    font-size: 30px;
  }

  .profile-copy p,
  .window-pane p,
  .contact-modal p {
    font-size: 16px;
  }

  .button-row .btn {
    width: 100%;
  }

  .modal-button-row {
    justify-content: stretch;
  }

  .modal-button-row .btn {
    width: 100%;
  }

  .contact-alert-body {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }

  .alert-icon {
    width: 42px;
    height: 42px;
  }

  .alert-icon::before {
    inset: 8px 6px;
  }

  .alert-icon::after {
    left: 10px;
    top: 14px;
    width: 22px;
    height: 15px;
  }

  .window.is-draggable {
    transform: none;
  }

  .window.is-draggable .title-bar {
    cursor: default;
  }

  .title-bar .title-reset {
    display: none;
  }
}
