/*
 * The sideqwest.games house style (written down in approach/docs/visual-direction.md):
 * one void, glass panels with a hairline edge, tracked uppercase sans for headings,
 * monospace for anything that reads as data. No font files.
 */
:root {
  --void: #05080d;
  --water: #0b1522;
  --ink: #e8f1f5;
  --ink-dim: #8fb0bf;
  --ink-faint: #56707c;
  --glass: rgba(8, 16, 26, 0.74);
  --edge: rgba(143, 176, 191, 0.22);
  --ring: #1f3540;
  --accent: #56d6ff;
  --warning: #ffb547;
  --ui: 'Segoe UI Variable Text', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}

/* The table behind everything: scope rings around a point above the fold, dissolving into the void. */
.table {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 120% 90% at 50% 0%, transparent 40%, var(--void) 100%),
    repeating-radial-gradient(circle at 50% 18%, transparent 0 119px, var(--ring) 119px 120px),
    radial-gradient(circle at 50% 18%, var(--water) 0, var(--void) 70%);
}

main {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) clamp(18px, 4vw, 40px) 40px;
}

.masthead {
  text-align: center;
  margin-bottom: clamp(36px, 7vh, 72px);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--ink-faint);
}

.wordmark {
  margin: 18px 0 0;
  /* Tracking adds a trailing gap; the indent puts the word back on the centre line. */
  padding-left: 0.3em;
  font-size: clamp(26px, 6.4vw, 60px);
  font-weight: 700;
  letter-spacing: 0.3em;
  line-height: 1.1;
}

.wordmark .q {
  color: var(--accent);
  text-shadow: 0 0 28px rgba(86, 214, 255, 0.55);
}

.wordmark .tld {
  font-family: var(--mono);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--warning);
}

.rule {
  width: 56px;
  height: 1px;
  margin: 26px auto 22px;
  background: var(--edge);
}

.pitch {
  margin: 0;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-dim);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.facts span + span::before {
  content: '·';
  margin: 0 0.9em;
}

.shelfhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--edge);
}

.shelfhead h2 {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--ink);
}

.shelfhead span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

.dailies {
  margin-bottom: clamp(36px, 7vh, 64px);
}

.strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.tile {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 1px solid var(--edge);
  border-top: 2px solid var(--game);
  border-radius: 12px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: inherit;
  text-decoration: none;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

a.tile:hover,
a.tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--game);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.5),
    0 0 36px -12px var(--game);
  outline: none;
}

.mark {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--game);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mark .soft {
  opacity: 0.4;
}

.mark .ghost {
  stroke-dasharray: 3 5;
}

.tile h3 {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tile .meta {
  margin-top: 6px;
  font-size: 11px;
}

.tile .blurb {
  flex: 1;
  margin: 10px 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-dim);
}

.tile .go {
  padding: 8px 10px;
  font-size: 11px;
  color: var(--game);
}

a.tile:hover .go,
a.tile:focus-visible .go {
  background: var(--game);
  border-color: var(--game);
  color: var(--void);
}

.tile.soon .go {
  color: var(--ink-faint);
  border-style: dashed;
}

@media (max-width: 980px) {
  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip .tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .tile .blurb {
    display: none;
  }

  .tile .meta {
    flex: 1;
    margin-bottom: 12px;
  }
}

.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

a.card:hover,
a.card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--game);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--game),
    0 0 44px -12px var(--game);
  outline: none;
}

.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--water);
  border-bottom: 1px solid var(--edge);
  overflow: hidden;
}

.shot img,
.shot svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

a.card:hover .shot img {
  transform: scale(1.04);
}

.shot::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 8, 13, 0.7), transparent 45%);
  pointer-events: none;
}

.no {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 1;
  padding: 3px 8px;
  border: 1px solid var(--edge);
  border-radius: 6px;
  background: rgba(5, 8, 13, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
  color: var(--game);
}

.body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 18px;
}

.card h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.meta {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.meta b {
  font-weight: 500;
  color: var(--game);
}

.card p.blurb {
  flex: 1;
  margin: 14px 0 20px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-dim);
}

.go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

.go .arrow {
  font-family: var(--mono);
  letter-spacing: 0;
}

a.card .go {
  color: var(--game);
}

a.card:hover .go,
a.card:focus-visible .go {
  background: var(--game);
  border-color: var(--game);
  color: var(--void);
}

.card.soon .go {
  color: var(--ink-faint);
  border-style: dashed;
}

.card.soon .shot {
  opacity: 0.85;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: clamp(40px, 8vh, 80px);
  padding-top: 18px;
  border-top: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-dim);
}

.dim {
  color: var(--ink-faint);
}

.lost {
  display: grid;
  place-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  text-align: center;
  padding: 24px;
}

.lost a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .tile,
  .shot img,
  .go {
    transition: none;
  }
}
