/* Pharos Games — studio site. Plain CSS, no framework, no external fonts, no third-party scripts, no cookies. */

:root {
  --cream: #f6f1e6;
  --paper: #fffdf8;
  --ink: #1d251c;
  --ink-soft: #4b5547;
  --mute: #7d8578;
  --line: rgba(29, 37, 28, 0.1);
  --green: #3d7d3a;
  --green-deep: #2b5a2a;
  --sun: #f2b544;
  --ochre: #c98a1f;
  --sky: #9fd3f0;
  --radius: 22px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: ui-rounded, 'SF Pro Rounded', 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --cream: #141a13;
    --paper: #1b2219;
    --ink: #f1ecdf;
    --ink-soft: #c9c3b4;
    --mute: #8f998a;
    --line: rgba(241, 236, 223, 0.12);
    --green: #6fbf69;
    --green-deep: #4f9b4a;
  }
}
:root[data-theme='dark'] {
  --cream: #141a13;
  --paper: #1b2219;
  --ink: #f1ecdf;
  --ink-soft: #c9c3b4;
  --mute: #8f998a;
  --line: rgba(241, 236, 223, 0.12);
  --green: #6fbf69;
  --green-deep: #4f9b4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Header ---- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  color: #fff;
}
.top.inner { position: static; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.01em; font-size: 18px; }
.brand svg { width: 30px; height: 30px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: clamp(14px, 3vw, 34px); font-weight: 600; font-size: 15px; opacity: 0.92; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  background: #86b86a url('img/hero.jpg') center / cover no-repeat;
  color: #fff; isolation: isolate; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 20, 10, 0.16) 0%, rgba(10, 20, 10, 0) 18%, rgba(10, 20, 10, 0) 55%, rgba(10, 20, 10, 0.72) 100%);
}
.hero .live {
  position: absolute; inset: 0; z-index: -2; border: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.4s ease; pointer-events: none; /* the page scrolls as usual over it */
}
.hero.playing .live { opacity: 1; }
.hero-body { padding: 0 var(--gutter) clamp(40px, 8vh, 96px); width: min(var(--max), 100%); margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.9; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--sun); border-radius: 2px; }
.hero h1 {
  font-size: clamp(56px, 11vw, 148px); font-weight: 900; letter-spacing: -0.035em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 .tm { font-size: 0.2em; font-weight: 600; vertical-align: 1.6em; margin-left: 0.15em; opacity: 0.85; letter-spacing: 0; }
.hero .tag { font-size: clamp(18px, 2.2vw, 26px); max-width: 32ch; margin-top: 14px; opacity: 0.95; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 700; font-size: 15px; color: #fff;
}
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store small { font-weight: 600; opacity: 0.75; font-size: 12px; display: block; letter-spacing: 0.08em; text-transform: uppercase; }
.store span { line-height: 1.1; }
.scroll { position: absolute; right: var(--gutter); bottom: 28px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; writing-mode: vertical-rl; }

/* ---- Sections ---- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section + .section { padding-top: 0; }
.kicker { color: var(--ochre); font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.section h2 { font-size: clamp(34px, 5vw, 60px); max-width: 18ch; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-soft); max-width: 58ch; margin-top: 18px; }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 48px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 24px 50px -30px rgba(29, 37, 28, 0.35);
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; width: 100%; height: auto; }
.card-body { padding: 24px 26px 28px; }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; }

.about {
  display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 860px) { .about { grid-template-columns: 1.1fr 1fr; } }
.mark {
  background: linear-gradient(160deg, #1f3a5f 0%, #0f1f33 100%); border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: grid; place-items: center; position: relative; overflow: hidden;
}
.mark svg { width: 52%; height: auto; color: #f6f1e6; }
.mark::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 28%, rgba(242, 181, 68, 0.35), transparent 70%);
}
.facts { display: grid; gap: 14px; margin-top: 28px; }
.fact { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); }
.fact b { color: var(--ink); }
.fact svg { width: 22px; height: 22px; margin-top: 2px; stroke: var(--green); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--mute); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot p { line-height: 1.6; }
.foot nav { display: flex; gap: 22px; }
.foot .brand { color: var(--ink); font-size: 15px; }
.foot .brand svg { width: 22px; height: 22px; }

/* ---- Inner pages (privacy, support) ---- */
.page { padding: 24px 0 90px; }
.page header { padding: 40px 0 10px; }
.page h1 { font-size: clamp(36px, 5vw, 56px); }
.page .meta { color: var(--mute); margin-top: 10px; font-size: 15px; }
.prose { max-width: 70ch; margin-top: 30px; color: var(--ink-soft); }
.prose h2 { font-size: 24px; color: var(--ink); margin: 40px 0 10px; letter-spacing: -0.01em; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); }
.prose .note { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-weight: 700;
  background: var(--green); color: #fff; margin-top: 18px;
}
.btn:hover { background: var(--green-deep); text-decoration: none; }

@media (max-width: 640px) {
  .nav { display: none; }
  .scroll { display: none; }
  .hero h1 { font-size: clamp(52px, 17vw, 92px); }
}
/* The light in the ankh beats slowly, like a heart (the mark on every page). */
.beat { transform-box: fill-box; transform-origin: center; animation: beat 2.6s ease-in-out infinite; }
.beat.halo { opacity: 0; animation-name: halo; }
@keyframes beat { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.22); } }
@keyframes halo { 0%, 100% { opacity: 0; transform: scale(0.9); } 45% { opacity: 0.45; transform: scale(1.08); } }

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