/* ============================================================
   EasyAmp - easyampstereo.com
   A late-90s desktop-audio-player skin, rebuilt for the web.
   Palette + motifs lifted from the EasyAmp app chrome.
   ============================================================ */

@font-face {
  font-family: "Pixelify Sans";
  src: url("../assets/fonts/PixelifySans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DSEG7 Classic";
  src: url("../assets/fonts/DSEG7Classic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "DSEG7 Classic";
  src: url("../assets/fonts/DSEG7Classic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Saira";
  src: url("../assets/fonts/Saira.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* navy field */
  --navy-0: #05070f;
  --navy-1: #0c1a3c;
  --navy-2: #1d4490;
  /* accents */
  --cyan: #2bd0ff;
  --cyan-dim: #1a7fa8;
  /* atomic green */
  --grn-lo: #0e9a34;
  --grn: #2bff66;
  --grn-hi: #a6ffbe;
  --amber: #ffd11a;
  --red: #ff3b2e;
  /* app-faithful accents */
  --gold: #d9b33d;        /* the title-bar flourish bars */
  --bar-blue: #36406e;    /* blue textured title bar */
  --bar-hi: #7d8ec0;      /* its hard top highlight */
  --lcd: #1eff1e;         /* pure-green LCD readout */
  /* gunmetal chrome */
  --metal-hi: #5a626d;
  --metal: #3a3f48;
  --metal-lo: #23262d;
  --metal-edge: #14161b;

  --font-pixel: "Pixelify Sans", "Courier New", monospace;
  --font-lcd: "DSEG7 Classic", "Courier New", monospace;
  --font-body: "Saira", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* never allow sideways scroll on phones */
body { overflow-x: hidden; }
img, canvas, svg { max-width: 100%; }

body {
  font-family: var(--font-body);
  color: #cdd6e4;
  background:
    radial-gradient(120% 90% at 70% 12%, var(--navy-2) 0%, var(--navy-1) 48%, var(--navy-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.5;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
}

/* faint scanline texture over the whole field */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(43,208,255,0.035) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--grn); text-shadow: 0 0 8px rgba(43,255,102,0.5); }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; position: relative; z-index: 1; }

/* ---------- gunmetal window chrome ---------- */
.window {
  border-radius: 8px;
  background: linear-gradient(180deg, var(--metal-hi) 0%, var(--metal) 14%, var(--metal-lo) 100%);
  border: 1px solid var(--metal-edge);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -2px 6px rgba(0,0,0,0.6),
    0 14px 40px rgba(0,0,0,0.55);
  padding: 6px;
  margin: 22px 0;
}

/* the title bar: blue textured, with twin gold flourish bars flanking
   a centered pixel-font title (ported from the app's Cairo GoldBars). */
.titlebar {
  display: flex; align-items: center; gap: 8px;
  height: 26px; padding: 2px 6px;
  background-color: var(--bar-blue);
  background-image: repeating-linear-gradient(0deg,
    rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px,
    rgba(0,0,0,0.16) 2px, rgba(0,0,0,0.16) 3px);
  border-top: 1px solid var(--bar-hi);
  border-bottom: 1px solid #090b14;
  border-left: 1px solid #2a3358;
  border-right: 1px solid #2a3358;
  border-radius: 4px 4px 0 0;
}
/* twin gold bars (1.5px lines, centered ±3px) - GOLD #d9b33d */
.titlebar::before, .titlebar::after {
  content: ""; flex: 1 1 auto; height: 16px; min-width: 14px; align-self: center;
  background-image:
    linear-gradient(var(--gold), var(--gold)),
    linear-gradient(var(--gold), var(--gold));
  background-size: calc(100% - 4px) 2px, calc(100% - 4px) 2px;
  background-repeat: no-repeat;
  background-position: 2px calc(50% - 3px), 2px calc(50% + 3px);
}
.titlebar .title {
  flex: 0 1 auto; white-space: nowrap;
  font-family: var(--font-pixel);
  font-size: 14px; letter-spacing: 3px; font-weight: 700;
  color: #c2ccf0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.9), 0 -1px 0 rgba(255,255,255,0.15);
}
/* window controls sit after the right gold bar */
.titlebar .btns { display: flex; gap: 3px; flex: 0 0 auto; }
.titlebar .btns i {
  width: 13px; height: 12px; display: block;
  background: #c4c4cc;
  border-top: 1px solid #fff; border-left: 1px solid #fff;
  border-right: 1px solid #2c2c32; border-bottom: 1px solid #2c2c32;
}

/* recessed navy interior of a window */
.screen {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(29,68,144,0.55) 0%, var(--navy-1) 55%, var(--navy-0) 100%);
  border: 1px solid var(--metal-edge);
  border-top: none;
  border-radius: 0 0 4px 4px;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.7), inset 0 0 2px var(--cyan-dim);
  padding: 18px;
}

/* ---------- LCD readout panel ---------- */
.lcd {
  display: inline-block;
  background-color: #000;
  background-image: radial-gradient(ellipse 150% 150% at 100% 100%, #17285c 0%, #0a1430 42%, #000 82%);
  border-top: 1px solid #000; border-left: 1px solid #000;
  border-right: 1px solid #34343e; border-bottom: 1px solid #34343e;
  border-radius: 2px;
  box-shadow: inset 0 0 16px rgba(0,0,0,1);
  padding: 6px 12px;
  color: var(--lcd);
  font-family: var(--font-lcd);
  text-shadow: 0 0 12px rgba(30,255,30,0.9), 0 0 3px rgba(30,255,30,1);
  letter-spacing: 1px;
}
.lcd-label {
  font-family: var(--font-pixel);
  font-size: 11px; letter-spacing: 2px;
  color: var(--cyan); text-shadow: 0 0 6px rgba(43,208,255,0.5);
  text-transform: uppercase;
}

/* ---------- chrome buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-pixel);
  font-size: 15px; letter-spacing: 1px;
  color: #e7eef7;
  padding: 11px 20px;
  background: linear-gradient(180deg, #515863 0%, #383d45 45%, #262a31 100%);
  border: 1px solid var(--metal-edge);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), inset 0 -2px 4px rgba(0,0,0,0.5), 0 3px 8px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: transform .08s, box-shadow .12s, color .12s;
}
.btn:hover { color: var(--grn); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 0 16px rgba(43,255,102,0.35), 0 3px 8px rgba(0,0,0,0.4); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 5px rgba(0,0,0,0.6); }
.btn .ico { font-size: 18px; line-height: 1; }
.btn.primary {
  color: #02120a; font-weight: 700;
  background: linear-gradient(180deg, var(--grn-hi) 0%, var(--grn) 45%, var(--grn-lo) 100%);
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 0 18px rgba(43,255,102,0.45), 0 3px 8px rgba(0,0,0,0.4);
}
.btn.primary:hover { color: #02120a; filter: brightness(1.08); }

/* ---------- top nav bar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, var(--metal) 0%, var(--metal-lo) 100%);
  border-bottom: 1px solid var(--metal-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15), 0 4px 14px rgba(0,0,0,0.5);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-pixel); font-size: 18px; letter-spacing: 2px; color: var(--cyan); text-shadow: 0 0 8px rgba(43,208,255,0.6); }
.nav .brand img { width: 34px; height: 34px; }
.nav .links { margin-left: auto; display: flex; gap: 6px; }
.nav .links a {
  font-family: var(--font-pixel); font-size: 14px; letter-spacing: 1px;
  padding: 7px 13px; border-radius: 4px; color: #c6d2e2;
  border: 1px solid transparent;
}
.nav .links a:hover, .nav .links a.active {
  color: var(--grn); border-color: var(--metal-edge);
  background: linear-gradient(180deg, #2a2d33, #1a1c21);
  box-shadow: inset 0 0 8px rgba(43,255,102,0.18);
}

/* ---------- headings / text ---------- */
h1, h2, h3 { font-family: var(--font-pixel); color: #eaf1fb; letter-spacing: 1px; }
h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.05; text-shadow: 0 0 18px rgba(43,208,255,0.35); }
h2 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 14px; color: var(--cyan); text-shadow: 0 0 10px rgba(43,208,255,0.3); }
h3 { font-size: 18px; color: var(--grn); text-shadow: 0 0 8px rgba(43,255,102,0.3); margin-bottom: 6px; }
p { margin-bottom: 12px; }
.muted { color: #8a96ac; }
.center { text-align: center; }

/* ---------- hero ---------- */
.hero { padding-top: 26px; }
.hero-logo {
  width: 156px; height: 156px; display: block; margin: 0 auto 10px;
  image-rendering: auto;
  filter: drop-shadow(0 0 28px rgba(43,208,255,0.45));
}
@media (max-width: 760px) { .hero-logo { width: 120px; height: 120px; } }
.hero .tagline { font-family: var(--font-pixel); color: var(--grn); font-size: 16px; letter-spacing: 2px; text-shadow: 0 0 10px rgba(43,255,102,0.4); margin-bottom: 10px; text-transform: uppercase; }
.hero .lede { font-size: 18px; max-width: 640px; margin: 14px auto 22px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- the live player widget ---------- */
/* minmax(0,1fr) lets the column shrink below the canvas's 300px intrinsic
   width, so the player window never overflows on narrow phones. */
.player .screen { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.player .screen > * { min-width: 0; }
.player-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; min-width: 0; }
.player-time { font-size: 40px; line-height: 1; padding: 8px 16px; }
.player-meta { flex: 1; min-width: 200px; }
.marquee {
  overflow: hidden; white-space: nowrap;
  background-color: #000;
  background-image: radial-gradient(ellipse 150% 150% at 100% 100%, #17285c 0%, #0a1430 42%, #000 82%);
  border-top: 1px solid #000; border-left: 1px solid #000;
  border-right: 1px solid #34343e; border-bottom: 1px solid #34343e;
  border-radius: 2px;
  box-shadow: inset 0 0 16px rgba(0,0,0,1);
  padding: 7px 10px; margin-top: 6px;
}
.marquee span {
  display: inline-block; padding-left: 100%;
  font-family: var(--font-pixel); color: var(--lcd);
  text-shadow: 0 0 8px rgba(30,255,30,0.8); letter-spacing: 1px;
  animation: scroll-left 14s linear infinite;
}
@keyframes scroll-left { to { transform: translateX(-100%); } }

/* spectrum canvas frame */
.viz-frame {
  position: relative;
  background: #02050d;
  border: 1px solid var(--metal-edge);
  border-radius: 5px;
  box-shadow: inset 0 0 28px rgba(0,0,0,0.85), inset 0 0 2px var(--cyan-dim);
  padding: 10px;
}
#spectrum { display: block; width: 100%; min-width: 0; height: 180px; }
.viz-baseline { height: 2px; background: var(--cyan); opacity: 0.5; box-shadow: 0 0 8px var(--cyan); }

.transport { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* light-grey Win9x-style 3D button (double bevel), like the app transport */
.tp-btn {
  width: 46px; height: 38px; display: grid; place-items: center;
  background: #c4c4cc; color: #1e1e24;
  border-top: 1px solid #fff; border-left: 1px solid #fff;
  border-right: 1px solid #2c2c32; border-bottom: 1px solid #2c2c32;
  box-shadow: inset 1px 1px 0 #ededf2, inset -1px -1px 0 #8a8a92;
  border-radius: 0; cursor: pointer; font-size: 15px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}
.tp-btn:hover { background: #d0d0d8; }
.tp-btn:active {
  background: #aeaeb6;
  border-top: 1px solid #2c2c32; border-left: 1px solid #2c2c32;
  border-right: 1px solid #fff; border-bottom: 1px solid #fff;
  box-shadow: inset 1px 1px 0 #8a8a92;
}
.tp-note { font-family: var(--font-body); font-size: 13px; color: #8a96ac; letter-spacing: 0.3px; }

/* ---------- feature / generic cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card .screen { min-height: 100%; }
.card h3 .ico { color: var(--cyan); }

/* download rows */
.dl-warn {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.5px;
  color: var(--amber); text-shadow: 0 0 8px rgba(255,209,26,0.3);
  border: 1px solid rgba(255,209,26,0.35); border-radius: 5px;
  background: rgba(255,209,26,0.06);
  padding: 9px 12px; margin-bottom: 16px;
}
.dl-warn .ico { font-size: 15px; line-height: 1; }
.dl-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px dashed rgba(43,208,255,0.18); }
.dl-row:last-child { border-bottom: none; }
.dl-os { font-family: var(--font-pixel); font-size: 18px; color: #eaf1fb; min-width: 150px; display: flex; align-items: center; gap: 10px; }
.dl-os .ico { font-size: 24px; }
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-note { flex-basis: 100%; color: #8a96ac; font-size: 13px; }

/* screenshot frames */
.shot { margin: 0; }
.shot img { width: 100%; display: block; border-radius: 4px; }
.shot figcaption { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 1px; color: var(--cyan); text-align: center; padding-top: 8px; }

/* dedication / open-source page */
.creed { font-size: 20px; line-height: 1.7; }
.creed strong { color: var(--grn); text-shadow: 0 0 8px rgba(43,255,102,0.3); }
.pill { display: inline-block; font-family: var(--font-pixel); font-size: 13px; letter-spacing: 1px; color: var(--grn); border: 1px solid var(--grn-lo); border-radius: 999px; padding: 4px 14px; box-shadow: 0 0 12px rgba(43,255,102,0.2); margin: 4px; }

/* footer */
footer { margin: 40px 0 30px; }
footer .screen { text-align: center; }
footer .creditline { font-size: 13px; color: #8a96ac; margin-top: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .nav .links a { padding: 7px 9px; font-size: 13px; }
  .nav .brand span { display: none; }
  .player-time { font-size: 30px; }
  .screen { padding: 14px; }
  .creed { font-size: 18px; }
  .dl-os { min-width: 0; flex-basis: 100%; }
  .dl-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* narrow phones: keep the sticky nav from overflowing */
@media (max-width: 480px) {
  .wrap { padding: 0 12px; }
  .nav .wrap { gap: 8px; }
  .nav .links { gap: 3px; min-width: 0; }
  .nav .links a { padding: 6px 7px; font-size: 12px; letter-spacing: 0.5px; }
  .nav .brand img { width: 28px; height: 28px; }
  .hero .lede { font-size: 16px; }
  .player-meta { min-width: 0; }
  .player-time { font-size: 26px; }
  #spectrum { height: 140px; }
  .btn { padding: 11px 16px; font-size: 14px; }
  .cta-row { gap: 10px; }
  .cta-row .btn { flex: 1 1 auto; justify-content: center; }
}

/* drop the GitHub link on the smallest screens so the nav never wraps/clips */
@media (max-width: 380px) {
  .nav .links a[href^="https://github.com"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee span { animation: none; padding-left: 0; }
}
