/* bored3dprinters.com: hand-rolled like it is 1997. No framework, no build step. */

:root {
  --ink: #000;
  --paper: #fffff0;
  --link: #0000ee;
  --grey: #c0c0c0;
  --grey-dark: #808080;
  --grey-darker: #404040;
  --hot: #d4006a;
  --navy: #000080;
  --sky: #0055cc;
  --gold: #ffd800;
  --night: #1b1430;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--night) url("assets/bg-space.png") repeat;
  image-rendering: auto;
  font: 18px/1.5 "Times New Roman", Times, serif;
}

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

a { color: var(--link); }
a:hover { color: var(--hot); }

:focus-visible {
  outline: 3px dashed var(--hot);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -100px;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--ink);
  font-weight: bold;
  z-index: 10;
}
.skip:focus { top: 8px; }

/* ---------- page frame ---------- */

.page {
  width: min(960px, 100% - 32px);
  margin: 16px auto 32px;
}

.panel {
  background: var(--paper);
  border: 3px ridge var(--grey);
  padding: 16px 20px;
  margin: 0 0 16px;
}

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

@media (min-width: 840px) {
  .layout { grid-template-columns: minmax(0, 1fr) 200px; }
}

/* ---------- masthead ---------- */

.masthead { text-align: center; }

.welcome {
  margin: 0 0 4px;
  font: italic 18px "Times New Roman", Times, serif;
  color: var(--navy);
}

.wordart {
  margin: 8px 0 4px;
  font-family: Impact, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 9.5vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  transform: skewX(-8deg) scaleY(1.15);
  filter: drop-shadow(2px 2px 0 #fff) drop-shadow(3px 3px 0 #000) drop-shadow(2px 2px 0 #000);
}

.wordart span {
  display: inline-block;
  background: linear-gradient(180deg, #ff00cc 0%, #ff6a00 35%, #ffe100 55%, #00d084 75%, #0066ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wordart .dotcom {
  background: linear-gradient(180deg, #33ccff, #0033cc);
  -webkit-background-clip: text;
  background-clip: text;
}

.tagline {
  margin: 12px 0 8px;
  font: bold clamp(1.3rem, 5vw, 1.9rem)/1.2 "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  color: var(--hot);
}

.hero { margin: 8px auto; }
.hero img { width: 220px; }
.hero figcaption {
  font-style: italic;
  font-size: 16px;
}

.updated {
  margin: 12px 0 0;
  font-size: 14px;
  color: #333;
}

/* Windows 95 button */
.btn95 {
  font: bold 16px Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--grey);
  border: 0;
  padding: 8px 16px;
  cursor: pointer;
  box-shadow: inset -2px -2px var(--grey-darker), inset 2px 2px #fff,
              inset -4px -4px var(--grey-dark), inset 4px 4px #dfdfdf;
}
.btn95:active {
  box-shadow: inset 2px 2px var(--grey-darker), inset -2px -2px #fff,
              inset 4px 4px var(--grey-dark), inset -4px -4px #dfdfdf;
}

/* ---------- beveled nav ---------- */

.nav95 {
  background: var(--grey);
  padding: 6px;
  margin: 0 0 16px;
  box-shadow: inset -2px -2px var(--grey-darker), inset 2px 2px #fff;
}
.nav95 ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.nav95 a {
  display: block;
  padding: 6px 12px;
  font: bold 15px Arial, Helvetica, sans-serif;
  color: var(--ink);
  text-decoration: none;
  background: var(--grey);
  box-shadow: inset -2px -2px var(--grey-darker), inset 2px 2px #fff,
              inset -3px -3px var(--grey-dark);
}
.nav95 a:hover { background: #d4d0c8; color: var(--navy); text-decoration: underline; }
.nav95 a:active { box-shadow: inset 2px 2px var(--grey-darker), inset -2px -2px #fff; }

/* ---------- marquee, done in CSS ---------- */

.ticker {
  overflow: hidden;
  background: #000;
  color: #39ff14;
  border: 3px inset var(--grey);
  margin: 0 0 16px;
  font: bold 16px/1 "Courier New", Courier, monospace;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}
.ticker-track p {
  margin: 0;
  padding: 10px 0;
  white-space: nowrap;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

h2 {
  margin: 0 0 12px;
  text-align: center;
  font: bold clamp(1.4rem, 5vw, 1.9rem)/1.2 "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive;
  color: var(--navy);
  text-shadow: 2px 2px 0 var(--gold);
}
h2::after {
  content: "";
  display: block;
  height: 6px;
  margin: 8px auto 0;
  max-width: 420px;
  background: linear-gradient(90deg, #ff00cc, #ff6a00, #ffe100, #00d084, #0066ff, #9b00ff);
  border: 1px solid #000;
}

h3 {
  margin: 8px 0 4px;
  font: bold 1.15rem/1.25 Arial, Helvetica, sans-serif;
  color: var(--hot);
}

p { margin: 0 0 12px; }

.two-up {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 12px;
}
.card {
  border: 2px dashed var(--grey-dark);
  padding: 12px;
  text-align: center;
  background: #fff;
}
.card p { text-align: left; }

.big-claim {
  font-weight: bold;
  text-align: center;
  background: var(--gold);
  border: 2px solid #000;
  padding: 8px 12px;
}

.note {
  font-style: italic;
  font-size: 16px;
}

/* the weekly cycle table, borders on, cellpadding=4 energy */
.table-wrap { overflow-x: auto; margin-bottom: 12px; }
.cycle {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  border: 2px outset var(--grey);
  background: var(--grey);
  font-size: 16px;
}
.cycle th, .cycle td {
  border: 1px inset var(--grey);
  padding: 6px 8px;
  vertical-align: top;
  text-align: left;
  background: #fff;
}
.cycle thead th {
  background: var(--navy);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}
.cycle td:first-child { width: 34%; font-weight: bold; color: var(--navy); }
.cycle .week-row th {
  background: #ffff99;
  color: var(--hot);
  text-align: center;
  font: bold 16px "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
}

.roles { margin: 0; display: grid; gap: 12px; }
.roles div {
  border-left: 6px solid var(--sky);
  background: #fff;
  padding: 8px 12px;
}
.roles dt {
  font: bold 1.15rem Arial, Helvetica, sans-serif;
  color: var(--hot);
}
.roles dd { margin: 4px 0 0; }

.ideas-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
}
.ideas-head img { width: 80px; flex: none; }
.ideas-head p { margin: 0; }

.stamp {
  display: inline-block;
  padding: 2px 8px;
  border: 3px double #c00;
  color: #c00;
  font: bold 16px "Courier New", Courier, monospace;
  transform: rotate(-3deg);
}

.ideas {
  list-style: none;
  counter-reset: idea;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ideas li {
  counter-increment: idea;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff;
  border: 2px outset var(--grey);
  padding: 10px;
}
.ideas li:first-child { grid-column: 1 / -1; align-items: center; }
.ideas li img { width: 96px; flex: none; }
.ideas h3 { margin-top: 0; }
.ideas h3::before {
  content: "#" counter(idea) " ";
  color: var(--navy);
}
.ideas p { margin: 0; font-size: 16px; }

.rules { padding-left: 24px; }
.rules li { margin-bottom: 6px; }
.rules li::marker { content: "* "; color: var(--hot); font-weight: bold; }

.printable {
  background: #e0f0ff;
  border: 2px solid var(--navy);
  padding: 10px 14px;
}
.printable h3 { margin-top: 0; color: var(--navy); }
.printable ul { margin: 0; padding-left: 22px; }

.faq dt {
  font: bold 1.1rem Arial, Helvetica, sans-serif;
  color: var(--navy);
  margin-top: 12px;
}
.faq dt::before { content: "Q: "; color: var(--hot); }
.faq dd { margin: 4px 0 0; }
.faq dd::before { content: "A: "; font-weight: bold; color: var(--hot); }

.banner { display: block; width: 500px; margin: 0 auto 12px; }

.blink {
  color: #fff;
  background: #c00;
  padding: 0 6px;
  font: bold 14px Arial, Helvetica, sans-serif;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { visibility: hidden; } }

/* ---------- sidebar ---------- */

.sidebar { display: grid; gap: 16px; align-content: start; }
.side-box { margin: 0; padding: 12px; text-align: center; }
.side-box h2 { font-size: 1.15rem; }
.side-box h2::after { margin-top: 4px; height: 4px; }
.side-box img { width: 120px; }

.tiny { font-size: 14px; margin: 6px 0 0; }

.counter {
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 4px;
  background: #000;
  border: 2px inset var(--grey);
}
.counter span[aria-hidden] {
  display: inline-block;
  width: 20px;
  padding: 2px 0;
  background: #111;
  color: #ff3b3b;
  font: bold 20px/1 "Courier New", Courier, monospace;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.guestbook, .award {
  margin: 0;
  font: bold 18px "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  color: var(--sky);
}
.award { color: #8a6100; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 31px;
  font: bold 10px/1.05 Verdana, Geneva, sans-serif;
  text-align: center;
  border: 1px solid #000;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #555;
}
.b1 { background: #fff; color: #000; }
.b2 { background: #00a651; color: #fff; }
.b3 { background: #8b4513; color: #fff; }
.b4 { background: var(--navy); color: var(--gold); }

/* ---------- footer ---------- */

.footer { text-align: center; }
.ring-title {
  margin: 0 0 4px;
  font: bold 18px "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  color: var(--navy);
}
.ring-links { margin: 0; font-size: 16px; }
.ring-links a { white-space: normal; }
.ring-links span { margin: 0 6px; }
.footer hr {
  border: 0;
  height: 4px;
  margin: 12px 0;
  border-top: 2px groove var(--grey);
  border-bottom: 2px groove var(--grey);
}
.copyright { margin: 12px 0 0; font-weight: bold; }

/* ---------- phones ---------- */

@media (max-width: 520px) {
  body { font-size: 17px; }
  .panel { padding: 14px 12px; }
  .cycle td:first-child { width: 40%; }
  .ideas-head { align-items: flex-start; }
  .ideas li:first-child { align-items: flex-start; }
  .ideas li img { width: 72px; }
  .ring-links span { display: none; }
  .ring-links a { display: block; margin: 4px 0; }
}

/* ---------- motion: off if you asked ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; display: block; }
  .ticker-track p { white-space: normal; padding: 10px; line-height: 1.4; }
  .ticker-track p[aria-hidden="true"] { display: none; }
  .blink { animation: none; }
}
