/* stokbrot.com: vintage cybercore, same look as the Cope app.
   Night-sky navy from the bread-cat logo, bread-crust orange, square pixels. */

@font-face {
  font-family: 'Pixel';
  src: url('fonts/jersey-10.woff2') format('woff2');
  font-display: swap;
  size-adjust: 122%;
}
@font-face {
  font-family: 'Mono';
  src: url('fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0d1a;
  --card: #12152a;
  --raised: #1b1f3a;
  --line: #2c3260;
  --shadow: #04050c;
  --fg: #efe8d8;
  --muted: #8a90b8;
  --accent: #f2a541;
  --good: #8df5a8;
  --pixel: 'Pixel', 'Mono', monospace;
  --mono: 'Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(1.5rem, 6vh, 4rem) 1rem 1.5rem;
  background-color: var(--bg);
  /* sparse starfield, like the sky behind the logo */
  background-image:
    radial-gradient(1px 1px at 23px 41px, #efe8d880 50%, transparent 51%),
    radial-gradient(1px 1px at 131px 97px, #efe8d860 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 197px 173px, #efe8d890 50%, transparent 51%),
    radial-gradient(1px 1px at 71px 211px, #8a90b8a0 50%, transparent 51%),
    radial-gradient(1px 1px at 251px 29px, #efe8d850 50%, transparent 51%);
  background-size: 280px 240px;
  background-attachment: fixed;
  color: var(--fg);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

/* faint CRT scanlines */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, #00000018 0 1px, transparent 1px 4px);
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

p {
  margin: 0;
}

/* --- main window --- */
.window {
  width: 100%;
  max-width: 32rem;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  box-shadow: 6px 6px 0 0 var(--shadow);
}

.titlebar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-bottom: 2px solid var(--line);
  border-radius: 4px 4px 0 0;
  background: var(--raised);
}
.titlebar span {
  width: 10px;
  height: 10px;
  background: var(--line);
}
.titlebar span:first-child {
  background: var(--accent);
}

.content {
  padding: 1.75rem 1.5rem 1.5rem;
}

.logo {
  display: block;
  width: 72px;
  height: 72px;
  border: 2px solid var(--line);
  border-radius: 4px;
  box-shadow: 3px 3px 0 0 var(--shadow);
  image-rendering: pixelated;
}

h1 {
  margin: 1.25rem 0 0.25rem;
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(3rem, 14vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

/* first paragraph is the tagline, the rest is the recipe */
.content > p:first-of-type {
  margin-bottom: 1rem;
  color: var(--accent);
}

.recipe {
  border-left: 2px solid var(--line);
  padding-left: 1rem;
}
.recipe p {
  padding-left: 1.2em;
  text-indent: -1.2em; /* wrapped lines align with the text, not the bullet */
  color: var(--muted);
}

/* --- links --- */
.links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  max-width: 32rem;
  margin-top: 1.5rem;
}

a.card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  box-shadow: 3px 3px 0 0 var(--shadow);
  color: var(--fg);
  font-family: var(--pixel);
  font-size: 1.6rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.08s ease,
    box-shadow 0.08s ease,
    border-color 0.15s ease;
}
a.card:hover,
a.card:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}
a.card:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

/* game server status: a pixel square instead of a dot */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
}
.dot.on {
  border-color: var(--good);
  background: var(--good);
  box-shadow: 0 0 8px var(--good);
}

/* --- footer --- */
footer {
  margin-top: auto;
  padding-top: 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
}
footer p + p {
  margin-top: 0.25rem;
  color: var(--accent);
}

@media (max-width: 360px) {
  .links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  a.card {
    transition: none;
  }
}
