* {
  box-sizing: border-box;
}

html {
  background-color: #2f5f8f;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, .08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, .14) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, .14) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
}

body {
  margin: 0;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover,
a:focus {
  background: #ffff66;
  color: #000;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-shell {
  width: 790px;
  max-width: calc(100% - 16px);
  margin: 12px auto;
  background: #c0c0c0;
  border: 5px ridge #f0f0f0;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, .35);
}

.topline {
  padding: 4px 8px;
  color: #fff;
  background: #000080;
  border-bottom: 3px groove #e8e8e8;
  font: 13px "Courier New", Courier, monospace;
  letter-spacing: 0;
}

.site-header {
  padding: 10px;
  border: 4px outset #b8b8b8;
  background: #d8d8d8;
}

.site-title {
  margin: 0;
  color: #ffcc00;
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1;
  text-align: center;
  text-shadow: 3px 3px 0 #000, 5px 5px 0 #cc0000;
}

.tagline {
  margin: 6px 0 10px;
  text-align: center;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  font-weight: bold;
}

.banner-frame {
  padding: 6px;
  background: #808080;
  border: 4px inset #eeeeee;
}

.banner-frame img {
  width: 100%;
}

.retro-nav {
  margin-top: 10px;
  padding: 7px;
  text-align: center;
  background: #000;
  border: 4px groove #ffff00;
}

.retro-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.retro-nav a {
  display: inline-block;
  min-width: 82px;
  padding: 5px 8px;
  color: #0000ee;
  background: #c0c0c0;
  border: 4px outset #ffffff;
  font: bold 13px Arial, Helvetica, sans-serif;
  text-decoration: underline;
}

.retro-nav a:visited {
  color: #0000ee;
}

.retro-nav a:hover,
.retro-nav a:focus,
.retro-nav a[aria-current="page"] {
  color: #000;
  background: #ffff00;
  border-style: inset;
}

.ticker {
  overflow: hidden;
  margin: 8px 0 0;
  border: 3px inset #fff;
  background: #fff8cc;
  color: #990000;
  font: bold 14px "Courier New", Courier, monospace;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  padding: 4px 8px;
  animation: welcome-nudge 5s ease-in-out infinite;
}

@keyframes welcome-nudge {
  from {
    transform: translateX(0);
  }
  50% {
    transform: translateX(18px);
  }
  to {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker span {
    animation: none;
    padding-left: 8px;
    white-space: normal;
  }
}

.layout {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

.sidebar {
  min-width: 0;
}

.panel,
.side-box,
.note,
.project-card,
.tool-card,
.safety-card {
  background: #eeeeee;
  border: 4px outset #ffffff;
}

.side-box {
  margin-bottom: 10px;
  padding: 8px;
  font-size: 14px;
}

.side-box h2,
.side-box h3 {
  margin: 0 0 6px;
  padding: 3px 5px;
  color: #fff;
  background: #800000;
  border: 2px inset #c0c0c0;
  font: bold 16px "Times New Roman", Times, serif;
}

.counter {
  display: flex;
  justify-content: center;
  gap: 2px;
  margin: 8px 0;
}

.counter span {
  min-width: 18px;
  padding: 1px 3px;
  color: #00ff66;
  background: #000;
  border: 2px inset #666;
  font: bold 18px "Courier New", Courier, monospace;
  text-align: center;
}

.content {
  min-width: 0;
}

.panel {
  margin-bottom: 10px;
  padding: 12px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

.content h1 {
  margin: 0 0 8px;
  color: #000080;
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
  font-size: 32px;
  text-shadow: 2px 2px 0 #fff;
}

.content h2 {
  margin: 0 0 8px;
  padding: 4px 6px;
  color: #000;
  background: #ffcc00;
  border: 3px outset #fff;
  font: bold 22px "Times New Roman", Times, serif;
}

.content h3 {
  margin: 10px 0 5px;
  font-size: 18px;
}

p {
  margin: 0 0 10px;
}

ul,
ol {
  margin-top: 6px;
  padding-left: 25px;
}

li {
  margin-bottom: 5px;
}

hr {
  height: 8px;
  margin: 14px 0;
  border: 0;
  background:
    repeating-linear-gradient(135deg, #111 0 14px, #ffcc00 14px 28px);
}

.under-construction {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 8px;
  background: #ffcc00;
  border: 5px ridge #000;
}

.under-construction img {
  width: 88px;
  flex: 0 0 auto;
  border: 3px inset #fff;
}

.under-construction strong {
  display: block;
  font: bold 22px "Courier New", Courier, monospace;
}

.stamp {
  display: inline-block;
  margin-left: 4px;
  padding: 0 4px;
  color: #fff;
  background: #cc0000;
  border: 2px outset #ff9999;
  font: bold 12px Arial, Helvetica, sans-serif;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-card,
.tool-card,
.safety-card {
  padding: 10px;
}

.project-card h3,
.tool-card h3,
.safety-card h3 {
  color: #800000;
}

.specs {
  margin: 7px 0;
  padding: 6px;
  background: #ffffcc;
  border: 3px inset #fff;
  font-size: 14px;
}

.note {
  padding: 9px;
  background: #ccffff;
  border-style: ridge;
}

.warning {
  background: #ffe0cc;
  border-color: #ff9999;
}

.contact-box {
  padding: 12px;
  background: #fff;
  border: 4px inset #c0c0c0;
}

.fake-form label {
  display: block;
  margin-top: 8px;
  font-weight: bold;
}

.fake-form input,
.fake-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 6px;
  border: 3px inset #c0c0c0;
  background: #fff;
  font: 15px Arial, Helvetica, sans-serif;
}

.fake-form textarea {
  min-height: 100px;
}

.button-link {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 10px;
  background: #c0c0c0;
  border: 4px outset #fff;
  color: #0000ee;
  font-weight: bold;
}

.site-footer {
  padding: 10px;
  background: #d8d8d8;
  border-top: 5px ridge #fff;
  font-size: 14px;
  text-align: center;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin: 6px 0;
  padding: 0;
  list-style: none;
}

.smallprint {
  margin-top: 6px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
}

@media (max-width: 640px) {
  .page-shell {
    margin: 8px auto;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, .35);
  }

  .layout,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .site-header,
  .panel,
  .side-box {
    border-width: 3px;
  }

  .retro-nav a {
    min-width: 0;
    padding: 5px 6px;
    font-size: 12px;
  }

  .under-construction {
    align-items: flex-start;
  }

  .under-construction img {
    width: 64px;
  }

  .content h1 {
    font-size: 28px;
  }
}
