/* The 1999 look: GeoCities by way of Windows 98. Same content, louder clothes. */
html[data-style="retro"] {
  --space: #000033;
  --silver: #c0c0c0;
  --hi: #ffffff;
  --lo: #808080;
  --dark: #404040;
  --ink: #000000;
  --title: #000080;
  --lime: #00ff66;
  --yellow: #ffdd00;
  --sky: #9fd0ff;
  color-scheme: only light;
}
html[data-style="retro"] body {
  color: var(--ink);
  font: 400 1.1rem/1.55 "Comic Sans MS", "Comic Neue", "Chalkboard SE", cursive;
  background-color: var(--space);
  background-image:
    radial-gradient(1px 1px at 12px 18px, #fff 99%, transparent),
    radial-gradient(1px 1px at 61px 44px, #cfe8ff 99%, transparent),
    radial-gradient(2px 2px at 95px 9px, #fff 99%, transparent),
    radial-gradient(1px 1px at 33px 87px, #fff 99%, transparent),
    radial-gradient(1px 1px at 118px 71px, #ffe9a8 99%, transparent),
    radial-gradient(2px 2px at 78px 112px, #cfe8ff 99%, transparent);
  background-size: 128px 128px;
}
html[data-style="retro"] a { color: #0000ee; }
html[data-style="retro"] a:visited { color: #551a8b; }
html[data-style="retro"] :focus-visible { outline: 3px dashed var(--ink); outline-offset: 2px; background: var(--yellow); color: #000; }
html[data-style="retro"] .page { max-inline-size: 52rem; margin-inline: auto; padding: 1rem clamp(.5rem, 3vw, 1.5rem) 2rem; }

/* Beveled Win9x controls */
html[data-style="retro"] .picker button,
html[data-style="retro"] .theme-toggle,
html[data-style="retro"] .bevel-btn {
  font: 400 .62rem/1.3 "Press Start 2P", monospace; color: #000;
  background: var(--silver); padding: .55rem .7rem;
  border: 2px solid; border-color: var(--hi) var(--dark) var(--dark) var(--hi);
}
html[data-style="retro"] .picker button[aria-pressed="true"] { border-color: var(--dark) var(--hi) var(--hi) var(--dark); background: #a8a8a8; }
html[data-style="retro"] .theme-toggle { display: none; }

/* Ticker */
html[data-style="retro"] .ticker { display: flex; align-items: center; gap: .5rem; margin-block: .75rem 1rem; }
html[data-style="retro"] .marquee {
  flex: 1; min-inline-size: 0; overflow: hidden; white-space: nowrap;
  color: var(--lime); background: #000; border: 2px inset var(--lo);
  font: 400 1.5rem/1.6 "VT323", monospace;
}
html[data-style="retro"] .marquee span { display: inline-block; padding-inline-start: 100%; animation: retro-scroll 18s linear infinite; }
html[data-style="retro"] .paused .marquee span,
html[data-style="retro"] .paused .logo,
html[data-style="retro"] .paused .new { animation-play-state: paused; }
@keyframes retro-scroll { to { transform: translateX(-100%); } }

/* Hero */
html[data-style="retro"] .hero { text-align: center; color: #fff; padding-block: .5rem 1.5rem; }
html[data-style="retro"] .logo {
  inline-size: 128px; block-size: 128px; margin: 0 auto 1rem;
  background: url("../smiley-32.png") center / 100% 100% no-repeat; image-rendering: pixelated;
  border-radius: 0; animation: retro-bob .6s steps(2) 8;
}
html[data-style="retro"] .logo .mark { visibility: hidden; }
html[data-style="retro"] .photo { display: none; }
@keyframes retro-bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
html[data-style="retro"] h1 {
  font: 400 clamp(1.6rem, 7vw, 3.2rem)/1.25 "Press Start 2P", monospace; margin: 0;
  color: var(--yellow); text-shadow: 3px 3px 0 #ff0080, 6px 6px 0 #0060ff;
}
html[data-style="retro"] .tagline { font: 400 clamp(1.4rem, 3.5vw, 1.8rem)/1.2 "VT323", monospace; color: #fff; margin: 1rem auto 0; max-inline-size: 36ch; }
html[data-style="retro"] .links { justify-content: center; gap: .25rem 1.25rem; margin-block-start: 1rem; font-weight: 700; }
html[data-style="retro"] .links a, html[data-style="retro"] .footer a { color: var(--sky); }

/* Sections become Win98 windows */
html[data-style="retro"] .panel {
  margin-block-start: 1.25rem; padding-block-end: 1.25rem;
  background: var(--silver);
  border: 2px solid; border-color: var(--hi) var(--dark) var(--dark) var(--hi);
  box-shadow: inset -1px -1px var(--lo), inset 1px 1px #dfdfdf;
}
html[data-style="retro"] .panel > :not(.bar) { margin-inline: clamp(.75rem, 3vw, 1.5rem); }
html[data-style="retro"] .bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem; padding: .35rem .5rem; background: linear-gradient(90deg, var(--title), #1084d0); color: #fff; }
html[data-style="retro"] .bar-title { font: 400 .7rem/1.4 "Press Start 2P", monospace; margin: 0; min-inline-size: 0; overflow-wrap: anywhere; }
html[data-style="retro"] .bar-btns { display: flex; gap: 2px; }
html[data-style="retro"] .bar-btns span { inline-size: 16px; block-size: 14px; background: var(--silver); border: 1px solid; border-color: var(--hi) var(--dark) var(--dark) var(--hi); font: 700 10px/12px Arial, sans-serif; color: #000; text-align: center; }
html[data-style="retro"] h2 { font: 400 clamp(.85rem, 2.6vw, 1.05rem)/1.5 "Press Start 2P", monospace; margin-block: 1rem .75rem; color: var(--title); }
html[data-style="retro"] h3 { font-size: 1.3rem; line-height: 1.3; margin-block: 1.25rem .2rem; }
html[data-style="retro"] h2 + .entry h3 { margin-block-start: 0; }
html[data-style="retro"] .meta { font-style: italic; color: #333; margin-block-end: .3rem; }
html[data-style="retro"] .new { display: inline-block; font: 400 .55rem/1 "Press Start 2P", monospace; color: #fff; background: #c00000; padding: .3rem .35rem; vertical-align: middle; margin-inline-start: .4rem; animation: retro-blink 1s steps(1) 5; }
@keyframes retro-blink { 50% { visibility: hidden; } }

html[data-style="retro"] .construction { margin-block-start: 1.25rem; padding: .6rem; text-align: center; background: repeating-linear-gradient(-45deg, #ffdd00 0 14px, #000 14px 28px); }
html[data-style="retro"] .construction p { display: inline-block; max-inline-size: 100%; margin: 0; background: #ffdd00; color: #000; font: 400 .65rem/1.6 "Press Start 2P", monospace; padding: .4rem .6rem; border: 2px solid #000; }

/* Footer */
html[data-style="retro"] .footer { color: #fff; text-align: center; margin-block-start: 1.5rem; font: 400 1.25rem/1.4 "VT323", monospace; }
html[data-style="retro"] .footer p { margin: .4rem 0 0; color: #d8d8d8; }
html[data-style="retro"] .counter { display: inline-flex; gap: 2px; margin: .2rem 0; font: 400 1.6rem/1.2 "VT323", monospace; }
html[data-style="retro"] .counter span { background: #000; color: var(--lime); border: 1px solid #444; padding: 0 .3rem; min-inline-size: 1.2em; }
html[data-style="retro"] .mackie { flex-wrap: wrap; display: flex; align-items: flex-end; justify-content: center; gap: .5rem 1rem; margin: 1.5rem auto .5rem; max-inline-size: 36rem; }
html[data-style="retro"] .mackie img { inline-size: clamp(7rem, 30vw, 9.5rem); block-size: auto; filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(5px 5px 0 #ff0080); animation: retro-strut .5s steps(2) 10; transform-origin: 50% 100%; }
@keyframes retro-strut { 50% { transform: translateY(-4px) rotate(3deg); } }
html[data-style="retro"] .bubble {
  position: relative; align-self: flex-start; margin: 0; background: #fff; color: #000;
  font: 700 1.05rem/1.3 "Comic Sans MS", "Comic Neue", cursive; padding: .6rem .8rem;
  border: 3px solid #000; border-radius: 1.2rem; box-shadow: 3px 3px 0 #000;
}
html[data-style="retro"] .bubble::after { content: ""; position: absolute; inset-inline-start: -14px; inset-block-end: 14px; border: 8px solid transparent; border-inline-end: 12px solid #000; }
html[data-style="retro"] .footer .bubble { color: #000; min-inline-size: 0; flex: 0 1 15rem; text-align: start; }
html[data-style="retro"] .footer .bubble a, html[data-style="retro"] .footer .bubble a:visited { color: #0000ee; }
html[data-style="retro"] .paused .mackie img { animation-play-state: paused; }
html[data-style="retro"] .ring { font-size: 1.4rem; margin: 1rem 0; }
html[data-style="retro"] .ring a { display: inline-block; min-block-size: 24px; }
html[data-style="retro"] .badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 1rem 0; padding: 0; list-style: none; }
html[data-style="retro"] .btn88 { inline-size: 88px; block-size: 31px; display: flex; align-items: center; justify-content: center; text-align: center; font: 400 6.5px/1.35 "Press Start 2P", monospace; text-decoration: none; border: 2px outset #999; }
html[data-style="retro"] .b1 { background: #000; color: var(--lime); }
html[data-style="retro"] .b2 { background: linear-gradient(#ffffff, #a0c8ff); color: #000080; }
html[data-style="retro"] .footer .b3, html[data-style="retro"] .footer .b3:visited { background: #ffd21e; color: #000; }
html[data-style="retro"] .footer .b4, html[data-style="retro"] .footer .b4:visited { background: #ff6a00; color: #000; }
html[data-style="retro"] .b5 { background: #800080; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html[data-style="retro"] .marquee span { padding-inline-start: .5rem; white-space: normal; }
  html[data-style="retro"] .pause { display: none; }
}
