:root {
  color-scheme: light;
  --blue: #0000ee;
  --navy: #000080;
  --green: #008000;
  --red: #d00000;
  --paper: #fffef2;
  --ink: #111;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: #d7d7d7;
  background-image: linear-gradient(45deg, #c8c8c8 25%, transparent 25%), linear-gradient(-45deg, #c8c8c8 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #c8c8c8 75%), linear-gradient(-45deg, transparent 75%, #c8c8c8 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
}

a { color: var(--blue); text-decoration: underline; }
a:visited { color: #551a8b; }
a:focus-visible, summary:focus-visible { outline: 3px dotted #f00; outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  padding: 8px 12px;
  color: #fff;
  background: #000;
  transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); }

.page {
  width: min(800px, calc(100% - 20px));
  min-height: 100vh;
  margin: 10px auto 40px;
  padding: 8px 18px 24px;
  border: 3px ridge #b9b9b9;
  background: var(--paper);
  box-shadow: 8px 8px 0 rgb(0 0 0 / 22%);
}

.utility-bar { display: flex; justify-content: space-between; gap: 12px; padding: 2px 4px 10px; color: #555; font-size: 12px; }
.site-header { text-align: center; }
.stars { display: flex; justify-content: center; gap: 24px; min-height: 20px; margin: 4px 0; }
.title-frame { border: 5px ridge #c8c8c8; background: #000080; }
.title-frame h1 { margin: 0; color: #fff; font-family: Georgia, serif; font-size: clamp(62px, 15vw, 112px); line-height: .92; letter-spacing: .12em; text-shadow: 4px 4px #008080; }
.tagline { color: var(--navy); font-weight: bold; }
.welcome-banner img { max-width: 100%; height: auto; image-rendering: pixelated; }

.marquee { overflow: hidden; margin: 10px 0; border: 2px inset #bbb; color: #ff0; background: #000; white-space: nowrap; }
.marquee span { display: inline-block; min-width: 100%; padding: 4px 0; animation: crawl 18s linear infinite; }
@keyframes crawl { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marquee span { animation: none; white-space: normal; } .blink { animation: none; } }

.profile-table { width: 100%; border-collapse: collapse; margin: 18px 0 10px; }
.profile-table th, .profile-table td { border: 1px solid #777; padding: 7px; }
.profile-table th { width: 96px; color: #fff; background: var(--navy); font-size: 12px; }
.profile-table td:last-child { width: 150px; font-size: 12px; }
.intro strong, .intro span { display: block; }
.intro strong { margin-bottom: 8px; color: var(--green); }
.blink { color: var(--red); font-weight: bold; animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.counter { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; font-size: 12px; }
.counter b { padding: 3px 8px; border: 2px inset #aaa; color: #0f0; background: #000; font: 700 20px monospace; letter-spacing: 3px; }
.rainbow-rule { height: 8px; border: 0; background: linear-gradient(90deg, #f00, #ff0, #0c0, #0ff, #00f, #f0f, #f00); }

.category-nav { margin: 18px 0; padding: 8px; border: 3px double var(--navy); text-align: center; background: #eef; }
.category-nav p { margin: 0 0 8px; color: var(--navy); font-size: 12px; font-weight: bold; }
.category-nav div { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.category-nav a { display: inline-block; padding: 5px 9px; border: 2px outset #ddd; color: #000; background: #ddd; font-size: 12px; font-weight: bold; text-decoration: none; }
.category-nav a:active { border-style: inset; }

.section-title { display: flex; justify-content: space-between; align-items: center; border-bottom: 4px double #000; }
.section-title h2 { margin: 6px 0; color: var(--navy); font-size: 20px; }
.section-title span { font-size: 12px; }
.category { scroll-margin-top: 12px; }
.category > h3 { margin: 24px 0 0; padding: 4px 8px; color: #fff; background: #000; font-size: 15px; }
.work { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px dashed #777; }
.visual { display: grid; min-height: 160px; place-items: center; overflow: hidden; border: 4px ridge #ccc; text-align: center; }
.visual span { padding: 14px; border: 2px solid currentColor; font-family: Impact, "Arial Black", sans-serif; font-size: 30px; line-height: .9; letter-spacing: .08em; transform: rotate(-4deg); }
.visual-blue { color: #fff; background: repeating-linear-gradient(45deg, #092987 0 12px, #06184b 12px 24px); }
.visual-lime { color: #111; background: repeating-linear-gradient(90deg, #d8ff50 0 20px, #fff 20px 22px); }
.visual-coral { color: #30120e; background: radial-gradient(circle at 20% 30%, #fff 0 3px, transparent 4px), #ff806f; }
.visual-violet { color: #fff; background: linear-gradient(135deg, #19002f, #b57bff); }
.visual-cyan { color: #032828; background: repeating-radial-gradient(circle, #86f4f0 0 8px, #fff 9px 10px); }
.visual-yellow { color: #111; background: linear-gradient(90deg, #ffdf00 50%, #ff2b00 50%); }
.index { margin: 0; color: #666; font-size: 11px; }
.work h4 { margin: 6px 0; color: var(--blue); font-size: 22px; text-decoration: underline; }
.work h4 img { image-rendering: pixelated; vertical-align: middle; }
.work-copy > p { line-height: 1.55; }
details { margin-top: 12px; padding: 7px; border: 1px dotted #555; background: #fff; }
summary { color: var(--blue); cursor: pointer; font-weight: bold; }
details p { margin-bottom: 0; line-height: 1.55; }

.privacy-box { display: grid; grid-template-columns: minmax(0, 400px) 1fr; align-items: center; gap: 14px; margin: 26px 0; padding: 10px; border: 3px dashed #f00; background: #fffacb; }
.privacy-box img { max-width: 100%; height: auto; image-rendering: pixelated; }
.privacy-box h2 { margin: 0 0 5px; color: #c00; font-size: 16px; }
.privacy-box p { margin: 0; font-size: 12px; }

footer { padding-top: 16px; border-top: 4px double #000; text-align: center; font-size: 11px; }
.badges { display: flex; justify-content: center; gap: 8px; }
.badges img { image-rendering: pixelated; }

@media (max-width: 620px) {
  body { font-size: 14px; }
  .page { width: calc(100% - 8px); margin-top: 4px; padding: 7px 10px 20px; }
  .utility-bar { font-size: 10px; }
  .profile-table, .profile-table tbody, .profile-table tr, .profile-table th, .profile-table td { display: block; width: 100%; }
  .profile-table .intro { border-bottom: 3px double #777; }
  .profile-table th { text-align: left; }
  .work { grid-template-columns: 1fr; }
  .visual { min-height: 190px; }
  .privacy-box { grid-template-columns: 1fr; text-align: center; }
}
