/* Lexpellion tanıtım sayfası. Renkler oyunun arayüzünden (ProfileStyle, Scroll tasarım paketi): gece kahvesi zemin,
   parşömen yazı, yaldız çizgi. Script yok; tek hareket, "Rünlerin alfabesi" bölümünde gerçek adın rün rün belirmesi. */

@font-face {
  font-family: "Alegreya";
  src: url("/assets/fonts/alegreya-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Alegreya";
  src: url("/assets/fonts/alegreya-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  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: "Alegreya Sans";
  src: url("/assets/fonts/alegreya-sans-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/assets/fonts/alegreya-sans-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Runes";
  src: url("/assets/fonts/noto-sans-cypro-minoan.woff2") format("woff2");
  font-display: block;
  unicode-range: U+12F90-12FFF;
}

:root {
  --night: #0b0907;
  --night-2: #15100a;
  --panel: rgba(28, 19, 10, 0.72);
  --vellum: #f1e6cf;
  --vellum-2: #d8ccb2;
  --title: #f6e2ae;
  --gilt: #e3b85c;
  --gilt-hi: #f6d77e;
  --gilt-line: rgba(201, 162, 74, 0.32);
  --ash: #a89a7c;
  --amethyst: #a77ff0;
  --fire: #ffa36a;
  --nature: #a8dc84;
  --mind: #b79af0;
  --neutral: #d9cdb0;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --runes: "Runes", serif;

  --gutter: clamp(16px, 5vw, 48px);
  --measure: 62ch;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--vellum);
  font-family: var(--serif);
  font-size: clamp(17px, 1.05rem + 0.2vw, 19px);
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-family: var(--serif); color: var(--title); margin: 0; }
h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.005em;
}
h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
strong { color: var(--title); font-weight: 700; }

a { color: var(--gilt-hi); }
:focus-visible { outline: 2px solid var(--gilt-hi); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 8px 14px;
  background: var(--gilt);
  color: var(--night);
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: none;
  z-index: 10;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.lede {
  max-width: var(--measure);
  margin-top: 18px;
  color: var(--vellum-2);
  font-size: 1.1em;
}
main > section { padding: clamp(72px, 9vw, 128px) 0; }
main > section + section { border-top: 1px solid var(--gilt-line); }

/* ── Giriş ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: grid;
  place-items: center;
  padding: 72px var(--gutter) 96px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(11, 9, 7, 0.15) 0%, rgba(11, 9, 7, 0.72) 62%, var(--night) 100%),
    linear-gradient(180deg, rgba(11, 9, 7, 0.35) 0%, rgba(11, 9, 7, 0.1) 40%, var(--night) 100%),
    url("/assets/img/library.webp") center 30% / cover no-repeat,
    var(--night);
  overflow: hidden;
}
.hero-inner { max-width: 880px; }
.logo { margin: 0 auto; width: min(760px, 100%); }
.logo img { width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.65)); }
.motto {
  margin-top: clamp(8px, 2vw, 20px);
  font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.8rem);
  font-style: italic;
  font-weight: 500;
  color: var(--title);
  line-height: 1.15;
}
.pitch {
  margin: 18px auto 0;
  max-width: 34em;
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  color: var(--vellum);
}
.soon {
  display: inline-block;
  margin-top: 30px;
  padding: 9px 20px;
  border: 1px solid rgba(227, 184, 92, 0.55);
  border-radius: 999px;
  background: rgba(11, 9, 7, 0.55);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gilt-hi);
}

/* ── Rünlerin alfabesi ─────────────────────────────────── */

.alphabet { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }

.true-name {
  margin: clamp(44px, 6vw, 72px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.true-name img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 2px solid #8a6a2e;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}
.name-label { font-family: var(--sans); font-weight: 500; color: var(--ash); }
.glyph-row {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 2vw, 22px);
}
.g { display: grid; justify-items: center; gap: 6px; min-width: 64px; }
.glyph {
  font-family: var(--runes);
  font-size: clamp(3rem, 2rem + 4vw, 5.2rem);
  line-height: 1;
  color: var(--gilt-hi);
  text-shadow: 0 0 22px rgba(167, 127, 240, 0.75), 0 0 3px rgba(246, 215, 126, 0.9);
}
.g .syl { font-family: var(--sans); font-weight: 800; letter-spacing: 0.06em; color: var(--vellum); }
.g .mean { font-family: var(--sans); font-weight: 500; font-size: 0.88rem; color: var(--ash); }
.reading { margin-top: 22px; max-width: 46ch; color: var(--vellum-2); }

.sub {
  margin-top: clamp(64px, 8vw, 96px);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
}

.names {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.names li {
  --tone: var(--neutral);
  display: grid;
  gap: 4px;
  padding: 22px 20px 20px;
  border: 1px solid var(--gilt-line);
  border-top: 2px solid var(--tone);
  border-radius: 12px;
  background: var(--panel);
}
.names .fire { --tone: var(--fire); }
.names .nature { --tone: var(--nature); }
.names .mind { --tone: var(--mind); }
.script {
  font-family: var(--runes);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: var(--gilt-hi);
  text-shadow: 0 0 14px rgba(167, 127, 240, 0.5);
}
.read { margin-top: 8px; font-size: 1.2rem; font-weight: 700; color: var(--title); }
.gloss { color: var(--vellum-2); }
.card-name { margin-top: 6px; font-family: var(--sans); font-weight: 500; font-size: 0.88rem; color: var(--tone); }

.rune-table {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}
.rune-table > div {
  padding: 16px 4px 12px;
  border: 1px solid var(--gilt-line);
  border-radius: 10px;
  background: var(--panel);
  text-align: center;
}
.rune-table dt {
  font-family: var(--runes);
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
  line-height: 1.1;
  color: var(--gilt-hi);
  text-shadow: 0 0 12px rgba(167, 127, 240, 0.5);
}
.rune-table dd {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ash);
}
.rune-table .syl { display: block; color: var(--vellum); font-weight: 800; letter-spacing: 0.05em; }

/* Gerçek ad rün rün belirir. Hareket istemeyen için son hâl doğrudan görünür. */
@media (prefers-reduced-motion: no-preference) {
  .g { animation: rise 0.7s ease-out backwards; }
  .g1 { animation-delay: 0.3s; }
  .g2 { animation-delay: 0.55s; }
  .g3 { animation-delay: 0.8s; }
  .g4 { animation-delay: 1.05s; }
  .g5 { animation-delay: 1.3s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
}

/* ── Kahramanlar ───────────────────────────────────────── */

.heroes { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%); }
.hero-list {
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px);
}
.hero-list li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
  align-items: center;
}
.hero-list img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 999px 999px 12px 12px;
  border: 1px solid var(--gilt-line);
}
.hero-text h3 { font-size: 1.5rem; }
.hero-text .title { margin-top: 2px; font-style: italic; color: var(--gilt); }
.hero-text p:last-child { margin-top: 12px; color: var(--vellum-2); font-size: 1rem; }

/* ── Dört güç ──────────────────────────────────────────── */

.faction-list {
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.faction-list li { --tone: var(--neutral); }
.faction-list .fire { --tone: var(--fire); }
.faction-list .nature { --tone: var(--nature); }
.faction-list .mind { --tone: var(--mind); }
.faction-list img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  border-bottom: 3px solid var(--tone);
}
.faction-list h3 { margin-top: 18px; color: var(--tone); }
.faction-list p { margin-top: 6px; color: var(--vellum-2); font-size: 0.98rem; }

.colophon {
  padding: 44px var(--gutter) 48px;
  border-top: 1px solid var(--gilt-line);
  text-align: center;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ash);
}
.soon-line { margin-bottom: 10px; font-family: var(--serif); font-size: 1.15rem; color: var(--title); }

/* ── Dar ekranlar ──────────────────────────────────────── */

@media (max-width: 900px) {
  .true-name { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .true-name img { max-width: 280px; }
  .glyph-row { justify-content: center; }
  .reading { margin-left: auto; margin-right: auto; }
  .names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rune-table { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-list { grid-template-columns: minmax(0, 1fr); }
  .faction-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero { min-height: auto; padding-top: 48px; padding-bottom: 72px; }
  .g { min-width: 48px; }
  .names { grid-template-columns: minmax(0, 1fr); }
  .rune-table { gap: 6px; }
  .rune-table > div { padding: 12px 2px 10px; }
  .hero-list li { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); align-items: start; }
  .hero-text p:last-child { font-size: 0.95rem; }
  .faction-list { gap: 16px 14px; }
  .faction-list p { font-size: 0.92rem; }
}
