/* ~*~ Jayden's 1999 homepage ~*~
   WordArt techniques from localghost.dev/blog/building-a-website-like-it-s-1999-in-2022 */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #000;
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.45;
  /* tiled starfield, drawn in CSS so there's no image to load */
  background-color: #000033;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 150px 60px, #ffff99, transparent),
    radial-gradient(1px 1px at 60px 170px, #ccf, transparent),
    radial-gradient(1.5px 1.5px at 180px 190px, #fff, transparent);
  background-size: 200px 200px;
}

.skip {
  position: absolute; left: -9999px;
}
.skip:focus { left: 8px; top: 8px; background: #ff0; padding: 4px 8px; z-index: 10; }

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

/* ---------- masthead + WordArt ---------- */

.masthead {
  text-align: center;
  padding: 24px 8px 8px;
  overflow: hidden;
}

.welcome {
  margin: 0;
  color: #0ff;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

.masthead h1 {
  margin: 0.2em 0 0.6em;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
}

/* Rainbow WordArt with 3D shadow */
.rainbow-wrapper {
  font-family: "Arial Black", sans-serif;
  font-weight: bold;
  display: inline-block;
  position: relative;
  perspective: 150px;
  perspective-origin: bottom center;
}

.rainbow-wrapper::before {
  position: absolute;
  content: attr(data-content);
  color: #fff;
  opacity: 0.25;
  bottom: -0.15em;
  left: 0;
  white-space: nowrap;
  transform: rotateX(60deg) skewX(60deg) scaleY(2.8) scaleX(0.8);
  transform-origin: bottom right;
}

.rainbow {
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(
    90deg,
    #9c00ff, #ff0000, #ff8800, #ffff00, #02be02, #0000ff, #4f00ff, #9c00ff
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Arial Black", sans-serif;
  font-weight: bold;
  transform: scaleY(1.5) scaleX(0.8);
}

/* Purple WordArt */
.tagline { margin: 0.3em 0 1em; font-size: clamp(1.6rem, 5vw, 2.6rem); }

.purple-wordart-wrapper {
  display: inline-block;
  filter: drop-shadow(2px 2px 0px rgba(130, 140, 251, 0.8));
}

.purple-wordart {
  display: inline-block;
  background: linear-gradient(183deg, #6000ca 10%, #ca00cd 70%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Impact", "Haettenschweiler", sans-serif;
  transform: skewY(-8deg) scaleY(1.3) scaleX(0.8);
  padding: 0 0.2em;
}

/* Marquee: text effects belong in headers only, never body copy */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border: 3px ridge #c0c0c0;
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  padding: 4px 0;
}
.marquee span { display: inline-block; padding-left: 100%; }

@media (prefers-reduced-motion: no-preference) {
  .marquee span { animation: marquee 22s linear infinite; }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- table-ish two-column layout ---------- */

.layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  margin-top: 16px;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 16px;
  background: #c0c0c0;
  border: 4px outset #e0e0e0;
  padding: 10px;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.9rem;
}

.sidebar-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  text-align: center;
  color: #000080;
}

.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 4px 0; }

hr {
  border: 0;
  height: 4px;
  margin: 12px 0;
  background: linear-gradient(
    90deg,
    #9c00ff, #ff0000, #ff8800, #ffff00, #02be02, #0000ff, #4f00ff, #9c00ff
  );
}

a { color: #0000ee; }
a:visited { color: #551a8b; }
a:hover { color: #ff0000; background: #ffff00; }
a:focus-visible { outline: 3px dashed #ff00ff; outline-offset: 2px; }

.tiny { font-size: 0.78rem; }
.center { text-align: center; }

/* CSS-drawn "under construction" sign (static unless motion is OK) */
.construction {
  margin: 8px auto;
  width: 150px;
  padding: 10px 4px;
  text-align: center;
  border: 2px solid #000;
  background: repeating-linear-gradient(45deg, #ffcc00 0 12px, #000 12px 24px);
  background-size: 34px 34px;
}
.construction span {
  display: inline-block;
  background: #ffcc00;
  border: 2px solid #000;
  padding: 2px 6px;
  font-family: "Arial Black", sans-serif;
  font-size: 0.72rem;
  line-height: 1.2;
}
@media (prefers-reduced-motion: no-preference) {
  .construction { animation: stripes 1s linear infinite; }
}
@keyframes stripes { to { background-position: 34px 0; } }

.cursor-toggle { display: block; text-align: center; cursor: pointer; }

/* ---------- content boxes ---------- */

main { min-width: 0; }

.box {
  background: #fffff0;
  border: 4px ridge #9c00ff;
  padding: 8px 20px 16px;
  margin-bottom: 20px;
  scroll-margin-top: 16px;
}

.box h2 {
  margin: 0.4em 0 0.6em;
  font-size: 2.2rem;
  text-align: center;
}

/* smaller WordArt for section headings */
.section-heading {
  display: inline-block;
  background: linear-gradient(183deg, #6000ca 10%, #ca00cd 70%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Impact", "Haettenschweiler", sans-serif;
  font-weight: normal;
  letter-spacing: 0.02em;
  transform: skewY(-4deg) scaleY(1.2);
  filter: drop-shadow(2px 2px 0px rgba(130, 140, 251, 0.8));
}

.job { margin-bottom: 1.2em; }
.job h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #000080;
  font-family: Verdana, Geneva, sans-serif;
}
.job .org { color: #800080; font-weight: normal; }
.job .meta {
  margin: 2px 0 4px;
  font-style: italic;
  color: #444;
  font-size: 0.95rem;
}
.job ul { margin: 0.3em 0; padding-left: 1.4em; }
.job li { margin: 0.2em 0; list-style-type: square; }

.new {
  font-style: normal;
  font-family: "Arial Black", sans-serif;
  font-size: 0.7rem;
  color: #fff;
  background: #ff0000;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: 2px;
}
@media (prefers-reduced-motion: no-preference) {
  .new { animation: blink 1.2s steps(2, start) infinite; }
}
@keyframes blink { to { visibility: hidden; } }

.skills {
  width: 100%;
  border-collapse: separate;
  border: 3px outset #c0c0c0;
  background: #e8e8ff;
  font-size: 0.95rem;
  margin: 12px 0 8px;
}
.skills caption {
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  color: #800080;
  padding-bottom: 4px;
}
.skills th, .skills td { border: 2px inset #c0c0c0; padding: 4px 8px; text-align: left; vertical-align: top; }
.skills th { background: #000080; color: #fff; white-space: nowrap; font-family: Verdana, sans-serif; font-size: 0.85rem; }

.contact-links { font-size: 1.1rem; line-height: 1.8; }

.footer {
  text-align: center;
  color: #ccc;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.85rem;
  padding-bottom: 24px;
}
.footer a { color: #0ff; }
.footer a:visited { color: #f0f; }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar .construction,
  .sidebar .construction ~ * { display: none; }
  .box { padding: 6px 12px 12px; }
}
