/* Floor 1.2: the house style of the Blit and Rune sites (their site/index.html), kept to what a
   directory needs. Same fonts, palette, labels, numbered sections and footer; more space, no
   simulations, nothing that moves on its own. */
@font-face { font-family: "Silkscreen"; src: url("/fonts/Silkscreen-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "VT323"; src: url("/fonts/VT323-Regular.ttf") format("truetype"); font-display: swap; }

/* The HUD palette, as on Blit's and Rune's sites. */
:root {
  --bg: #0a0a0a;
  --panel: #0d0d0d;
  --border: #2b2b2b;
  --bright: #f0f0f0;
  --dim: #7d7d7d;
  --off: #262626;
  --text: #c4c4c4;
  --label: "Silkscreen", ui-monospace, Menlo, monospace;
  --term: "VT323", ui-monospace, Menlo, monospace;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--bright);
  font-family: var(--term);
  font-size: 24px;
  line-height: 1.25;
  -webkit-font-smoothing: none;
  font-smooth: never;
  overflow-x: hidden;
}
/* Faint scanlines over everything, as on the app sites. */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.018) 0 1px, transparent 1px 3px);
  z-index: 50;
}
a { color: var(--bright); text-decoration: none; border-bottom: 1px dotted var(--dim); }
a:hover { border-bottom-color: var(--bright); }
a:focus-visible { outline: 1px dashed var(--bright); outline-offset: 3px; }
::selection { background: var(--bright); color: var(--bg); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.label { font-family: var(--label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dim { color: var(--dim); }
.px { image-rendering: pixelated; shape-rendering: crispEdges; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; height: 44px; }
.topbar nav { margin-left: auto; display: flex; gap: 18px; }
.topbar nav a { border: 0; color: var(--dim); }
.topbar nav a:hover { color: var(--bright); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--label); font-size: 13px; letter-spacing: 0.1em; border: 0; }

/* ---------- hero ---------- */
.hero { padding: 104px 0 80px; }
h1 {
  font-family: var(--label); font-weight: normal;
  font-size: clamp(44px, 9vw, 88px); line-height: 0.9; letter-spacing: 0.04em;
  margin: 0 0 24px;
}
.h1-small { font-size: clamp(36px, 7vw, 64px); }
/* Rune's _ after the name, lit and still: the page has nothing that moves on its own. */
.cursor { color: var(--bright); }
.tagline { font-size: clamp(26px, 3.4vw, 32px); margin: 0; max-width: 42ch; color: var(--text); }

/* ---------- sections ---------- */
section.block { padding: 72px 0; scroll-margin-top: 44px; border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 28px; }
.section-head .label { color: var(--dim); }
h2 { font-family: var(--label); font-weight: normal; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: 0.04em; margin: 0; text-transform: uppercase; }

/* ---------- the apps: one card each, the whole card is the link ---------- */
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apps li { display: flex; min-width: 0; }
.app {
  flex: 1;
  display: grid; grid-template-columns: 64px 1fr; gap: 18px; align-items: start;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 20px 20px 18px;
  position: relative;
  color: var(--bright);
}
/* The app sites' pixel dashed border (their marching ants), shown still on hover and focus. */
.app::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
  background:
    linear-gradient(90deg, var(--bright) 50%, transparent 50%) top / 8px 2px repeat-x,
    linear-gradient(90deg, var(--bright) 50%, transparent 50%) bottom / 8px 2px repeat-x,
    linear-gradient(0deg, var(--bright) 50%, transparent 50%) left / 2px 8px repeat-y,
    linear-gradient(0deg, var(--bright) 50%, transparent 50%) right / 2px 8px repeat-y;
}
.app:hover, .app:focus-visible { border-bottom-color: var(--border); outline: none; }
.app:hover::before, .app:focus-visible::before { opacity: 1; }
.app:hover .app-go, .app:focus-visible .app-go { color: var(--bright); }

/* Every icon in the same rounded square, whatever its own file looks like. */
.icon { display: block; width: 64px; height: 64px; border-radius: 14.4px; object-fit: cover; background: #121212; }
.icon-placeholder {
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--border);
  font-family: var(--label); font-size: 24px; color: var(--dim);
}
.app-text { display: flex; flex-direction: column; min-width: 0; }
.app-name { font-family: var(--label); font-size: 16px; letter-spacing: 0.06em; line-height: 1.2; }
.app-meta { color: var(--dim); margin-top: 6px; }
.app-meta .sep-dot { padding: 0 2px; }
.app-desc { color: var(--text); margin-top: 12px; }
.app-go { color: var(--dim); margin-top: 14px; overflow-wrap: anywhere; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 28px 0 48px; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { border: 0; color: var(--dim); }
.footer-links a:hover { color: var(--bright); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .hero { padding: 72px 0 56px; }
  section.block { padding: 48px 0; }
  .apps { grid-template-columns: 1fr; }
}
/* On a phone VT323 stays at 22px, not the 20px the app sites drop to: its small x-height makes
   anything less hard to read at arm's length. */
@media (max-width: 480px) {
  body { font-size: 22px; }
  .hero { padding: 56px 0 44px; }
  .app { grid-template-columns: 56px 1fr; gap: 14px; padding: 16px 16px 14px; }
  .icon { width: 56px; height: 56px; border-radius: 12.6px; }
}
