* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 18px 10px 35px;
  background-color: #050b32;
  background-image: radial-gradient(circle at 8px 12px, #fff 0 1px, transparent 1.5px), radial-gradient(circle at 57px 39px, #64dfff 0 1px, transparent 1.5px), radial-gradient(circle at 37px 70px, #c8a9ff 0 1px, transparent 1.5px), radial-gradient(circle at 90px 87px, #fff 0 1px, transparent 1.5px);
  background-size: 112px 112px;
  color: #141127;
  font: 14px/1.5 Verdana, Arial, sans-serif;
}
a { color: #0000cc; }
a:visited { color: #700090; }
a:hover { color: #c00050; }
a:focus-visible { outline: 3px dashed #e60065; outline-offset: 3px; }
.skip-link { position: absolute; top: -80px; left: 10px; z-index: 5; padding: 8px; background: #fff; }
.skip-link:focus { top: 10px; }
.page-frame { max-width: 1000px; margin: auto; padding: 5px; background: #c0c0c0; border: 3px outset #f1f1f1; }
.site-header { text-align: center; background: #100b50; color: #fff; border: 2px inset #ededed; }
.title-bar { display: flex; justify-content: space-between; gap: 8px; padding: 3px 7px; background: #000080; color: #fff; font: bold 12px Arial, sans-serif; text-align: left; }
.header-inner { padding: 13px 10px 15px; background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(97, 60, 168, .18) 12px 14px); }
.header-eyebrow { margin: 0; color: #8df9ff; font: bold 11px "Courier New", monospace; letter-spacing: 2px; }
.twinkle { width: 16px; height: 16px; vertical-align: middle; image-rendering: pixelated; }
h1 { margin: 1px 0; color: #ffff00; font: bold clamp(2.5rem, 7vw, 4.3rem)/1.1 "Comic Sans MS", cursive; text-shadow: 3px 3px #ec158b, 5px 5px #000; }
h1 span { color: #72ffea; }
.header-subtitle { margin: 7px 0; color: #fff; font: bold 15px "Comic Sans MS", cursive; }
.zone { display: inline-block; margin: 4px 0 0; padding: 2px 12px; border: 1px dashed #ffff00; color: #ffff00; font: bold 13px "Courier New", monospace; }
.ticker { overflow: hidden; min-height: 27px; border-top: 2px ridge #fff; background: #e6e6ff; color: #440080; font-weight: bold; white-space: nowrap; text-align: left; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker-scroll 22s linear infinite; }
@keyframes ticker-scroll { to { transform: translateX(-100%); } }
.layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 10px; padding: 10px 5px; align-items: start; }
.sidebar { display: grid; gap: 10px; text-align: center; }
.nav-box, .sidebar-note, .counter-box { padding: 8px; border: 3px ridge #eee; background: #eee8ff; }
.nav-box h2 { margin: 0 0 8px; padding: 5px; background: #55229b; color: #fff; font: bold 16px "Comic Sans MS", cursive; }
.nav-box ul { margin: 0; padding: 0; list-style: none; }
.nav-box li + li { margin-top: 4px; }
.nav-box a { display: block; padding: 5px 3px; border: 3px outset #eee; background: #c0c0c0; font-size: 12px; font-weight: bold; }
.nav-box a:active { border-style: inset; }
.sidebar-note { background: #ffffc9; }
.sidebar-note p { margin: 5px 0; }
.sidebar-title { font: bold 11px "Courier New", monospace; }
.approved { color: #800080; font: bold 20px/1.1 "Comic Sans MS", cursive; transform: rotate(-4deg); }
.counter-box { background: #d7ddff; }
.counter-box p { margin: 0 0 5px; font: bold 11px "Courier New", monospace; }
.counter { display: inline-block; padding: 2px 8px; border: 3px inset #aaa; background: #050505; color: #7dff48; font: bold 22px/1 "Courier New", monospace; letter-spacing: 3px; }
.counter-box small { display: block; margin-top: 5px; font-size: 10px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.badge { display: flex; width: 88px; height: 31px; align-items: center; justify-content: center; border: 2px outset #eee; color: #fff; font: bold 10px/1 Arial, sans-serif; text-shadow: 1px 1px #000; }
.badge-blue { background: #000080; }
.badge-green { background: #23690b; }
.badge-purple { background: #822b91; }
main { min-width: 0; }
.content-box { margin-bottom: 10px; border: 3px ridge #e9e9e9; background: #fff; }
.box-title { padding: 4px 9px; background: #220a70; color: #fff; border-bottom: 3px ridge #d3cdff; }
.box-title h2 { margin: 0; font: bold 17px "Comic Sans MS", Verdana, sans-serif; }
.box-body { padding: 12px 15px; }
.box-body p:first-child { margin-top: 0; }
.box-body p:last-child { margin-bottom: 0; }
.welcome-box { background: #fffde2; }
.welcome-content { display: flex; gap: 15px; align-items: center; padding: 14px 15px 7px; }
.welcome-copy { flex: 1; min-width: 0; }
.welcome-copy p { margin: 0 0 10px; }
.hello { color: #a00085; font: bold 19px "Comic Sans MS", cursive; }
.signature { color: #50228d; font: bold 13px "Comic Sans MS", cursive; }
.portrait { flex: 0 1 200px; min-width: 130px; margin: 0; padding: 5px; border: 4px ridge #b9b9b9; background: #fff; text-align: center; }
.portrait img { display: block; width: 100%; image-rendering: pixelated; }
.portrait figcaption { padding: 4px 0 1px; color: #4a1978; font: bold 11px "Comic Sans MS", cursive; }
.rainbow-rule { height: 7px; margin: 4px 15px; background: linear-gradient(to right, #f33, #ffdb00, #5bc72c, #00aadd, #4141d1, #a326b1); border: 1px solid #555; }
.news { padding: 4px 15px 12px; }
.news h3 { margin: 5px 0; color: #3a077a; font: bold 15px "Comic Sans MS", cursive; }
.news p { margin: 5px 0 0; }
.new-label { padding: 1px 4px; background: #ffff00; color: #a40000; font: bold 12px Arial, sans-serif; }
.screen-placeholder { padding: 14px; border: 6px ridge #aaa; background: #10152b; color: #b7ffc2; text-align: center; font-family: "Courier New", monospace; }
.screen-placeholder span { display: block; color: #ffb6b6; text-align: left; }
.screen-placeholder strong { display: block; color: #7dffde; font-size: 19px; }
.screen-placeholder p { margin: 8px 0 3px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.photo-placeholder { display: flex; min-height: 115px; padding: 8px; align-items: center; justify-content: center; flex-direction: column; border: 4px ridge #d3d3d3; background: #e8e8f5; color: #33245c; text-align: center; }
.photo-placeholder span { color: #7953a5; font: bold 24px "Courier New", monospace; }
.photo-placeholder small { margin-top: 4px; }
.journal-entry { padding: 9px 12px; border: 2px dashed #a390c4; background: #f7f1ff; }
.journal-entry strong { color: #5c2582; font-family: "Courier New", monospace; }
.journal-entry p { margin: 4px 0 0; }
.fact-intro { color: #740078; font-weight: bold; }
.fact-list { padding-left: 22px; }
.fact-list li { margin: 7px 0; }
.small-print { font-size: 12px; }
.house-placeholder { display: flex; gap: 15px; align-items: center; padding: 8px 14px; border: 2px dashed #9f89b5; background: #f6f1ff; }
.house-placeholder span { color: #743b1c; font: bold 15px/1 "Courier New", monospace; white-space: nowrap; }
.guestbook-note { padding: 10px; border: 2px inset #ddd; background: #ffffd7; text-align: center; }
.site-footer { padding: 15px 10px; border: 3px ridge #eee; background: #e8e4ff; text-align: center; }
.site-footer p { margin: 7px 0; }
.construction { display: inline-block; padding: 5px 14px; border: 3px outset #e2d879; background: repeating-linear-gradient(135deg, #ffe600 0 10px, #171717 10px 20px); color: #fff; font: bold 14px "Courier New", monospace; text-shadow: 2px 2px #000, -1px -1px #000; }
.construction-icon { display: inline-block; color: #fff700; animation: caution-blink 1s steps(2, end) infinite; }
@keyframes caution-blink { 50% { opacity: .25; } }
.footer-small { font-size: 11px; }
@media (max-width: 650px) {
  body { padding: 6px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .nav-box { grid-column: 1 / -1; }
  .nav-box ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .nav-box li + li { margin: 0; }
  .badges { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .welcome-content { flex-direction: column-reverse; align-items: stretch; }
  .portrait { align-self: center; width: min(200px, 100%); }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-placeholder { min-height: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker span { padding-left: 0; animation: none; white-space: normal; }
  .construction-icon { animation: none; }
  .twinkle { visibility: hidden; }
}
