/* Ticker Fish, the front door.
   One screen of what it is, one look at the game, one note about the stocks.
   Type is Archivo: the headline runs at a normal weight with the tracking
   pulled tight, and every small label is Archivo Narrow in caps. Buttons are
   two blocks that meet, the word and the arrow, squared off. */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600&family=Archivo+Narrow:wght@500;600;700&display=swap");

:root {
  --abyss: #050a13;
  --deep: #0b1524;
  --tide: #16294a;
  --aqua: #8fb4e8;   /* moonlight on the water */
  --rope: #d79a52;   /* the rope */
  --foam: #eef2fb;
  --cream: #f2ece1;
  --mist: #93a3c2;
  --hair: #ffffff14;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Archivo, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  color: var(--foam);
  background: var(--abyss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The night the game is set in, behind everything: the same key art with the
   anchor taken out of it, holding the top of the page and dissolving into deep
   water before the reading starts. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("/brand/night-sea.jpg") top center / 100% auto no-repeat,
    #050a13;
  image-rendering: pixelated;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 34% at 82% 6%, #9fc4f11a, transparent 70%),
    linear-gradient(180deg, #050a1347 0%, #050a13a6 28%, #050a13e6 52%, #050a13 70%);
  pointer-events: none;
}

h1, h2, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* our own display rules must never outrank the hidden attribute */
[hidden] { display: none !important; }

a:focus-visible { outline: 2px solid var(--rope); outline-offset: 3px; }

.wrap {
  width: min(100% - 40px, 1060px);
  margin-inline: auto;
}

/* every small label on the page shares one voice */
.label,
.chip code,
.ticker span,
.shot figcaption,
.button,
.sticky-cta,
.social,
.nav .quiet,
.symbols b,
footer small {
  font-family: "Archivo Narrow", Archivo, sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shine {
  background: linear-gradient(96deg, #dbe6fb 4%, var(--aqua) 46%, var(--rope) 98%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rope);
}

.label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--rope), transparent);
}

/* ------------------------------------------------------------------- nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ffffff1f;
}

.nav .quiet { font-size: 12.5px; font-weight: 600; color: var(--mist); }
.nav .quiet:hover { color: var(--foam); }

/* the crew's corner of the internet: the same two pieces, one size down */
.social {
  display: inline-flex;
  align-items: stretch;
  border-radius: 2px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.social > span {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: #10161f;
  background: var(--cream);
  transition: background 0.15s ease;
}

.social > i {
  display: grid;
  place-items: center;
  width: 38px;
  color: #071120;
  background: var(--aqua);
  transition: background 0.15s ease;
}

.social svg { width: 13px; height: 13px; transition: transform 0.15s ease; }
.social:hover > span { background: #ffffff; }
.social:hover > i { background: #b0cdf5; }
.social:hover svg { transform: translateX(3px); }
.social:active { transform: translateY(1px); }

/* --------------------------------------------------------------- buttons */
/* Two blocks that meet: the word on paper, the arrow on moonlit water. */
.button,
.sticky-cta {
  display: inline-flex;
  align-items: stretch;
  border-radius: 2px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.button > span,
.sticky-cta > span {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  color: #10161f;
  background: var(--cream);
  transition: background 0.15s ease;
}

.button > i,
.sticky-cta > i {
  display: grid;
  place-items: center;
  width: 46px;
  color: #071120;
  background: var(--aqua);
  transition: background 0.15s ease;
}

.button svg,
.sticky-cta svg { width: 15px; height: 15px; transition: transform 0.15s ease; }

.button:hover > span, .sticky-cta:hover > span { background: #ffffff; }
.button:hover > i, .sticky-cta:hover > i { background: #b0cdf5; }
.button:hover svg, .sticky-cta:hover svg { transform: translateX(3px); }
.button:active, .sticky-cta:active { transform: translateY(1px); }

/* ------------------------------------------------------------------ hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 24px;
  align-items: center;
  padding: 46px 0 30px;
}

.hero h1 {
  font-size: clamp(48px, 7.6vw, 96px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.058em;
  margin: 18px 0 20px;
}

.hero h1 span { display: block; }

.lead { color: #a9b7d6; font-size: 18px; max-width: 34ch; margin-bottom: 26px; }
.lead b { color: var(--foam); font-weight: 600; }

.note { font-size: 14px; color: var(--mist); margin-top: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 9px 10px 9px 14px;
  border: 0;
  border-radius: 2px;
  background: none;
  box-shadow: inset 0 0 0 1px #ffffff1f;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.chip:hover { background: #ffffff0a; box-shadow: inset 0 0 0 1px #ffffff3d; }
.chip:active { transform: translateY(1px); }

.chip code {
  /* an address is copied character for character, so nothing here rewrites it */
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--rope);
}

.chip .ca-short { display: none; }

.chip .ca-copy {
  font-family: "Archivo Narrow", Archivo, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #071120;
  background: var(--aqua);
  padding: 5px 9px;
  border-radius: 2px;
}

/* the planet draws itself; this is only its frame */
.planet-stage { position: relative; aspect-ratio: 1 / 1; }

.planet-stage::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, #2c43664d, transparent 70%);
  pointer-events: none;
}

#landing-planet {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  /* the little planet keeps the same daylight scene under the hood; this puts
     it under the same moon as the rest of the page */
  filter: brightness(0.62) saturate(0.72) hue-rotate(16deg) contrast(1.06);
}

/* a thin wash of moonlight over the water, never in the way of the drag */
.planet-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 55% at 62% 30%, #7fa8e02e, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}

#landing-planet:active { cursor: grabbing; }

.drag-hint {
  position: absolute;
  bottom: 2%;
  right: 3%;
  font-size: 12px;
  color: var(--mist);
  pointer-events: none;
}

/* ---------------------------------------------------------------- ticker */
/* The facts run past like tape on a wall of quotes. */
.ticker {
  position: relative;
  overflow: hidden;
  padding: 15px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tape 34s linear infinite;
}

.ticker:hover .ticker-track { animation-play-state: paused; }

.ticker-group { display: flex; gap: 38px; padding-right: 38px; }

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mist);
  white-space: nowrap;
}

.ticker span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--rope);
  opacity: 0.8;
}

.ticker .live { color: var(--rope); }

@keyframes tape {
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------- one look */
.shot {
  margin-top: 42px;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff1f;
}

.shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: 380px;
  object-fit: cover;
  object-position: center 52%;
}

.shot figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--hair);
  font-size: 11px;
  font-weight: 600;
  color: var(--mist);
}

/* ---------------------------------------------------------------- stocks */
.stocks { padding: 56px 0 10px; text-align: center; }

.stocks h2 {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.stocks > p { color: #a9b7d6; max-width: 54ch; margin-inline: auto; }

.symbols {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 22px;
}

.symbols div {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px var(--hair);
}

.symbols img { width: 22px; height: 22px; object-fit: contain; }
.symbols b { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }

.fine {
  font-size: 13.5px;
  line-height: 1.7;
  color: #7f8daa;
  max-width: 62ch;
  margin: 0 auto 28px;
}

.fine a { color: var(--aqua); border-bottom: 1px solid #8fb4e85c; }

/* ---------------------------------------------------------------- footer */
footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--hair);
  color: var(--mist);
  font-size: 13px;
}

footer nav { display: flex; gap: 18px; margin-left: auto; }
footer nav a:hover { color: var(--foam); }
footer small { width: 100%; font-size: 10.5px; color: #6d7994; }

/* phone only: the way in is always a thumb away */
.sticky-cta {
  display: none;
  position: fixed;
  z-index: 20;
  left: 16px;
  right: 16px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 14px 34px -14px #000000e6;
}

.sticky-cta > span { flex: 1; justify-content: center; padding: 17px 18px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  /* narrow screens get the moonlit half, closer in */
  body::before { background-size: 190% auto, auto; background-position: 68% top, center; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 28px; }
  .planet-stage { order: -1; aspect-ratio: 4 / 3; }
  .hero h1 { font-size: 14.5vw; }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 32px, 1060px); }
  .chip .ca-full { display: none; }
  .chip .ca-short { display: inline; }
  .sticky-cta { display: inline-flex; }
  footer { padding-bottom: 92px; }
  .shot img { aspect-ratio: 16 / 10; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
