/* bzd.se portal — "the wildcard resolves".
   Palette: cool Nordic white + spruce ink + Falu red accent.
   Display: geometric sans (Futura/Avenir stack, no font downloads).
   DNS labels: monospace — the subject's own vernacular. */

:root {
  --bg: #f4f7f6;
  --ink: #1c2422;
  --muted: #5e6b67;
  --card: #fdfefe;
  --border: #dbe3e0;
  --addr-bg: #eceff1;
  --accent: #8a2d25; /* Falu red */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121815;
    --ink: #e8ece9;
    --muted: #93a09b;
    --card: #1b211e;
    --border: #2a332f;
    --addr-bg: #161c19;
    --accent: #c4685c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header — the wildcard is the identity */
.site-header {
  max-width: 62rem;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 0.5rem;
}
.wordmark {
  margin: 0;
  font-family: Futura, "Avenir Next", Avenir, "Century Gothic", system-ui, sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.wild {
  color: var(--accent);
  font-weight: 700;
  /* optically seat the asterisk on the baseline */
  display: inline-block;
  transform: translateY(0.08em);
  margin-right: -0.08em; /* close the glyph's wide right bearing */
}
.tagline {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 34rem;
}

/* Grid — strict two columns, air between */
.app-grid {
  list-style: none;
  max-width: 62rem;
  margin: 3rem auto 4rem;
  padding: 0 1.5rem;
  display: grid;
  gap: 2rem;
  /* minmax(0,1fr): don't let the 600px intrinsic image width blow the track */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

/* Card — a tiny browser window: address bar, viewport, caption */
.app-card a {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}
.app-card a:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 24px rgba(28, 36, 34, 0.10);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .app-card a { transition: none; }
  .app-card a:hover { transform: none; }
}

/* Address bar — the wildcard, resolved */
.addr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.9rem;
  background: var(--addr-bg);
  border-bottom: 1px solid var(--border);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
.addr-sub { color: var(--accent); font-weight: 600; }
.addr-go { opacity: 0; transition: opacity 120ms ease; color: var(--accent); }
.app-card a:hover .addr-go,
.app-card a:focus-visible .addr-go { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .addr-go { transition: none; opacity: 1; }
}

.app-card .shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
}

.card-text { display: block; padding: 0.9rem 1rem 1.1rem; }
.app-card h2 {
  margin: 0;
  font-family: Futura, "Avenir Next", Avenir, "Century Gothic", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.app-card h2::after {
  /* quiet accent rule that answers the header's asterisk */
  content: "";
  display: block;
  width: 1.6rem;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--accent);
  opacity: 0.55;
}
.app-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.site-footer a { color: var(--accent); }
