:root {
  --bg: #1e1635;
  --bg-deep: #100b20;
  --panel: rgba(255, 244, 201, 0.9);
  --panel-2: rgba(255, 206, 130, 0.92);
  --ink: #2b1736;
  --accent: #ff6b6b;
  --accent-2: #00d1b2;
  --line: #35224a;
  --shadow: 8px 8px 0 #000;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Mono", monospace;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 107, 0.4), transparent 30%),
    radial-gradient(circle at top right, rgba(0, 209, 178, 0.25), transparent 25%),
    linear-gradient(180deg, #32204d 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.2;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.06) 50%, transparent 100%);
  background-size: 100% 5px;
  mix-blend-mode: soft-light;
  pointer-events: none;
  opacity: 0.35;
}

.window {
  position: relative;
  overflow: hidden;
  border: 3px solid #000;
  background: linear-gradient(180deg, var(--panel) 0%, #fff1c8 100%);
  box-shadow: var(--shadow);
  animation: rise 700ms ease both;
}

.window-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 3px solid #000;
  font-family: "Press Start 2P", cursive;
  font-size: 0.6rem;
  color: #fff7df;
  background: linear-gradient(90deg, #ff6b6b, #ffb347 55%, #00d1b2);
}

.hero {
  margin-bottom: 1.5rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 1.5rem;
  padding: 1.75rem;
}

.eyebrow,
h1,
h2,
h3,
.button,
.stat-number,
.year {
  font-family: "Press Start 2P", cursive;
}

.eyebrow {
  font-size: 0.7rem;
  color: var(--accent);
}

h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.25;
}

.accent {
  display: inline-block;
  color: var(--accent-2);
  text-shadow: 3px 3px 0 #000;
}

.lede,
p,
li,
input,
button {
  font-size: 1rem;
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.2rem;
  border: 3px solid #000;
  color: #000;
  text-decoration: none;
  background: #fff36c;
  box-shadow: 4px 4px 0 #000;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000;
}

.button-alt {
  background: #8cf7eb;
}

.profile-card {
  align-self: start;
  padding: 1rem;
  border: 3px dashed var(--line);
  background: linear-gradient(180deg, rgba(255, 206, 130, 0.55), rgba(255, 255, 255, 0.75));
}

.avatar {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border: 3px solid #000;
  font-family: "Press Start 2P", cursive;
  font-size: 2rem;
  background: linear-gradient(135deg, #ff8a8a, #ffd36f);
}

.profile-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.ticker {
  overflow: hidden;
  border-top: 3px solid #000;
  background: #111;
  color: #9bffe2;
  font-family: "Press Start 2P", cursive;
  font-size: 0.7rem;
  white-space: nowrap;
}

.ticker div {
  display: inline-block;
  padding: 0.9rem 0;
  animation: ticker 18s linear infinite;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.grid > .window {
  padding-bottom: 1.5rem;
}

.grid h2,
.grid h3,
.grid p,
.grid .stats,
.grid .playlist,
.grid .timeline,
.grid .guestbook-form,
.grid .guestbook-list {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.wide {
  grid-column: 1 / -1;
}

h2 {
  margin: 1.2rem 0 1rem;
  font-size: 1rem;
}

h3 {
  font-size: 0.8rem;
}

.stats {
  display: grid;
  gap: 0.8rem;
}

.stats article,
.timeline article,
.guestbook-list article {
  padding: 0.9rem;
  border: 3px solid #000;
  background: rgba(255, 255, 255, 0.65);
}

.stat-number {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-size: 1rem;
}

.playlist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.checklist {
  padding-left: 1.1rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.year {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent-2);
  font-size: 0.7rem;
}

.guestbook-form {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr auto;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 3px solid #000;
  border-radius: 0;
  color: #000;
  background: #fff;
}

input:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 2px;
}

.guestbook-list {
  display: grid;
  gap: 0.8rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 860px) {
  .hero-layout,
  .grid,
  .playlist,
  .timeline,
  .guestbook-form {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 1rem;
  }

  .window-bar {
    font-size: 0.48rem;
  }

  .hero-layout {
    padding: 1rem;
  }

  .ticker {
    font-size: 0.55rem;
  }
}
