/* The landing page of thecoolestcity.com: what the internet sees while the
   system answers the NetBird mesh only (deploy/Caddyfile). One screen like a
   poster: the crowd of the old site's hero under stage lights in the brand's
   colours, the shadows night blue, the lights magenta and ember, slowly
   changing like the lights of a club; the claim big and narrow on top. No
   script, nothing from other hosts. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --night: #0b0b18;
  --night-900: #12122a;
  --magenta: #af3c9a;
  --magenta-soft: #e48fd3;
  --rose: #d6527a;
  --ember: #f46c37;
  --ink: #f3f3fa;
  --muted: #c9c9e0;
  --logo-accent: #c481b7;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: dark;
}

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

html {
  background: var(--night);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

/* The stage: the photo in grey multiplies the light gradient behind it, so
   only its bright parts take the colour; night blue then lifts what is
   black. The gradient drifts, the lights change. */
.stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(110deg, var(--magenta) 0%, var(--rose) 40%, var(--ember) 70%, var(--magenta) 100%);
  background-size: 300% 100%;
  animation: lights 28s ease-in-out infinite alternate;
}

.stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  filter: grayscale(1) contrast(1.35) brightness(1.15);
  mix-blend-mode: multiply;
}

/* Night blue in the blacks: lighten keeps the coloured lights, lifts the dark. */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--night-900);
  mix-blend-mode: lighten;
  pointer-events: none;
}

/* On top, darker towards the claim and the head, so the text reads on any light. */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgb(11 11 24 / 0.94) 0%, rgb(11 11 24 / 0.72) 36%, rgb(11 11 24 / 0.2) 68%, rgb(11 11 24 / 0.5) 100%);
  pointer-events: none;
}

@keyframes lights {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .stage { animation: none; background-position: 35% 50%; }
}

/* Head: the wordmark and the languages. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.75rem) var(--gutter) 0;
}

.logo {
  display: block;
  width: clamp(10.5rem, 22vw, 15rem);
  height: auto;
}
.logo-word { fill: var(--ink); }
.logo-accent { fill: var(--logo-accent); }

.langs {
  display: flex;
  gap: 0.25rem;
}
.langs a {
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.langs a:hover { color: var(--ink); }
.langs a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

/* The poster: the claim at the foot of the stage, the facts under it. */
.poster {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem var(--gutter) clamp(1.5rem, 4vh, 3rem);
}

.claim {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3.25rem, 11.5vw, 10.5rem);
  font-stretch: 64%;
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

/* The horizon of the logo, once, under the claim. */
.claim::after {
  content: "";
  display: block;
  width: min(100%, 28rem);
  height: 0.32rem;
  margin-top: clamp(1.1rem, 2.6vw, 1.75rem);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--magenta), var(--ember));
  box-shadow: 0 0 1.4rem rgb(244 108 55 / 0.45), 0 0 2.6rem rgb(175 60 154 / 0.35);
}

.facts {
  display: grid;
  grid-template-columns: minmax(0, 34rem) auto;
  align-items: end;
  gap: 1.25rem clamp(2rem, 6vw, 6rem);
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 450;
  line-height: 1.45;
}

.soon {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  /* The gradient paints the element's box only: room above and below, so it
     colours the descender of the g as well; the margins take it back. */
  padding-block: 0.1em 0.22em;
  margin-block: -0.1em -0.22em;
  background: linear-gradient(90deg, var(--magenta-soft), var(--ember));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hosts {
  grid-column: 1 / -1;
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Foot: who stands behind it. */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1rem var(--gutter) clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid rgb(243 243 250 / 0.12);
  background: rgb(11 11 24 / 0.85);
  font-size: 0.875rem;
}
.foot a { color: var(--muted); text-underline-offset: 0.25em; }
.foot a:hover { color: var(--ink); }

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

@media (max-width: 47.99rem) {
  .facts { grid-template-columns: 1fr; }
  .soon { white-space: normal; }
  .stage img { object-position: 50% 30%; }
}
