/* Varlon Studio — homepage styles */

:root {
  --bg:        #07070d;
  --bg-2:      #0e0e18;
  --panel:     #12121f;
  --line:      rgba(212, 175, 55, 0.18);
  --text:      #e8e6f0;
  --muted:     #9b98ae;

  --gold:      #d4af37;
  --gold-lite: #f5d76e;
  --fire:      #ff6b35;
  --water:     #3d9be9;
  --leaf:      #6fc46f;
  --arcane:    #a56bd6;

  --maxw:      1160px;
  --radius:    16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Thai", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-lite); }

h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px;
  background: var(--gold); color: #000;
  padding: 10px 16px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 7, 13, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
/* The logo art has a near-black background; `screen` blends it into the dark page. */
.brand img { width: 40px; height: 40px; mix-blend-mode: screen; }
.brand span { font-weight: 700; letter-spacing: 0.08em; font-size: 0.95rem; text-transform: uppercase; }

.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a:focus { color: var(--gold-lite); border-bottom-color: var(--gold); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(212,175,55,0.16), transparent 70%),
    radial-gradient(700px 500px at 12% 100%, rgba(61,155,233,0.12), transparent 70%),
    radial-gradient(700px 500px at 88% 100%, rgba(255,107,53,0.10), transparent 70%),
    var(--bg);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }

.hero-logo { width: min(330px, 76%); margin-bottom: 22px; mix-blend-mode: screen; }

/* Hero without character key art: single centred column. */
.hero-solo { padding: 96px 0 104px; }
.hero-solo .wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.hero-solo .hero-logo { width: min(400px, 84%); margin: 0 auto 28px; }
.hero-solo h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 16ch; margin-inline: auto; }
.hero-solo p.lede { margin-inline: auto; }
.hero-solo .cta-row { justify-content: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-lite), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: 1.1rem; color: var(--muted); max-width: 52ch; }

/* Layered key art. Sized by height so the three characters stay in scale. */
.hero-art { position: relative; min-height: 480px; }
.hero-art img {
  position: absolute; width: auto;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.65));
}
.hero-art .a1 { height: 46%; left: 0;    bottom: 2%;  z-index: 3; }  /* leaf fox   */
.hero-art .a2 { height: 88%; right: 0;   bottom: 0;   z-index: 2; }  /* fire bunny */
.hero-art .a3 { height: 62%; left: 12%;  bottom: 12%; z-index: 1; }  /* water fox  */

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-lite), var(--gold));
  color: #17130a; box-shadow: 0 10px 30px rgba(212,175,55,0.24);
}
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-lite); }

/* ---------- sections ---------- */

section { padding: 88px 0; border-top: 1px solid rgba(255,255,255,0.045); }
section.alt { background: var(--bg-2); }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- elements strip ---------- */

.elements { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.element {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.element .dot { width: 32px; height: 32px; border-radius: 50%; margin-bottom: 14px; }
.element h3 { font-size: 1rem; margin-bottom: 6px; }
.element p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.e-fire   .dot { background: radial-gradient(circle at 32% 30%, #ffd08a, var(--fire)); }
.e-water  .dot { background: radial-gradient(circle at 32% 30%, #9fd4ff, var(--water)); }
.e-leaf   .dot { background: radial-gradient(circle at 32% 30%, #bde8a8, var(--leaf)); }
.e-arcane .dot { background: radial-gradient(circle at 32% 30%, #dcb4f5, var(--arcane)); }
.e-light  .dot { background: radial-gradient(circle at 32% 30%, #fff3c4, var(--gold)); }

/* ---------- characters ---------- */

.chars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.char {
  background: linear-gradient(180deg, var(--panel), #0b0b14);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}
.char figure { margin: 0 0 18px; height: 260px; display: flex; align-items: flex-end; justify-content: center; }
.char figure img { max-height: 260px; width: auto; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.55)); }
.char h3 { font-size: 1.15rem; margin-bottom: 4px; }
.char .tag {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); margin-bottom: 12px;
}
.char p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Placeholder shown while character art is unpublished. */
.reveal {
  background: linear-gradient(180deg, var(--panel), #0b0b14);
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 54px 32px; text-align: center;
}
.reveal-mark {
  font-size: 3rem; line-height: 1; margin: 0 0 18px;
  color: var(--gold); opacity: 0.45; font-weight: 700;
}
.reveal p:last-child { color: var(--muted); margin: 0 auto; max-width: 46ch; }

/* ---------- about / values ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.values { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.values li { padding-left: 22px; position: relative; color: var(--muted); }
.values li::before {
  content: "◆"; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 0.8rem;
}
.values strong { color: var(--text); display: block; }

/* ---------- games ---------- */

.games { display: grid; gap: 22px; }
.game {
  display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.game figure { margin: 0; display: flex; justify-content: center; }
.game figure img { max-height: 150px; width: auto; }
.game-noart { grid-template-columns: 1fr; }
.game h3 { margin-bottom: 6px; font-size: 1.2rem; }
.game p { color: var(--muted); margin: 0 0 12px; }
.status {
  display: inline-block; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; font-weight: 700;
  background: rgba(212,175,55,0.12); color: var(--gold-lite); border: 1px solid var(--line);
}

/* ---------- contact ---------- */

.contact-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px; display: grid; gap: 10px;
}
.contact-card dt { color: var(--muted); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-card dd { margin: 0 0 16px; font-size: 1.02rem; }

/* ---------- footer ---------- */

.site-footer {
  background: #05050a; border-top: 1px solid var(--line);
  padding: 48px 0 40px; color: var(--muted); font-size: 0.9rem;
}
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold-lite); }
.legal { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 22px; }
.legal p { margin: 0 0 6px; }

/* ---------- legal pages ---------- */

.doc { padding: 64px 0 88px; }
.doc h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.doc .updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 40px; }
.doc article { max-width: 78ch; }
.doc h2 { font-size: 1.25rem; margin-top: 42px; color: var(--gold-lite); }
.doc h3 { font-size: 1.02rem; margin-top: 30px; margin-bottom: 8px; color: var(--text); }
.doc .contact-card { margin-bottom: 8px; }
.doc p, .doc li { color: #c9c6d8; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.note {
  background: rgba(212,175,55,0.07); border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 18px 22px; margin: 28px 0;
}
.note p { margin: 0; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .hero-art { min-height: 340px; order: 2; }
  section { padding: 64px 0; }
  .game { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 620px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .nav { gap: 18px; }
  .hero-art { min-height: 280px; }
  .char figure, .char figure img { height: 200px; max-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
