/* Learncards — one hand-written stylesheet. Old-school, tidy, light only, no JS. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 24px 16px;
  /* tiled "wallpaper" — a faint checker, the way every 1998 homepage had one */
  background-color: #efe9d8;
  background-image:
    linear-gradient(45deg, #e6dfc9 25%, transparent 25%, transparent 75%, #e6dfc9 75%),
    linear-gradient(45deg, #e6dfc9 25%, transparent 25%, transparent 75%, #e6dfc9 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  color: #222;
  font: 17px/1.6 Georgia, "Times New Roman", Times, serif;
}
.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 28px;
  background: #fff;
  border: 4px ridge #c9b36a;
  box-shadow: 4px 4px 0 #8a7d5a;
}
h1, h2, h3, h4 {
  font-family: Verdana, Tahoma, "Trebuchet MS", Arial, sans-serif;
  font-weight: bold;
  line-height: 1.25;
  color: #1a1a1a;
  margin: 1.4em 0 .5em;
}
h1 { font-size: 1.75em; margin-top: .4em; color: #000080; text-shadow: 2px 2px 0 #ffe95c; }
h2 { font-size: 1.3em; }
h3 { font-size: 1.1em; }
a { color: #0000ee; text-decoration: underline; }
a:visited { color: #551a8b; }
a:hover, a:focus { color: #cc0000; }
img { max-width: 100%; height: auto; }
hr {
  border: 0;
  height: 4px;
  margin: 16px 0;
  background: repeating-linear-gradient(90deg, #e03a3a 0 12px, #ffe95c 12px 24px, #2a7ae2 24px 36px, #3cb44b 36px 48px);
}

/* Header + category nav */
.site-header .logo { display: inline-block; }
.site-header .logo img { display: block; }
.cats {
  margin-top: 10px;
  padding: 4px 10px;
  background: #ffe95c;
  border: 2px outset #e6cf3a;
  font: bold 13px/1.9 Verdana, Tahoma, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cats a { color: #000080; }
.cats a:visited { color: #000080; }
.cats span { color: #a08f2a; padding: 0 2px; }

/* Home */
.hero { overflow: hidden; }
.hero p { margin-top: 0; }
.group h2 {
  background: #000080;
  color: #fff;
  padding: 3px 8px;
  border: 2px outset #4a4aa8;
}
.group h2 a { color: #ffe95c; text-decoration: none; }
.group h2 a:visited { color: #ffe95c; }
.group h2 a:hover { text-decoration: underline; }
.group h2 small, .listing small { font-weight: normal; color: #777; font-size: .75em; }
.group ul { margin: 0; padding-left: 1.3em; list-style: square; }

/* Listings */
.intro { font-style: italic; }
.listing { padding-left: 1.3em; list-style: square; }
.listing li { margin-bottom: .8em; }
.listing .excerpt { color: #555; font-size: .92em; }

/* Trick pages */
.byline {
  font: 13px/1.6 Verdana, Tahoma, Arial, sans-serif;
  color: #555;
  margin-top: -.3em;
}
.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1em 0 1.5em;
  border: 1px solid #b8b09a;
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.body { overflow-wrap: break-word; }
.body ol, .body ul { padding-left: 1.4em; }
.body li { margin-bottom: .3em; }
.body blockquote {
  margin: 1em 0;
  padding: .5em 1em;
  background: #faf8f2;
  border-left: 4px solid #b8b09a;
}
.body table { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; }
.body th, .body td { border: 1px solid #b8b09a; padding: 4px 8px; }
.body pre { overflow-x: auto; background: #faf8f2; border: 1px solid #ddd6c3; padding: 8px; }
.tags { font-size: .9em; color: #555; }

/* Footer */
.site-footer {
  font: 12px/1.7 Verdana, Tahoma, Arial, sans-serif;
  color: #555;
  text-align: center;
  border-top: 2px groove #c9b36a;
  padding-top: 8px;
}
.site-footer .counter {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  background: #000;
  color: #3cff3c;
  font: 12px/1.6 "Courier New", Courier, monospace;
  letter-spacing: .15em;
}
.site-footer p { margin: 0; }

@media (max-width: 600px) {
  body { padding: 0; font-size: 16px; }
  .wrap { padding: 14px 12px; border-width: 0 0 4px; box-shadow: none; }
  .cats { padding: 2px 6px; }
  .site-header .logo img { width: 200px; }
  h1 { font-size: 1.45em; }
  .cats { font-size: 13px; }
}

/* Breadcrumb */
.breadcrumb {
  font: 12px/1.6 Verdana, Tahoma, Arial, sans-serif;
  color: #555;
  margin: -6px 0 10px;
}
.breadcrumb span[aria-hidden] { color: #a08f2a; padding: 0 3px; }

/* Difficulty badge */
.badge {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid #8a7d5a;
  font: bold 10px/1.6 Verdana, Tahoma, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
  background: #fffbe0;
  color: #222;
}
.badge-easy { background: #d8f5d0; border-color: #3cb44b; }
.badge-intermediate { background: #fff1b8; border-color: #c9a400; }
.badge-expert { background: #ffd9d9; border-color: #cc0000; }

/* Quick facts box */
.facts {
  border-collapse: collapse;
  border: 2px outset #c9b36a;
  margin: 1em 0 1.5em;
  width: 100%;
  font: 14px/1.5 Verdana, Tahoma, Arial, sans-serif;
}
.facts caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  color: #000080;
  padding-bottom: 3px;
}
.facts th, .facts td { border: 1px solid #b8b09a; padding: 4px 8px; vertical-align: top; text-align: left; }
.facts th { width: 8.5em; background: #fff6b3; white-space: nowrap; }

/* More tricks like this */
.more { margin-top: 1.5em; border-top: 2px groove #c9b36a; }
.more ul { padding-left: 1.3em; list-style: square; }
.intro-text p { margin-top: 0; }
.site-footer p:first-child { font-weight: bold; }

@media (max-width: 600px) {
  .facts th { width: auto; white-space: normal; }
}

/* 1995 department */
.marquee {
  display: block;
  margin: 8px 0 -6px;
  font: bold 13px/1.6 Verdana, Tahoma, Arial, sans-serif;
  color: #800000;
}
.blink {
  font: bold 11px/1 Verdana, Arial, sans-serif;
  color: #ff0000;
  animation: blink 1s steps(1, end) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } .marquee { animation: none; } }
.construction {
  margin: 16px 0 0;
  padding: 4px 8px;
  text-align: center;
  font: bold 12px/1.8 Verdana, Arial, sans-serif;
  background: repeating-linear-gradient(135deg, #ffd800 0 14px, #000 14px 28px);
  border: 2px outset #c9a800;
}
.construction span {
  display: inline-block;
  padding: 0 10px;
  color: #ffd800;
  background: #000;
  border: 1px solid #ffd800;
}
.badges { margin-top: 8px !important; line-height: 1; }
.badges img, .construction img { image-rendering: pixelated; image-rendering: crisp-edges; vertical-align: top; margin: 3px 2px; border: 0; }
.badge {
  display: inline-block;
  width: 88px;
  height: 31px;
  margin: 3px 2px;
  padding-top: 4px;
  vertical-align: top;
  font: bold 9px/1.15 Verdana, Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  background: #555;
  border: 2px outset #888;
  text-shadow: 1px 1px 0 #000;
}
.b-11ty     { background: #222; border-color: #666; }
