/* Onement Games - onementgames.com */

/* Jost self-hosted (static light cut; 300 birincil, 400-500 ayni dosyadan) */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/jost-latin.woff2") format("woff2");
  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;
}

:root {
  --bg: #0d0b08;
  --gold: #c9a84c;
  --cream: #e8e2d5;
}

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: 'Jost', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--cream);
}

::selection { background: var(--gold); color: var(--bg); }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--cream); }

main { background: var(--bg); min-height: 100vh; }

/* Scroll nav: hero'yu gecince asagidan kayarak belirir; hero wordmark'inin
   kompakt, yatay hali (ONEMENT | GAMES, zip ayrac). Basa donduren marka. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 62px;
  padding: 0 clamp(20px, 5vw, 48px);
  background: rgba(13, 11, 8, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease;
}

body.scrolled .nav {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-name {
  color: var(--cream);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.3em;
  transition: color 0.25s ease;
}

.nav-zip {
  display: block;
  width: 2px;
  height: 15px;
  background: var(--gold);
}

.nav-sub {
  color: var(--gold);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.34em;
}

.nav-brand:hover .nav-name { color: var(--gold); }

/* Hero: wordmark ortada, ustunde ve altinda esit uzunlukta iki cizgi
   (ust: top:0 -> wordmark, alt: wordmark -> hero sonu). */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.hero-line,
.hero-spacer {
  flex: 1 1 0;
  width: 2px;
  background: var(--gold);
}

/* Scroll isareti: alt cizginin bittigi yere gelen, asagiyi isaret eden altin chevron */
.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px;
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  animation: cue-bob 2.2s ease-in-out infinite;
}

.scroll-cue:hover { opacity: 1; }
.scroll-cue svg { display: block; }

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

.hero-title {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px 24px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 7.5vw, 92px);
  font-weight: 300;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
  color: var(--cream);
  text-align: center;
  line-height: 1;
}

.hero .sub {
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 400;
  letter-spacing: 1.02em;
  margin-right: -1.02em;
  color: var(--gold);
  text-align: center;
}

/* Manifesto (su an comment out - dogru metin bulununca acilacak) */
.manifesto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 72px;
  padding: 26vh 24px;
}

.manifesto-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 46ch;
  text-align: center;
  font-size: clamp(18px, 2.1vw, 23px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.045em;
}

.manifesto-text p { margin: 0; }

/* Game panel - her oyun icin bir tam genislik panel, yenileri alta eklenir.
   Varsayilan: koyu (portre gizli). Hover/focus: koyu perde silinir, portre acilir. */
.game-panel {
  position: relative;
  min-height: clamp(520px, 88svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: url("../images/rotten_chamber_panel.jpg") center 20% / cover;
}

.game-panel::before,
.game-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* Varsayilan: eski koyu gradient stack (portre karartilmis) - opacity 1 */
.game-panel::before {
  background:
    linear-gradient(to right, rgba(13,11,8,0.93) 0%, rgba(13,11,8,0.72) 42%, rgba(13,11,8,0.28) 100%),
    linear-gradient(to bottom, #0d0b08 0%, rgba(13,11,8,0.3) 22%, rgba(13,11,8,0.15) 45%, rgba(13,11,8,0.94) 88%, #0d0b08 100%);
  opacity: 1;
}

/* Hover/focus: gevsetilmis stack (portre nefes alir) - opacity 0 -> 1 */
.game-panel::after {
  background:
    linear-gradient(to bottom, #0d0b08 0%, rgba(13,11,8,0) 26%, rgba(13,11,8,0) 46%, rgba(13,11,8,0.86) 84%, #0d0b08 100%),
    linear-gradient(to right, rgba(13,11,8,0.9) 0%, rgba(13,11,8,0.5) 36%, rgba(13,11,8,0.08) 72%, rgba(13,11,8,0) 100%);
  opacity: 0;
}

.game-panel:hover::before,
.game-panel:focus-within::before { opacity: 0; }

.game-panel:hover::after,
.game-panel:focus-within::after { opacity: 1; }

.game-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding: 0 clamp(24px, 7vw, 96px) clamp(56px, 10vh, 96px) clamp(24px, 9vw, 120px);
}

.game-status {
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.42em;
  color: var(--gold);
}

.game-panel h2 {
  margin: 0;
  font-size: clamp(30px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.22em;
  line-height: 1.1;
  color: var(--cream);
}

.game-desc {
  margin: 0;
  max-width: 50ch;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(232, 226, 213, 0.9);
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 44px;
  margin-top: 8px;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.game-links a {
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  padding-bottom: 6px;
}

.game-links a:hover {
  color: var(--cream);
  border-bottom-color: var(--cream);
}

/* Footer: tek satir, kompakt, ince ust cizgi ile ayrilmis */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 38px 24px 42px;
  border-top: 1px solid rgba(201, 168, 76, 0.12);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.footer-mark { display: block; width: 26px; height: 26px; }

.footer-mail {
  color: var(--cream);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.footer-mail:hover { color: var(--gold); }

/* zip ayrac (nav'daki motifle ayni) */
.footer-sep {
  width: 2px;
  height: 14px;
  background: rgba(201, 168, 76, 0.55);
}

.footer-social {
  display: inline-flex;
  gap: 20px;
}

.footer-social a {
  color: rgba(232, 226, 213, 0.55);
  display: inline-flex;
  transition: color 0.25s ease;
}

.footer-social a:hover { color: var(--gold); }
.footer-social svg { display: block; }

.copyright {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(232, 226, 213, 0.3);
  text-transform: uppercase;
}

/* a11y: klavye focus gorunurlugu */
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
  .game-panel::before,
  .game-panel::after { transition: none; }
  .scroll-cue { animation: none; }
}
