/* lhstart portal — no build step, no external requests. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #0a0b0d;
  --ink-raised: #14161a;
  --edge: #262a31;
  --text: #e9e6e0;
  --text-dim: #9aa0aa;
  --text-faint: #6b7280;
  --accent: #7f9bb4;

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 5vw, 4.5rem);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* A slow, off-centre glow so the page is not a flat black rectangle. */
.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      120vw 90vh at 12% -10%,
      rgba(127, 155, 180, 0.16),
      transparent 60%
    ),
    radial-gradient(
      90vw 70vh at 95% 8%,
      rgba(200, 184, 154, 0.09),
      transparent 62%
    );
}

.masthead,
main,
footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- masthead ---------- */

.masthead {
  padding-top: clamp(3rem, 9vh, 6.5rem);
  padding-bottom: clamp(2.25rem, 6vh, 4rem);
}

.mark {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.75rem;
}

.mark-glyph {
  color: var(--accent);
}

.masthead h1 {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  background: linear-gradient(178deg, #ffffff 8%, #a8adb6 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ---------- shelf ---------- */

main {
  flex: 1;
}

.shelf {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
}

.card {
  --lift: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--ink-raised);
  transform: translateY(var(--lift));
  transition:
    transform 380ms cubic-bezier(0.2, 0.7, 0.3, 1),
    border-color 380ms ease,
    box-shadow 380ms ease;
}

/* Hairline of the game's own colour along the top edge. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  z-index: 3;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 30%,
    var(--accent) 70%,
    transparent
  );
  opacity: 0.55;
  transition: opacity 380ms ease;
}

.card.is-live:hover,
.card.is-live:focus-within {
  --lift: -6px;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--edge));
  box-shadow:
    0 26px 60px -28px rgba(0, 0, 0, 0.9),
    0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.card.is-live:hover::before,
.card.is-live:focus-within::before {
  opacity: 1;
}

/* --- cover art --- */

.art {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: #000;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.3, 1);
  transform-origin: center 40%;
}

.card.is-live:hover .art,
.card.is-live:focus-within .art {
  transform: scale(1.045);
}

.art-frame {
  position: relative;
  overflow: hidden;
}

/* Fade the art into the card body so the seam does not read as a hard edge.
   This has to carry white text over pale art as well as dark, so it goes
   nearly opaque well before the bottom edge. */
.art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 11, 13, 0) 24%,
    rgba(10, 11, 13, 0.55) 47%,
    rgba(12, 14, 17, 0.86) 68%,
    rgba(18, 20, 24, 0.97) 86%,
    var(--ink-raised) 100%
  );
}

.heading {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
}

.heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.85);
}

.tagline {
  margin: 0.5rem 0 0;
  max-width: 40ch;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e2e5ea;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95);
  text-wrap: pretty;
}

/* --- card body --- */

.body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  padding-top: 0.25rem;
}

.description {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
  text-wrap: pretty;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2rem;
  margin: 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--edge);
}

.meta div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.meta dt {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.meta dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tags li {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

/* The whole card is the click target; this is just the affordance. */
.play {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 0.6rem 1.15rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1),
    filter 260ms ease;
}

.play .arrow {
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card.is-live:hover .play,
.card.is-live:focus-within .play {
  filter: brightness(1.12);
}

.card.is-live:hover .play .arrow {
  transform: translateX(3px);
}

/* Stretched link: keeps one real anchor for keyboard and screen readers
   while making the entire card clickable. */
.play::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
}

.play:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- not yet built --- */

.card.is-soon {
  opacity: 0.62;
}

.card.is-soon .art {
  filter: grayscale(0.7);
}

.soon {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px dashed var(--edge);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}

/* ---------- footer ---------- */

footer {
  padding-block: clamp(3rem, 8vh, 5rem) 2.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  gap: 0.75rem;
}

.sep {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .card.is-live:hover .art,
  .card.is-live:focus-within .art {
    transform: none;
  }
}
