@font-face {
  font-family: "DigitalDisco";
  src: url("fonts/DigitalDisco.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "DigitalDisco Thin";
  src: url("fonts/DigitalDisco-Thin.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "VCR";
  src: url("fonts/VCR_OSD_MONO_1.001.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "GrapeSoda";
  src: url("fonts/GrapeSoda.ttf") format("truetype");
  font-display: swap;
}

:root {
  --black: #020302;
  --ink: #080b09;
  --charcoal: #151916;
  --panel: #1d231f;
  --panel-2: #252d28;
  --line: #51615a;
  --line-dark: #080b09;
  --green-dim: #6e8b52;
  --green: #b9e84b;
  --green-bright: #e1ff68;
  --yellow: #f2ef86;
  --red: #e87960;
  --mono: "VCR", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--black); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--green);
  background:
    linear-gradient(rgba(7, 12, 9, .93), rgba(7, 12, 9, .93)),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(199, 255, 80, .03) 3px 4px),
    #101411;
  font-family: var(--mono);
  font-size: 13px;
  image-rendering: pixelated;
  text-rendering: geometricPrecision;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  content: "";
  opacity: .12;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.8) 0 1px, transparent 1px 4px);
  mix-blend-mode: multiply;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

#pond-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  opacity: .3;
  image-rendering: pixelated;
}

.site-shell {
  width: min(1120px, calc(100% - 24px));
  margin: 18px auto;
  border: 2px solid var(--line-dark);
  background: var(--charcoal);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .72), 0 0 0 1px var(--line);
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 4px 7px;
  color: var(--black);
  background: var(--green);
  border-bottom: 2px solid var(--line-dark);
}

.titlebar h1 {
  margin: 0;
  font: 21px/1 "DigitalDisco", var(--mono);
  letter-spacing: .08em;
}

.brand-mark {
  position: relative;
  width: 19px;
  height: 19px;
  background: var(--black);
  border: 2px solid var(--black);
}

.brand-mark span, .brand-mark b { position: absolute; display: block; background: var(--green-bright); }
.brand-mark span:first-child { left: 2px; top: 3px; width: 4px; height: 4px; }
.brand-mark span:nth-child(2) { right: 2px; top: 3px; width: 4px; height: 4px; }
.brand-mark b { left: 4px; bottom: 3px; width: 9px; height: 4px; }

.titlebar-state {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 0 auto;
  font-size: 11px;
  letter-spacing: .08em;
}

.titlebar-state i, .status-strip i {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green-bright);
  box-shadow: 0 0 7px var(--green);
}

.window-buttons { display: flex; gap: 3px; margin-left: 5px; }
.window-buttons span {
  display: grid;
  width: 21px;
  height: 20px;
  place-items: center;
  color: var(--green);
  background: var(--charcoal);
  border: 1px solid var(--line-dark);
  font: 15px/1 var(--mono);
}

.menu-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 29px;
  padding: 4px 9px;
  color: var(--yellow);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.menu-bar a { text-decoration: none; }
.menu-bar a:hover { color: var(--green-bright); text-shadow: 2px 0 var(--black); }
.menu-readout { margin-left: auto; color: var(--green-dim); font-size: 11px; }

.window { border: 1px solid var(--line); background: rgba(16, 21, 18, .94); }

.hero-window {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-top: 0;
}

.frog-column { min-width: 0; }
.screen-label, .panel-heading, .window-titlebar, .status-row, .status-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.screen-label { margin-bottom: 6px; color: var(--green-dim); font-size: 10px; letter-spacing: .09em; }
.screen-label b, .counter, .window-chip { color: var(--yellow); font-size: 10px; font-weight: 400; }

.frog-screen {
  position: relative;
  min-height: 276px;
  overflow: hidden;
  background: var(--black);
  border: 2px solid var(--line);
  box-shadow: inset 0 0 0 4px #090d0a, inset 0 0 0 5px var(--green-dim);
}

.frog-screen img { display: block; width: 100%; height: 276px; object-fit: cover; image-rendering: pixelated; }
.scanline { position: absolute; left: 0; right: 0; top: 35%; height: 2px; background: var(--green); opacity: .5; box-shadow: 0 0 10px var(--green); animation: sweep 4s steps(18) infinite; }
.screen-corner { position: absolute; padding: 3px; color: var(--yellow); background: var(--black); font-size: 10px; }
.corner-tl { left: 8px; top: 8px; }
.corner-br { right: 8px; bottom: 8px; }

@keyframes sweep { 0%, 100% { transform: translateY(-80px); } 50% { transform: translateY(170px); } }

.frog-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 2px 5px; border-bottom: 1px dotted var(--line); }
.frog-caption b { font: 24px/1 "DigitalDisco", var(--mono); color: var(--green-bright); letter-spacing: .05em; }
.frog-caption span { color: var(--green-dim); font-size: 10px; white-space: nowrap; }
.identity-copy { color: var(--green-dim); font-size: 12px; line-height: 1.5; }
.identity-copy p { margin: 8px 0 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.badge-row span { padding: 4px 5px; color: var(--black); background: var(--green); font-size: 10px; }

.links-column { min-width: 0; padding: 8px 0; }
.panel-heading { border-bottom: 2px solid var(--green-dim); padding-bottom: 10px; }
.eyebrow { display: block; margin-bottom: 4px; color: var(--green-dim); font-size: 10px; letter-spacing: .14em; }
.panel-heading h2 { margin: 0; color: var(--green-bright); font: 31px/.95 "DigitalDisco", var(--mono); letter-spacing: .06em; }
.counter { padding: 5px 7px; border: 1px solid var(--line); background: var(--black); }
.counter span { color: var(--green-bright); }
.panel-intro { max-width: 48ch; margin: 13px 0 17px; color: var(--green-dim); line-height: 1.55; }

.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.site-link {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  min-height: 64px;
  gap: 10px;
  padding: 8px 10px;
  color: var(--green);
  text-decoration: none;
  background: #202721;
  border: 2px solid var(--line);
  border-right-color: #080a08;
  border-bottom-color: #080a08;
  box-shadow: inset 1px 1px 0 rgba(228, 255, 104, .12);
}
.site-link:hover, .site-link:focus-visible { color: var(--black); background: var(--green); border-color: var(--green-bright); outline: 0; transform: translate(2px, 2px); box-shadow: 0 0 0 2px var(--black); }
.link-icon-wrap { display: grid; width: 40px; height: 40px; place-items: center; background: var(--black); border: 1px solid var(--green-dim); }
.link-icon { width: 31px; height: 31px; object-fit: contain; image-rendering: pixelated; }
.link-label { font: 24px/1 "DigitalDisco", var(--mono); letter-spacing: .04em; }
.link-arrow { font-size: 17px; color: var(--yellow); }
.site-link:hover .link-arrow { color: var(--black); }
.link-status { margin: 16px 0 0; padding: 9px 0 0; color: var(--yellow); border-top: 1px dotted var(--line); font-size: 11px; }

.lower-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, .8fr); gap: 12px; padding: 0 12px 12px; background: var(--charcoal); }
.window-titlebar { min-height: 31px; padding: 5px 8px; color: var(--green-bright); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.window-titlebar h2 { margin: 0; font-size: 13px; font-weight: 400; letter-spacing: .06em; }
.pixel-grip { width: 9px; height: 9px; margin-right: 7px; background: var(--green); box-shadow: 3px 0 var(--green), 0 3px var(--green), 3px 3px var(--green); }
.window-titlebar h2 { margin-right: auto; }
.art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 10px; }
.art-card { min-width: 0; background: #111612; border: 1px solid var(--line); }
.art-image-wrap { aspect-ratio: 1; overflow: hidden; background: var(--black); border-bottom: 1px solid var(--line); }
.art-image { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .2s steps(2); }
.art-card:hover .art-image { transform: scale(1.06); }
.art-card-copy { padding: 7px; }
.art-card-copy b { display: block; color: var(--green-bright); font-size: 12px; font-weight: 400; }
.art-card-copy span { display: block; margin-top: 4px; color: var(--green-dim); font-size: 10px; }

.status-body { padding: 11px; }
.status-row { min-height: 30px; border-bottom: 1px dotted var(--line); font-size: 11px; }
.status-row span { color: var(--green-dim); }
.status-row b { color: var(--yellow); font-weight: 400; text-align: right; }
.status-meter { gap: 10px; margin-top: 16px; color: var(--green-dim); font-size: 11px; }
.status-meter i { display: flex; flex: 1; gap: 3px; align-items: end; height: 18px; }
.status-meter i b { flex: 1; height: 9px; background: var(--green); }
.status-meter i b:nth-child(2), .status-meter i b:nth-child(5) { height: 14px; }
.status-meter i b:nth-child(3), .status-meter i b:nth-child(7) { height: 18px; background: var(--green-bright); }
.status-meter i b:nth-child(4) { height: 12px; }
.status-note { margin: 21px 0 0; color: var(--green-dim); font-size: 11px; line-height: 1.55; }

.status-strip { display: flex; justify-content: space-between; gap: 10px; padding: 7px 9px; color: var(--green-dim); background: var(--black); border-top: 1px solid var(--line); font-size: 10px; }
.status-strip span:first-child { color: var(--green); }

@media (max-width: 800px) {
  .site-shell { width: calc(100% - 12px); margin: 7px auto; }
  .hero-window { grid-template-columns: 1fr; gap: 18px; }
  .frog-screen { min-height: 220px; }
  .frog-screen img { height: 220px; }
  .lower-grid { grid-template-columns: 1fr; }
  .menu-readout { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 12px; }
  .titlebar h1 { font-size: 16px; }
  .titlebar-state { display: none; }
  .window-buttons span { width: 18px; }
  .hero-window { padding: 10px; }
  .panel-heading h2 { font-size: 25px; }
  .link-grid, .art-grid { grid-template-columns: 1fr; }
  .art-card { display: grid; grid-template-columns: 84px 1fr; }
  .art-image-wrap { border-right: 1px solid var(--line); border-bottom: 0; }
  .status-strip { flex-wrap: wrap; }
  .status-strip span:nth-child(2) { order: 3; width: 100%; }
}
