/* ==========================================================================
   JJJawn's Homepage ~*~ Est. 1998
   One hand-written stylesheet. No build step, no external hosts.
   Every class is prefixed gc- (for GeoCities) so it is easy to grep.
   ========================================================================== */

/* ---- Period palette ---------------------------------------------------- */
:root {
  --gc-magenta: #ff00ff;
  --gc-lime: #00ff00;
  --gc-cyan: #00ffff;
  --gc-yellow: #ffff00;
  --gc-purple: #2e0854;      /* deep purple */
  --gc-navy: #000033;        /* fallback under the tile */
  --gc-silver: #c0c0c0;      /* Win95 button grey */
  --gc-panel: #ffffff;       /* solid reading surface */
  --gc-panel-alt: #ffffcc;   /* pale yellow reading surface */
  --gc-ink: #000000;
  --gc-ink-soft: #333333;
  --gc-link: #0000ee;        /* default 1998 link blue */
  --gc-visited: #551a8b;     /* default 1998 visited purple */
  --gc-active: #ee0000;
}

/* ---- Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

.gc-body {
  margin: 0;
  padding: 16px 0;
  min-height: 100vh;
  background-color: var(--gc-navy);
  background-image: url(/img/bg-tile.svg);
  background-repeat: repeat;
  color: var(--gc-ink);
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.gc-body h1,
.gc-body h2,
.gc-body h3,
.gc-body h4 {
  font-family: "Times New Roman", serif;
  line-height: 1.2;
}

.gc-body img {
  max-width: 100%;
  height: auto;
  border: 0;
}

.gc-body table {
  border-collapse: collapse;
  max-width: 100%;
}

.gc-body th,
.gc-body td {
  border: 2px inset var(--gc-silver);
  padding: 4px 8px;
  text-align: left;
  vertical-align: top;
}

.gc-body th {
  background: var(--gc-purple);
  color: var(--gc-yellow);
}

/* ---- Links: the default-looking blue/purple underline ----------------- */
.gc-body a {
  color: var(--gc-link);
  text-decoration: underline;
}

.gc-body a:visited {
  color: var(--gc-visited);
}

.gc-body a:hover,
.gc-body a:active {
  color: var(--gc-active);
}

.gc-body a:focus-visible,
.gc-btn:focus-visible,
.gc-form input:focus-visible,
.gc-form textarea:focus-visible {
  outline: 3px dashed var(--gc-magenta);
  outline-offset: 2px;
}

/* ---- Layout -------------------------------------------------------------- */
/* Centred column capped near 760px, with a 16px gutter on phones. */
.gc-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

.gc-header {
  margin: 0 0 12px;
  padding: 12px;
  background: var(--gc-purple);
  border: 4px outset var(--gc-magenta);
  text-align: center;
}

.gc-title {
  margin: 0 0 10px;
  color: var(--gc-yellow);
  font-size: 2rem;
  text-shadow: 2px 2px 0 var(--gc-magenta), 4px 4px 0 #000000;
}

.gc-nav {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--gc-panel-alt);
  border: 3px outset var(--gc-silver);
  text-align: center;
  font-weight: bold;
}

.gc-main {
  display: block;
  margin: 0 0 12px;
}

/* Safety net: copy dropped straight into gc-main still gets a solid surface,
   so text never sits directly on the busy tile. */
.gc-main > h2,
.gc-main > h3,
.gc-main > p,
.gc-main > ul,
.gc-main > ol,
.gc-main > table,
.gc-main > form {
  background: var(--gc-panel);
  color: var(--gc-ink);
  padding: 8px 12px;
}

.gc-footer {
  margin: 0;
  padding: 12px;
  background: var(--gc-panel-alt);
  color: var(--gc-ink);
  border: 3px outset var(--gc-silver);
  text-align: center;
}

/* ---- Readable panel ------------------------------------------------------ */
.gc-panel {
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--gc-panel);
  color: var(--gc-ink);
  border: 4px outset var(--gc-cyan);
}

.gc-panel > :first-child {
  margin-top: 0;
}

.gc-panel > :last-child {
  margin-bottom: 0;
}

.gc-panel h2,
.gc-panel h3 {
  color: var(--gc-purple);
}

.gc-center {
  text-align: center;
}

.gc-fineprint {
  font-size: 0.8125rem;
  color: var(--gc-ink-soft);
}

/* ---- Marquee: CSS translateX, never the <marquee> tag ------------------- */
.gc-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: #000000;
  color: var(--gc-lime);
  border: 3px inset var(--gc-silver);
  padding: 4px 0;
  font-weight: bold;
}

.gc-marquee > span {
  display: inline-block;
  padding-left: 100%;
  animation: gc-marquee-scroll 14s linear infinite;
}

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

/* ---- Blink: steps(2) opacity ------------------------------------------- */
.gc-blink {
  animation: gc-blink-flash 1s steps(2, jump-none) infinite;
}

@keyframes gc-blink-flash {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ---- Rainbow rules ------------------------------------------------------ */
.gc-hr,
.gc-rainbow {
  display: block;
  height: 6px;
  margin: 16px 0;
  border: 0;
  background: linear-gradient(
    90deg,
    #ff0000,
    #ff8000,
    #ffff00,
    #00ff00,
    #00ffff,
    #0000ff,
    #ff00ff
  );
}

/* ---- Under construction banner row ------------------------------------- */
.gc-construction {
  margin: 0 0 12px;
  text-align: center;
}

.gc-construction img {
  display: inline-block;
  vertical-align: middle;
}

/* ---- 88x31 badges ------------------------------------------------------- */
.gc-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.gc-badges img {
  width: 88px;
  height: 31px;
  image-rendering: pixelated;
}

/* ---- Visitor counter digit box ----------------------------------------- */
.gc-counter {
  display: inline-block;
  padding: 2px 6px;
  background: #000000;
  color: var(--gc-lime);
  border: 3px inset var(--gc-silver);
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}

/* ---- Guestbook ---------------------------------------------------------- */
.gc-entry {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: var(--gc-panel);
  color: var(--gc-ink);
  border: 3px dashed var(--gc-magenta);
}

.gc-entry > :first-child {
  margin-top: 0;
}

.gc-entry > :last-child {
  margin-bottom: 0;
}

.gc-form {
  margin: 0 0 12px;
  padding: 12px 16px;
  background: var(--gc-silver);
  color: var(--gc-ink);
  border: 3px outset #ffffff;
}

.gc-form label {
  display: block;
  margin: 8px 0 4px;
  font-weight: bold;
}

.gc-form input,
.gc-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 4px 6px;
  background: #ffffff;
  color: var(--gc-ink);
  border: 2px inset var(--gc-silver);
  font: inherit;
}

.gc-form textarea {
  min-height: 6em;
  resize: vertical;
}

/* ---- Bevelled button ---------------------------------------------------- */
.gc-btn {
  display: inline-block;
  margin: 10px 0 0;
  padding: 4px 16px;
  background: var(--gc-silver);
  color: var(--gc-ink);
  border: 3px outset #ffffff;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.gc-btn:active {
  border-style: inset;
}

/* ---- Cool links list ---------------------------------------------------- */
.gc-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gc-link-list li {
  margin: 0 0 6px;
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.gc-link-list li::before {
  content: "\2605\00a0\00a0"; /* star + spaces */
  color: var(--gc-magenta);
}

/* ---- Phones -------------------------------------------------------------- */
@media (max-width: 480px) {
  .gc-title {
    font-size: 1.5rem;
  }

  .gc-panel,
  .gc-form {
    padding: 10px 12px;
  }
}

/* ---- Reduced motion: the joke must not be a trap ----------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .gc-marquee {
    white-space: normal;
    text-align: center;
    padding: 4px 8px;
  }

  .gc-marquee > span {
    padding-left: 0;
    transform: none;
  }

  .gc-blink {
    opacity: 1;
  }
}
