/* Frequency Fields — retro one-pager, savethesounds.info energy */

:root {
  --bg: #e8e4d8;
  --ink: #1a1a1a;
  --accent: #2e7d32;
  --tile: #c9c4b4;
  --bevel-light: #ffffff;
  --bevel-dark: #7a7668;
  --btn-face: #d4d0c8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  /* subtle CRT-ish scanlines */
  background-image: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.03) 0px,
    rgba(0, 0, 0, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.4;
}

header {
  text-align: center;
  padding: 40px 16px 8px;
}

.logo {
  width: 120px;
  height: 120px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  image-rendering: pixelated;
}

h1 {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(18px, 4.5vw, 34px);
  letter-spacing: 2px;
  margin: 24px 0 8px;
  text-shadow: 3px 3px 0 var(--tile);
}

.tagline {
  margin: 0;
  letter-spacing: 3px;
  color: var(--accent);
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

.about {
  text-align: center;
  max-width: 640px;
  margin: 24px auto 32px;
  font-size: 24px;
}

/* ---- Windows-95-style buttons ---- */

.buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}

.btn95 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  color: var(--ink);
  text-decoration: none;
  background: var(--btn-face);
  padding: 14px 18px;
  border: 2px solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
}

.btn95:hover {
  background: #e2ded6;
}

.btn95:active {
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
  box-shadow: none;
  transform: translate(2px, 2px);
}

.led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

.led-green { background: #33cc33; box-shadow: 0 0 6px #33cc33; }
.led-amber { background: #ffaa00; box-shadow: 0 0 6px #ffaa00; }
.led-red   { background: #ff3333; box-shadow: 0 0 6px #ff3333; }

/* ---- Square video grid ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.tile {
  position: relative;
  padding: 0;
  border: 3px solid var(--ink);
  background: var(--tile);
  cursor: pointer;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  font-family: inherit;
}

.tile:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.tile.playing {
  transform: translate(6px, 6px);
  box-shadow: none;
  border-color: var(--accent);
}

.tile .frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tile .play-badge {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Press Start 2P", monospace;
  font-size: 22px;
  color: #fff;
  text-shadow: 2px 2px 0 #000;
  background: rgba(0, 0, 0, 0.15);
}

.tile:hover .play-badge {
  background: rgba(0, 0, 0, 0.35);
}

.tile .label {
  display: block;
  padding: 10px 8px;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  border-top: 3px solid var(--ink);
  background: var(--btn-face);
  min-height: 3.2em;
}

footer {
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 18px;
  letter-spacing: 1px;
  color: #555;
}
