/* Fools Paradise - Neocities starter
   Plain HTML/CSS. No frameworks. Upload index.html and style.css together. */

:root {
  --ink: #111;
  --paper: #fff;
  --accent: #b6f2b4;
  --shadow: #777;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 14px;
  background:
    radial-gradient(var(--ink) 0.8px, transparent 0.8px),
    var(--paper);
  background-size: 6px 6px;
}

a {
  color: #0000cc;
  text-decoration: none;
}

a:hover {
  color: var(--ink);
  background: var(--accent);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  font-weight: bold;
}

.desktop {
  position: relative;
  max-width: 1250px;
  min-height: 820px;
  margin: 0 auto;
  padding: 42px 20px 80px;
}

.window {
  position: absolute;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--shadow);
}

.titlebar {
  height: 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 0 6px;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
  font-size: 18px;
}

.titlebar span {
  height: 15px;
  border-block: 2px solid var(--ink);
  background: repeating-linear-gradient(
    to bottom,
    var(--ink) 0 2px,
    transparent 2px 4px
  );
}

.window-body {
  padding: 14px;
}

.hello {
  width: 260px;
  left: 70px;
  top: 58px;
}

.nav-card {
  width: 560px;
  min-height: 390px;
  left: 410px;
  top: 78px;
  box-shadow: 6px 6px 0 var(--paper), 8px 8px 0 var(--ink);
}

.nav-card h1 {
  text-align: center;
  margin: 8px 0 28px;
  font-size: 24px;
  letter-spacing: 1px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 26px 22px;
  text-align: center;
}

.icon-grid a {
  color: var(--ink);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.icon-grid a:hover {
  transform: translateY(-2px);
}

.icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 27px;
  line-height: 1;
  filter: grayscale(1);
}

.pager {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 20px;
}

.button-strip {
  position: absolute;
  left: 465px;
  top: 520px;
  width: 430px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.button-strip span {
  min-width: 70px;
  padding: 2px 5px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
  border: 2px solid var(--ink);
  background:
    linear-gradient(90deg, var(--accent) 0 50%, var(--paper) 50% 100%);
}

.updates {
  width: 300px;
  left: 52px;
  top: 520px;
}

.scroll {
  max-height: 126px;
  overflow: auto;
}

.scroll p {
  margin: 0 0 7px;
}

.source {
  width: 255px;
}

.source-left {
  left: 60px;
  top: 270px;
}

.source-right {
  right: 70px;
  top: 58px;
}

.source .window-body {
  min-height: 170px;
}

.fake-diagram {
  height: 115px;
  position: relative;
  border: 1px solid var(--ink);
  background:
    linear-gradient(25deg, transparent 48%, var(--ink) 49% 51%, transparent 52%),
    linear-gradient(150deg, transparent 48%, var(--ink) 49% 51%, transparent 52%);
}

.fake-diagram i {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.fake-diagram i:nth-child(1) { left: 20px; top: 25px; }
.fake-diagram i:nth-child(2) { left: 80px; top: 48px; }
.fake-diagram i:nth-child(3) { left: 140px; top: 18px; }
.fake-diagram i:nth-child(4) { left: 190px; top: 74px; }
.fake-diagram i:nth-child(5) { left: 55px; top: 86px; }
.fake-diagram i:nth-child(6) { left: 175px; top: 34px; }

.fake-art {
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--ink);
  font-size: 34px;
  line-height: 1.8;
}

.status {
  width: 360px;
  left: 525px;
  top: 625px;
}

.webring {
  width: 280px;
  right: 60px;
  top: 560px;
  text-align: center;
}

.ring-box {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin: 15px auto;
  border: 2px solid var(--ink);
  background: conic-gradient(from 45deg, var(--accent), var(--paper), var(--ink), var(--paper), var(--accent));
  color: var(--paper);
}

.sig,
.muted {
  color: #555;
}

/* Smaller screens: turn the fake desktop into a simple stacked page. */
@media (max-width: 900px) {
  .desktop {
    min-height: auto;
    display: grid;
    gap: 22px;
    padding: 28px 12px;
  }

  .window,
  .button-strip {
    position: static;
    width: 100%;
  }

  .nav-card {
    min-height: auto;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .topbar {
    overflow-x: auto;
  }
}

/* Draggable window behavior */
.window {
  touch-action: none;
}

.titlebar {
  cursor: move;
  user-select: none;
}

.window.dragging {
  opacity: 0.92;
  box-shadow: 7px 7px 0 var(--shadow);
}

@media (max-width: 900px) {
  .titlebar {
    cursor: default;
  }

  .window {
    touch-action: auto;
  }
}

/* Moving ASCII 3D background */
.ascii-bg {
  position: fixed;
  inset: 26px 0 0 0;
  z-index: 0;
  margin: 0;
  padding: 18px;
  pointer-events: none;
  overflow: hidden;
  white-space: pre;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 13px;
  color: var(--ink);
  opacity: 0.16;
  mix-blend-mode: multiply;
}

.topbar,
.desktop {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .ascii-bg {
    display: none;
  }
}
