/* The landing page. The palette and the type are night flight's. */

:root {
  --ink: #f6e6d6;
  --ink-dim: #b79c92;
  --orange: #ff8a3d;
  --amber: #ffb14e;
  --purple: #b066ff;
  --line: #4a2f3d;
  --brown: #2a1720;
  --void: #0d0710;
  --font: "Rajdhani", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  background:
    radial-gradient(60rem 34rem at 18% 12%, rgba(176, 102, 255, 0.16), transparent 70%),
    radial-gradient(48rem 30rem at 85% 95%, rgba(255, 138, 61, 0.1), transparent 70%),
    var(--void);
}

a {
  color: var(--amber);
}

a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 56px) clamp(18px, 4vw, 40px);
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: stretch;
  /* The row is as tall as its columns, not the window. */
  align-content: start;
}

/* ---- the name, the door, the server ------------------------------------ */

.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hole {
  width: min(240px, 60vw);
  height: auto;
  margin: -12px 0 4px -18px;
  /* The picture is a square; it fades into the page instead of ending. */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 72%);
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.tagline {
  margin: 8px 0 0;
  color: var(--ink-dim);
  font-size: 1.15rem;
}

.enter {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 26px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--brown);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 28px rgba(255, 138, 61, 0.35);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.enter:hover {
  background: var(--amber);
  box-shadow: 0 0 36px rgba(255, 177, 78, 0.5);
}

.enter:active {
  transform: scale(0.98);
}

.note {
  margin: 10px 0 28px;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* Discord's own widget, filling what is left of the column under the name. */
.discord {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 320px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--brown);
}

.discord iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- the players ------------------------------------------------------- */

.listen {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.player {
  border-radius: 12px;
  overflow: hidden;
  background: var(--brown);
}

.player iframe {
  display: block;
  width: 100%;
  border: 0;
}

.player-soundcloud {
  position: relative;
  flex: 1;
  min-height: clamp(300px, 52vh, 460px);
  /* It grows to end level with the column beside it; the artwork is a square, so no taller than this. */
  max-height: 640px;
  display: flex;
}

/* The player fills its box, however tall the column beside it makes it. */
.player-soundcloud iframe {
  position: absolute;
  inset: 0;
  height: 100%;
}

/* With no script the link stands where the player would. */
.player-soundcloud > a {
  margin: auto;
  padding: 24px;
}

/* Spotify's player has its own rounded corners and its own colour behind them. */
.player-spotify {
  background: none;
}

[hidden] {
  display: none !important;
}

/* ---- the foot ---------------------------------------------------------- */

.foot {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 16px clamp(18px, 4vw, 40px) 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--ink-dim);
  font-size: 0.9rem;
}

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

.foot a:hover {
  color: var(--ink);
}

/* ---- a page with one thing to say (404) -------------------------------- */

.lone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.lone .hole {
  margin: 0;
}

/* ---- narrow: one column, the server last -------------------------------- */

@media (max-width: 760px) {
  .page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  /* The intro's children join the page's flow, so the card can follow the players. */
  .intro {
    display: contents;
  }

  .hole {
    margin-left: -14px;
  }

  .listen {
    width: 100%;
    flex: none;
  }

  .discord {
    order: 1;
    flex: none;
    height: 440px;
    margin-top: 16px;
  }
}
