/* Judson Software — shared styles (light theme) */
:root {
  --bg: #fbfaf6;
  --grid: rgba(60, 80, 140, .07);
  --panel: #ffffff;
  --panel-2: #f1f0ea;
  --line: #1c1d24;          /* crisp ink outlines */
  --soft-line: #e2e0d8;
  --text: #1c1d24;
  --muted: #5f6270;
  --accent: #4b3fd1;        /* Commodore blue, brightened */
  --accent-soft: #e9e6ff;
  --warm: #e2701f;
  --s1: #e8574a; --s2: #f2994a; --s3: #f2c94c; --s4: #3fb67a; --s5: #3d8fd1;
  --radius: 14px;
  --shadow: 5px 5px 0 var(--line);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .9em; background: var(--accent-soft); color: var(--accent); padding: .1em .4em; border-radius: 5px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header { background: rgba(251, 250, 246, .9); backdrop-filter: blur(6px); border-bottom: 2px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 14px; color: var(--text); }
.logo:hover { text-decoration: none; }
.stripes { display: flex; flex-direction: column; gap: 3px; transform: skewX(-18deg); }
.stripes span { display: block; width: 30px; height: 4px; border-radius: 1px; }
.stripes span:nth-child(1) { background: var(--s1); }
.stripes span:nth-child(2) { background: var(--s2); }
.stripes span:nth-child(3) { background: var(--s3); }
.stripes span:nth-child(4) { background: var(--s4); }
.stripes span:nth-child(5) { background: var(--s5); }
.logo-text { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; }
.logo-text small { display: block; font-family: var(--mono); font-weight: 500; letter-spacing: .06em; color: var(--muted); font-size: 11px; }
.nav a { color: var(--text); margin-left: 8px; font: 600 14px var(--sans); padding: 6px 12px; border-radius: 8px; }
.nav a:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 44px; }
.hero .ready {
  display: inline-block; font-family: var(--mono); font-size: 13px; margin: 0 0 22px;
  color: #a5a0f0; background: #352879; border: 4px solid #6c5eb5; border-radius: 8px; padding: 4px 12px;
}
.cursor { display: inline-block; width: .6em; height: 1.05em; background: #a5a0f0; vertical-align: -2px; margin-left: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.03em; max-width: 16ch; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--s3) 62%, var(--s3) 90%, transparent 90%); padding: 0 .08em; }
.hero p { color: var(--muted); font-size: 18px; max-width: 58ch; margin: 0; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 30px; }
.filters button {
  font: 600 14px var(--sans); color: var(--text); background: var(--panel);
  border: 2px solid var(--line); border-radius: 999px; padding: 6px 16px; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.filters button:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--line); }
.filters button.on { color: #fff; background: var(--accent); border-color: var(--line); box-shadow: 2px 2px 0 var(--line); }

/* ---------- catalog grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding-bottom: 80px; }
.card {
  display: flex; flex-direction: column; background: var(--panel); border: 2px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--accent); text-decoration: none; }
.shot { aspect-ratio: 4 / 3; background: #352879; position: relative; overflow: hidden; border-bottom: 2px solid var(--line); }
.shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; position: relative; }
/* Placeholder: a little C64 screen until a real screenshot is added */
.placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 15px;
  color: #a5a0f0; background: #352879; border: 14px solid #6c5eb5;
}
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag { font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); color: var(--text); border: 1.5px solid var(--soft-line); }
.tag.status-released { background: #dff5e9; color: #1d7a4c; border-color: #b6e6cb; }
.tag.status-beta { background: #ffeedd; color: #b5530f; border-color: #fbd3ad; }
.tag.status-in-development { background: var(--accent-soft); color: var(--accent); border-color: #d2ccff; }

/* ---------- detail page ---------- */
.back { display: inline-block; margin: 32px 0 24px; color: var(--muted); font: 600 14px var(--sans); }
.detail { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; padding-bottom: 80px; align-items: start; }
.detail .shot { border-radius: var(--radius); border: 2px solid var(--line); box-shadow: var(--shadow); }
.detail h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin: 0 0 8px; letter-spacing: -.025em; }
.detail .tagline { color: var(--warm); font-size: 18px; font-weight: 600; margin: 0 0 18px; }
.detail .desc p { margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 22px 0; font-size: 15px; }
.facts dt { color: var(--muted); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.facts dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--sans); padding: 10px 20px;
  border-radius: 10px; border: 2px solid var(--line); color: var(--text); background: var(--panel);
  box-shadow: 3px 3px 0 var(--line); transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.disabled { opacity: .45; pointer-events: none; box-shadow: none; border-style: dashed; }
.box { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 22px; font-size: 15px; }
.box h4 { margin: 0 0 10px; font: 700 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.box ul { margin: 0; padding-left: 18px; }
.box p { margin: 0 0 8px; }
.box p:last-child { margin-bottom: 0; }

/* ---------- about + footer ---------- */
.about { border-top: 2px dashed var(--soft-line); padding: 56px 0; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.about h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.about p { margin: 0 0 12px; color: var(--muted); }
.site-footer { background: var(--text); color: #c9cad3; padding: 24px 0; font-size: 13px; font-family: var(--mono); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: center; }
.site-footer .stripes { flex-direction: row; gap: 4px; transform: skewX(-18deg); }
.site-footer .stripes span { width: 14px; height: 6px; }

@media (max-width: 800px) {
  .detail, .about { grid-template-columns: 1fr; gap: 28px; }
  .nav a { margin-left: 2px; padding: 6px 8px; }
  .hero { padding-top: 48px; }
}
