/* Alcyon Game Studio. Brand colors come from the Alcyon logo (see ../alcyonsite):
   blue #06567E and orange #E68A18. Orange is kept for calls to action. */

@font-face {
  font-family: "Plex Condensed";
  src: url("/assets/fonts/ibm-plex-sans-condensed-700-latin.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Condensed";
  src: url("/assets/fonts/ibm-plex-sans-condensed-700-latin-ext.woff2") format("woff2");
  font-weight: 700; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-var-latin.woff2") format("woff2");
  font-weight: 100 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-var-latin-ext.woff2") format("woff2");
  font-weight: 100 700; font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500; font-display: swap;
}

:root {
  --night: #0a1620;
  --deep: #0e2230;
  --panel: #12293a;
  --line: #21405a;
  --blue: #06567e;
  --sky: #5fb3dc;
  --orange: #e68a18;
  --orange-hi: #f4a23a;
  --text: #e9f1f6;
  --muted: #9db4c4;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Plex Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--orange); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Header */
.top {
  max-width: var(--max); margin: 0 auto; padding: 20px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  position: relative; z-index: 2;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font: 700 1.2rem/1 "Plex Condensed", sans-serif; letter-spacing: .01em; }
.brand b { color: var(--sky); font-weight: 700; }
.top nav { display: flex; gap: 20px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top nav a:hover { color: var(--text); }

/* Hero: the Pleiades. Alcyone is their brightest star. */
.hero { position: relative; overflow: hidden; margin-top: -72px; padding: 150px 16px 72px;
  background: radial-gradient(1200px 600px at 75% 10%, #123a55 0%, transparent 60%),
              linear-gradient(180deg, #0b1e2c 0%, var(--night) 100%); }
.sky { position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 78% 22%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 30%, #dff1ff 50%, transparent 51%),
    radial-gradient(2.5px 2.5px at 84% 31%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 81% 15%, #cfe9ff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 20%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 75% 38%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 36%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 12% 18%, #9fc4dc 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 8%, #9fc4dc 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 26%, #9fc4dc 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 70%, #6f93ab 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 62%, #6f93ab 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 74%, #6f93ab 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 46%, #6f93ab 50%, transparent 51%);
}
.sky::after { /* soft glow around the cluster */
  content: ""; position: absolute; left: 70%; top: 12%; width: 26%; height: 32%;
  background: radial-gradient(closest-side, rgba(95,179,220,.18), transparent);
  filter: blur(8px);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.eyebrow { font: 500 .8rem/1 "Plex Mono", monospace; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-hi); margin: 0 0 18px; }
h1 { font: 700 clamp(2.6rem, 7.5vw, 5.4rem)/0.98 "Plex Condensed", sans-serif; letter-spacing: -.01em; margin: 0 0 24px; }
h1 em { font-style: normal; color: var(--sky); }
.lede { max-width: 34em; color: var(--muted); font-size: 1.15rem; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--orange); color: #16110a; }
.btn-primary:hover { background: var(--orange-hi); color: #16110a; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--sky); color: #fff; }

/* Sections */
.section-title { display: flex; align-items: baseline; gap: 14px;
  font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.1 "Plex Condensed", sans-serif; margin: 0 0 36px; }
.section-title span { font: 500 .85rem/1 "Plex Mono", monospace; color: var(--orange-hi); letter-spacing: .1em; }

.games { max-width: var(--max); margin: 0 auto; padding: 48px 16px 40px; display: grid; gap: 28px; }
.games .section-title { margin-bottom: 8px; }

.game { display: grid; grid-template-columns: 1fr; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--deep); }
.body { padding: 24px 22px 26px; }
.game h3 { font: 700 1.9rem/1.1 "Plex Condensed", sans-serif; margin: 0 0 10px; }
.game p { margin: 0 0 16px; color: #c8d8e3; }
.tags { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 .78rem/1 "Plex Mono", monospace; letter-spacing: .03em; color: var(--sky);
  border: 1px solid #285676; background: rgba(6,86,126,.22); padding: 7px 10px; border-radius: 999px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.soon { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px dashed var(--line); color: var(--muted); font-weight: 600; }

@media (min-width: 860px) {
  .game { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .game:nth-of-type(even) .shot { order: 2; }
  .shot { height: 100%; }
  .body { padding: 36px 40px; }
}

/* Follow */
.follow { max-width: var(--max); margin: 0 auto; padding: 56px 16px 80px; }
.follow > p { color: var(--muted); margin: -20px 0 24px; }
.follow b { color: var(--text); }
.socials { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.socials a { display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  padding: 12px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-weight: 600; }
.socials a::after { content: "↗"; color: var(--muted); }
.socials a:hover { border-color: var(--sky); }
.socials a:hover::after { color: var(--orange-hi); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: #071019; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: 28px max(16px, calc((100% - var(--max)) / 2 + 16px)); color: var(--muted); font-size: .95rem; }
.foot p { margin: 0 0 4px; }
.foot b { color: var(--text); }
.copy { align-self: flex-end; }

@media (max-width: 520px) {
  .top nav { gap: 14px; }
  .brand span b { display: none; }
  .hero { padding: 130px 16px 80px; }
  .btn { width: 100%; justify-content: center; }
  .links .btn, .hero-actions .btn { width: auto; flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sky::after { animation: none; }
  .btn { transition: none; }
}

/* 404 page */
.hero-full { margin-top: 0; min-height: 100vh; }
