
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: #111;
  font-family: "Comic Sans MS", "Trebuchet MS", Arial, sans-serif;
  background: #e7eef7 url("images/background-tile.jpg") repeat;
  background-attachment: fixed;
}

a {
  color: #0000ee;
  text-decoration: underline;
  font-weight: bold;
}

a:visited { color: #551a8b; }

.page-shell {
  width: min(1050px, calc(100% - 16px));
  margin: 6px auto 24px;
}

/* Header floats directly on the tiled wallpaper */
.hero {
  text-align: center;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Large fighters, pulled inward so their characters sit against the logo. */
.header-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  min-height: 175px;
  margin: 0 auto;
}

.logo-wrap {
  position: relative;
  width: min(540px, 58vw);
  flex: 0 1 540px;
  z-index: 2;
}

.main-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(.9);
  transition: opacity .18s ease-out, transform .18s ease-out;
}

.main-logo.revealed {
  opacity: 1;
  transform: scale(1);
}

.fighter {
  display: block;
  width: 265px;
  height: auto;
  image-rendering: pixelated;
  flex: 0 0 265px;
  z-index: 1;
}

/* The source GIFs have lots of horizontal canvas; these negative margins
   bring the actual fighters visually right up against the logo. */
.fighter-left { margin-right: -55px; }
.fighter-right { margin-left: -55px; }



.marquee {
  overflow: hidden;
  color: #111;
  margin: 0 0 8px;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  padding: 3px 0;
  min-width: max-content;
  font-family: "Courier New", monospace;
  font-weight: bold;
  animation: marquee 17s linear infinite;
  text-shadow: 1px 1px 0 rgba(255,255,255,.8);
}

@keyframes marquee {
  from { transform: translateX(100vw); }
  to { transform: translateX(-100%); }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px 20px;
  margin: 4px 0 28px;
  font-family: Arial, sans-serif;
}

.content-section {
  max-width: 930px;
  margin: 0 auto 40px;
  padding: 0 12px;
  background: transparent;
}

.content-section h1 {
  color: #7a007a;
  font-family: "Times New Roman", serif;
  text-align: center;
  text-decoration: underline;
  font-size: 2.1rem;
  margin: 0 0 18px;
  text-shadow: 1px 1px 0 white;
}

.content-section h2 {
  color: #000080;
  text-decoration: underline;
  margin: 25px 0 4px;
}

.content-section p,
.content-section li {
  text-shadow: 1px 1px 0 rgba(255,255,255,.78);
  line-height: 1.45;
}

.about-home {
  text-align: left;
}

.about-home > p:first-of-type {
  font-size: 1.08rem;
  text-align: center;
}

.home-links {
  text-align: center;
  margin-top: 28px;
}

.project-list article {
  margin-bottom: 30px;
}

.contact { text-align: center; }

.coming-soon {
  text-align: center;
  font-family: "Courier New", monospace;
  font-weight: bold;
  margin-top: 35px;
}

footer {
  text-align: center;
  margin: 45px 0 20px;
  font-family: "Courier New", monospace;
  text-shadow: 1px 1px 0 white;
}

.construction {
  color: #aa0000;
  font-weight: bold;
}

@media (max-width: 760px) {
  .page-shell { width: calc(100% - 8px); }

  .header-stage {
    min-height: 110px;
  }

  .logo-wrap {
    width: min(330px, 60vw);
    flex-basis: 330px;
  }

  .fighter {
    width: 150px;
    flex-basis: 150px;
  }

  .fighter-left { margin-right: -32px; }
  .fighter-right { margin-left: -32px; }

  .nav {
    gap: 7px 13px;
    margin-bottom: 22px;
    font-size: .9rem;
  }

  .content-section h1 {
    font-size: 1.75rem;
  }
}

@media (max-width: 430px) {
  .logo-wrap {
    width: 58vw;
  }

  .fighter {
    width: 112px;
    flex-basis: 112px;
  }

  .fighter-left { margin-right: -22px; }
  .fighter-right { margin-left: -22px; }

  .header-stage {
    min-height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .main-logo {
    opacity: 1;
    transform: none;
  }
}


/* RESUME PAGE — animated business guy on the right */
.resume-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 24px;
  align-items: start;
}

.resume-copy {
  min-width: 0;
}

.resume-gif-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 22px;
}

.resume-businessman {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

@media (max-width: 760px) {
  .resume-page {
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 12px;
  }

  .resume-businessman {
    width: 120px;
  }

  .resume-gif-wrap {
    padding-top: 10px;
  }
}

@media (max-width: 480px) {
  .resume-page {
    display: block;
  }

  .resume-gif-wrap {
    justify-content: center;
    padding-top: 6px;
  }

  .resume-businessman {
    width: 120px;
  }
}




/* V9 — simpler fireballs flanking the logo */
.logo-wrap {
  position: relative;
  overflow: visible;
}

.logo-fireball {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 78px;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
  z-index: 3;
}

.fireball-left {
  left: -48px;
}

.fireball-right {
  right: -48px;
}

@media (max-width: 760px) {
  .logo-fireball {
    width: 56px;
  }

  .fireball-left {
    left: -30px;
  }

  .fireball-right {
    right: -30px;
  }
}

@media (max-width: 430px) {
  .logo-fireball {
    width: 42px;
  }

  .fireball-left {
    left: -18px;
  }

  .fireball-right {
    right: -18px;
  }
}


/* V10 — magenta Motter Tektura style logo */
.main-logo {
  width: min(100%, 560px);
}

@media (max-width: 760px) {
  .main-logo {
    width: min(100%, 360px);
  }
}


/* V11 — use actual Motter Tektura font instead of logo image */
@font-face {
  font-family: "MotterTektura";
  src:
    url("fonts/MotterTektura-Regular.woff2") format("woff2"),
    url("fonts/MotterTektura-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.logo-wrap {
  position: relative;
  width: min(620px, 66vw);
  flex: 0 1 620px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.main-logo {
  opacity: 0;
  transform: scale(.94);
  transition: opacity .18s ease-out, transform .18s ease-out;
}

.main-logo.revealed {
  opacity: 1;
  transform: scale(1);
}

.text-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: .86;
  color: #ff1aa7;
  text-shadow:
    1px 1px 0 rgba(255,255,255,.28),
    0 0 1px rgba(255,255,255,.2);
  background: transparent !important;
}

.text-logo-top,
.text-logo-bottom {
  font-family: "MotterTektura", "Trebuchet MS", Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 0;
  white-space: nowrap;
}

.text-logo-top {
  font-size: clamp(2.65rem, 6.1vw, 5rem);
}

.text-logo-bottom {
  font-size: clamp(2.1rem, 4.3vw, 3.6rem);
  margin-top: -.08em;
}

/* Remove fireballs from the logo area */
.logo-wrap .logo-fireball {
  display: none !important;
}

/* Smaller fireballs around About Me heading */
.about-heading {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.about-heading span {
  display: inline-block;
}

.about-fireball {
  width: 28px;
  height: auto;
  image-rendering: pixelated;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .logo-wrap {
    width: min(430px, 72vw);
    flex-basis: 430px;
  }

  .text-logo-top {
    font-size: clamp(2rem, 8vw, 3.4rem);
  }

  .text-logo-bottom {
    font-size: clamp(1.55rem, 6vw, 2.6rem);
  }

  .about-fireball {
    width: 22px;
  }
}

@media (max-width: 430px) {
  .logo-wrap {
    width: 70vw;
  }

  .about-fireball {
    width: 18px;
  }
}
