:root {
  font-family: Geneva, "Lucida Grande", Arial, sans-serif;
  color: #171717;
  background: #a4a4a4;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: repeating-linear-gradient(90deg, #a8a8a8 0 2px, #b0b0b0 2px 4px);
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
.file-label {
  touch-action: manipulation;
}
.menu-bar {
  min-height: 37px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f4f4f0;
  border-bottom: 2px solid #131313;
  box-shadow: 0 2px 0 #fff;
  padding: 4px clamp(15px, 3vw, 34px);
  font-size: 0.82rem;
}
.menu-mark {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  background: #111;
  color: #fff;
  font:
    bold 1rem Georgia,
    serif;
}
.menu-bar strong {
  font-weight: 700;
}
.menu-bar span:not(.menu-mark) {
  color: #555;
}
.menu-bar a {
  margin-left: auto;
  color: #111;
}
.desktop {
  max-width: 1250px;
  margin: auto;
  padding: 55px clamp(16px, 5vw, 60px) 70px;
  position: relative;
}
.desktop-icon {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 0 0 20px 5px;
  color: #fff;
  text-shadow: 1px 1px #333;
  font-size: 0.68rem;
}
.desktop-icon span {
  display: grid;
  place-items: center;
  background: #f9f9f3;
  color: #141414;
  border: 2px solid #111;
  box-shadow: 3px 3px 0 #686868;
  width: 44px;
  height: 44px;
  text-shadow: none;
  font:
    bold 1.1rem "Courier New",
    monospace;
}
.desktop-icon small {
  font-size: 0.68rem;
}
.window {
  background: #d8d8d3;
  border: 2px solid #121212;
  box-shadow:
    2px 2px 0 #fff,
    5px 5px 0 #171717,
    10px 10px 0 #6d6d6d;
}
.title-bar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px;
  border-bottom: 2px solid #111;
  background: repeating-linear-gradient(
    0deg,
    #fff 0 2px,
    #111 2px 3px,
    #fff 3px 5px
  );
  font-weight: bold;
  font-size: 0.86rem;
}
.title-text {
  background: #d8d8d3;
  padding: 2px 16px;
  white-space: nowrap;
}
.close-box,
.zoom-box {
  display: block;
  flex: none;
  width: 15px;
  height: 15px;
  border: 2px solid #111;
  background: #d8d8d3;
  box-shadow: 1px 1px #fff;
}
.zoom-box {
  position: relative;
}
.zoom-box:after {
  content: "";
  position: absolute;
  inset: 2px;
  border-top: 2px solid #111;
}
.window-content {
  padding: 28px clamp(18px, 3vw, 34px) 20px;
}
.window-content header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 26px;
}
.app-icon {
  flex: none;
  width: 63px;
  height: 63px;
  border: 2px solid #111;
  background: #f9f9f5;
  box-shadow: 3px 3px 0 #777;
  display: grid;
  place-items: center;
  font:
    bold 1.3rem/0.95 "Courier New",
    monospace;
  text-align: center;
}
.eyebrow {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #575757;
  margin: 0 0 6px;
}
h1 {
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 7px;
}
.window-content header p:last-child {
  margin: 0;
  color: #3d3d3d;
  font-size: 0.88rem;
  line-height: 1.45;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding: 16px 0 18px;
  border-top: 1px solid #fff;
}
.parser-mode {
  align-items: baseline;
  background: #f5f5f0;
  border: 2px inset #999;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 5px 16px;
  justify-content: space-between;
  line-height: 1.45;
  padding: 10px 12px;
}
.parser-mode a {
  color: #1e4d84;
  font-weight: bold;
}
.toolbar button,
.file-label {
  display: inline-block;
  position: relative;
  padding: 8px 13px;
  border: 2px solid #111;
  border-radius: 3px;
  background: #eeeef0;
  color: #111;
  box-shadow:
    inset 2px 2px 0 #fff,
    inset -2px -2px 0 #888,
    2px 2px 0 #777;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: bold;
  white-space: nowrap;
}
.toolbar button:hover,
.file-label:hover {
  background: #fff;
}
.toolbar button:active,
.file-label:active {
  box-shadow:
    inset 2px 2px 0 #888,
    inset -2px -2px 0 #fff;
  transform: translate(1px, 1px);
}
.toolbar .primary {
  outline: 2px solid #111;
  outline-offset: 2px;
  background: #fafaf5;
}
.file-label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-label:focus-within {
  outline: 3px solid #285f9a;
  outline-offset: 3px;
}
.toolbar button:focus-visible,
.workspace textarea:focus-visible,
.workspace pre:focus-visible,
.menu-bar a:focus-visible {
  outline: 3px solid #285f9a;
  outline-offset: 3px;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pane {
  min-width: 0;
  border: 2px solid #111;
  background: #fff;
  box-shadow:
    inset 2px 2px #888,
    inset -2px -2px #fff;
}
.pane-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  background: #e6e6e2;
  border-bottom: 1px solid #777;
  font-size: 0.76rem;
}
.pane-title label,
.pane-title #output-label {
  font-weight: bold;
}
.pane-title span {
  font-size: 0.64rem;
  color: #666;
  letter-spacing: 0.1em;
}
.workspace textarea,
.workspace pre {
  width: 100%;
  height: 390px;
  margin: 0;
  padding: 16px;
  background: #fff;
  color: #171717;
  border: 0;
  resize: vertical;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    0.86rem/1.55 "Courier New",
    monospace;
}
.workspace textarea:focus {
  outline: none;
  background: #fffef4;
}
.workspace pre {
  border-left: 1px solid #ccc;
}
.status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #111;
  border-top: 0;
  background: #ecece8;
  min-height: 33px;
  padding: 5px 10px;
  font-size: 0.75rem;
}
.status-light {
  width: 9px;
  height: 9px;
  border: 1px solid #111;
  background: #45a477;
  flex: none;
}
.status-bar p {
  margin: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.status-end {
  color: #555;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.footnote {
  max-width: 630px;
  font-size: 0.76rem;
  line-height: 1.55;
  color: #f4f4f1;
  text-shadow: 0 1px #666;
  margin: 25px 0 0 12px;
}
@media (max-width: 720px) {
  .desktop {
    padding-top: 30px;
  }
  .desktop-icon {
    display: none;
  }
  .window-content {
    padding-top: 20px;
  }
  .window-content header {
    align-items: start;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace textarea,
  .workspace pre {
    height: 250px;
  }
  .menu-bar {
    gap: 10px;
  }
  .menu-bar span:not(.menu-mark) {
    display: none;
  }
  .status-end {
    display: none;
  }
}
@media (max-width: 420px) {
  .app-icon {
    display: none;
  }
  .toolbar {
    gap: 7px;
  }
  .toolbar button,
  .file-label {
    padding: 8px 10px;
  }
  .title-text {
    font-size: 0.75rem;
  }
}
