/* 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, 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; position: relative; overflow: hidden; }

/* Tek zip omurgasi: sayfanin tam ortasindan bastan sona, icerigin arkasindan akar.
   Bos alanlarda gorunur, opak icerigin (yazi, oyun gorseli) arkasina gecer. */
.spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-1px);
  z-index: 0;
  pointer-events: none;
}

.spine span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: top center;
  animation: spine-draw 1.6s 0.15s cubic-bezier(0.65, 0, 0.2, 1) forwards;
}

@keyframes spine-draw { to { transform: scaleY(1); } }

/* Icerik omurganin onunde durur; seffaf bolumlerde omurga aralardan gorunur */
.hero, .manifesto, .game-panel, footer { position: relative; z-index: 1; }

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 56px 24px;
  opacity: 0;
  animation: hero-rise 1.1s 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.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 */
.manifesto {
  display: flex;
  flex-direction: column;
  align-items: center;
  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 */
.game-panel {
  position: relative;
  min-height: clamp(520px, 88svh, 820px);
  display: flex;
  align-items: flex-end;
  /* Gevsetilmis gradient: portre nefes alir, metin alt-solda okunur kalir.
     Alt-sol kosede iki gradient ust uste binip en koyu bolgeyi yaratir. */
  background-image:
    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%),
    url("../images/rotten_chamber_panel.jpg");
  background-size: auto, auto, cover;
  background-position: center, center, center 20%;
}

.game-info {
  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 */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 44px;
  padding: 14vh 24px 12vh;
}

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

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

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

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 36px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

footer nav a { color: rgba(232, 226, 213, 0.55); }
footer nav a:hover { color: var(--gold); }

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

/* Hareket duyarliligi: tum animasyon/gecisleri kapat, icerigi aninda goster */
@media (prefers-reduced-motion: reduce) {
  .spine span { animation: none; transform: scaleY(1); }
  .hero-title { animation: none; opacity: 1; transform: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
