/* ==========================================================================
   Telesto Games — holding page
   Single brand typeface: PP Fraktion Mono (Regular 400 only, self-hosted).
   Palette: plum #0B001F  ·  broadcast orange #F24B38
   ========================================================================== */

@font-face {
  font-family: 'PP Fraktion Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/pp-fraktion-mono.woff2') format('woff2');
}

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

:root {
  --plum: #0B001F;
  --orange: #F24B38;
  --copyright: #C8B8D8;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--plum);
  color: var(--orange);
  font-family: 'PP Fraktion Mono', monospace;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

/* Visually hidden but available to screen readers and search engines. */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Transmission canvas ────────────────────────────────────────────────── */
#tx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ── Top hairline ───────────────────────────────────────────────────────── */
.top-hairline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--orange);
  z-index: 20;
  opacity: 0.6;
}

/* ── Main centred content ───────────────────────────────────────────────── */
#main-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 48px 120px;
}

#main-content > .lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Logo lockup: TELEST0 · [mark] · GAMES */
#logo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  padding: 0 80px;
}

.logo-word {
  font-size: 56px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--orange);
  /* Revealed by JS ~4.6s after load. Hidden until then (the mark assembles
     from nothing); shown immediately when JS is off or motion is reduced. */
  opacity: 0;
}

.logo-word--left  { text-align: left; }
.logo-word--right { text-align: right; }

#logo-symbol {
  flex: none;
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

#logo-symbol svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Hairline divider */
#logo-divider {
  width: calc(100% - 160px);
  height: 1px;
  margin: 52px 0 48px;
  background: var(--orange);
  opacity: 0.2;
}

/* Status line */
.status-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-line__label {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.45;
}

.status-line__cursor {
  font-size: 11px;
  color: var(--orange);
  opacity: 0.45;
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 48px;
  border-top: 1px solid rgba(242, 75, 56, 0.12);
}

#social-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.social-link {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.55;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 1;
}

.copyright {
  font-size: 11px;
  color: var(--copyright);
  opacity: 0.35;
  text-align: center;
  letter-spacing: 0.07em;
}

/* ── Site brand (home link on sub-pages) ────────────────────────────────── */
.site-brand {
  position: fixed;
  top: 20px;
  left: 28px;
  z-index: 40;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.site-brand:hover,
.site-brand:focus-visible {
  opacity: 1;
}

/* ── Hamburger menu ─────────────────────────────────────────────────────── */
.menu-toggle {
  position: fixed;
  top: 20px;
  right: 28px;
  z-index: 40;
  width: 34px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--orange);
  opacity: 0.6;
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.menu-toggle:hover .menu-toggle__bar,
.menu-toggle:focus-visible .menu-toggle__bar {
  opacity: 1;
}

/* Open state: bars cross into an X. */
.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* Full-screen menu overlay. */
.site-menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 0, 31, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.site-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.site-menu__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.site-menu__link {
  font-size: 28px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.18s ease;
}

.site-menu__link:hover,
.site-menu__link:focus-visible {
  opacity: 1;
}

/* ── Content pages (About, Contact) ─────────────────────────────────────── */
.page-main {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 160px;
}

.page {
  width: 100%;
  max-width: 640px;
}

.page__eyebrow {
  font-size: 11px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  opacity: 0.45;
  margin-bottom: 20px;
}

.page__title {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 28px;
}

.page__divider {
  width: 100%;
  height: 1px;
  background: var(--orange);
  opacity: 0.2;
  margin-bottom: 28px;
}

.page__body p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 16px;
}

.page__body a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
  transition: opacity 0.18s ease;
}

.page__body a:hover,
.page__body a:focus-visible {
  opacity: 1;
}

/* Lead-in line before a list (e.g. "…which means two things:"). */
.page__lead {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 6px;
}

/* Numbered points. Opacity lives only on the <li> so nested lists don't
   double-fade (opacity compounds through descendants). */
.page__body ol {
  margin: 4px 0 16px;
  padding-left: 1.5em;
}

.page__body ol > li {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.7;
  margin-bottom: 22px;
  padding-left: 0.3em;
}

.page__body ol > li::marker {
  color: var(--orange);
}

/* Sub-points: em-dash markers instead of discs, on-brand with the hairlines. */
.page__body ul {
  list-style: none;
  margin: 12px 0 0;
  padding-left: 0;
}

.page__body ul > li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 8px;
}

.page__body ul > li::before {
  content: "—";
  position: absolute;
  left: 0;
}

/* ── Keyframes ──────────────────────────────────────────────────────────── */
@keyframes blink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  html,
  body {
    overflow-y: auto;
  }

  #logo-row {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 0 32px;
  }

  .logo-word {
    font-size: 40px;
    flex: none;
    text-align: center;
  }

  #logo-symbol {
    width: 160px;
  }

  #logo-divider {
    width: calc(100% - 64px);
    margin: 36px 0 32px;
  }

  #main-content {
    padding: 48px 32px 140px;
  }

  #social-nav {
    flex-direction: column;
    gap: 14px;
  }

  .site-menu__link {
    font-size: 24px;
  }

  .page__title {
    font-size: 34px;
  }

  .page-main {
    padding: 104px 28px 140px;
  }
}

/* ── Progressive enhancement / accessibility ────────────────────────────── */

/* No JS: show the wordmark immediately (the mark/canvas are JS-rendered, but
   the wordmark, links and copy are real HTML so the page still reads). */
@media (scripting: none) {
  .logo-word {
    opacity: 1;
  }
}

/* Honour reduced-motion: no blinking cursor, wordmark shown, no canvas loop
   (the canvas is left unstarted by JS in this mode). */
@media (prefers-reduced-motion: reduce) {
  .logo-word {
    opacity: 1;
  }

  .status-line__cursor {
    animation: none;
  }
}
