/* Melachim Game Studio · studio.melachim.com.br
   Same family as melachim.com.br (deep-sea green, sand, gold, Fraunces + Archivo),
   with a "maré" turquoise accent for the games side. */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/archivo-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mar: #0E3B36;
  --mar-deep: #092D28;
  --mar-ink: #061F1C;
  --mar-mid: #175A50;
  --mare: #3FC1B0;          /* turquoise accent (the tide) */
  --ink: #16221F;
  --ink-soft: #47554F;
  --areia: #F4EFE3;
  --areia-2: #E9E0C9;
  --branco: #FCFBF6;
  --ouro: #C8A24B;
  --ouro-vivid: #D9B45C;
  --ouro-pale: #E9D9A8;

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-text: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --fs-hero: clamp(2.5rem, 5.2vw + 1rem, 4.6rem);
  --fs-h2: clamp(1.85rem, 2.6vw + .9rem, 3rem);
  --fs-body: 1.0625rem;
  --sect: clamp(4.5rem, 8vw, 7.5rem);
  --container: 72rem;
  --r-md: 12px;
  --r-lg: 22px;
  --ease: cubic-bezier(.22,.8,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--f-text); font-size: var(--fs-body); line-height: 1.6; color: var(--areia); background: var(--mar-ink); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 480; line-height: 1.08; margin: 0 0 .6em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ouro); color: var(--mar-ink); padding: .6rem 1rem; border-radius: 6px; z-index: 100; font-weight: 600; }
.skip:focus { left: .5rem; }
:focus-visible { outline: 3px solid var(--ouro-vivid); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; padding-block: 1.1rem; }
.site-header .container { display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { height: 42px; width: auto; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 520; font-size: 1.35rem; letter-spacing: .04em; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--f-text); font-weight: 500; font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--ouro-pale); margin-top: .15rem; }
.nav { display: flex; gap: 1.4rem; font-size: .92rem; }
.nav a { text-decoration: none; opacity: .9; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--ouro); }
.lang { display: flex; gap: .35rem; font-size: .8rem; letter-spacing: .08em; }
.lang a { text-decoration: none; opacity: .75; padding: .2rem .25rem; }
.lang a[aria-current] { opacity: 1; color: var(--ouro-pale); font-weight: 600; }
@media (max-width: 760px) {
  .nav { display: none; }
  .brand-mark { height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .brand-name small { letter-spacing: .2em; font-size: .56rem; }
}

/* Hero */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: end; padding: 8rem 0 4.5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, 50% 50%); }
@media (max-aspect-ratio: 1/1) { .hero-bg img { object-position: 50% 50%; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(6 31 28 / .72) 0%, rgb(6 31 28 / .12) 30%, rgb(6 31 28 / .25) 55%, rgb(6 31 28 / .92) 100%),
    linear-gradient(90deg, rgb(6 31 28 / .55) 0%, rgb(6 31 28 / 0) 65%); }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; font-size: .8rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ouro-pale); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 34px; height: 8px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 8'%3E%3Cpath d='M0 6h4V2h4v4h4V2h4v4h4V2h4v4h4V2h4v4h2' fill='none' stroke='%23C8A24B' stroke-width='1.6'/%3E%3C/svg%3E"); }
.hero h1 { font-size: var(--fs-hero); max-width: 14ch; font-weight: 440; }
.hero h1 em { font-style: italic; font-weight: 360; color: var(--ouro-pale); }
.hero-sub { font-size: clamp(1.05rem, 1vw + .8rem, 1.22rem); max-width: 34rem; color: rgb(244 239 227 / .9); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.btn { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; transition: transform .2s var(--ease), background-color .2s, color .2s; border: 1.5px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--ouro); color: var(--mar-ink); }
.btn-gold:hover { background: var(--ouro-vivid); }
.btn-ghost { border-color: rgb(244 239 227 / .55); color: var(--areia); }
.btn-ghost:hover { background: rgb(244 239 227 / .1); }
.btn svg { width: 18px; height: 18px; }
.photo-credit { position: absolute; right: 1rem; bottom: .8rem; font-size: .72rem; color: rgb(244 239 227 / .7); max-width: 60%; text-align: right; }
.photo-credit a { color: inherit; }

/* Sections */
section { padding-block: var(--sect); }
.sect-head { max-width: 40rem; margin-bottom: 2.6rem; }
.sect-head h2 { font-size: var(--fs-h2); }
.lead { color: rgb(244 239 227 / .82); font-size: 1.1rem; }

/* Games */
.games { background: var(--mar-deep); }
.game { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; background: var(--mar); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgb(200 162 75 / .25); }
.game-art { position: relative; min-height: 22rem; }
.game-art img { width: 100%; height: 100%; object-fit: cover; }
.game-body { padding: clamp(1.6rem, 3.5vw, 3rem); display: flex; flex-direction: column; }
.game-logo { width: min(300px, 70%); height: auto; margin: 0 0 1.2rem -6px; }
.game h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.badge { font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .32rem .7rem; border-radius: 999px; background: rgb(63 193 176 / .14); color: #9BE7DC; border: 1px solid rgb(63 193 176 / .4); }
.badge-gold { background: rgb(200 162 75 / .14); color: var(--ouro-pale); border-color: rgb(200 162 75 / .45); }
.pitch { font-family: var(--f-display); font-size: clamp(1.2rem, 1vw + 1rem, 1.5rem); line-height: 1.35; font-weight: 400; }
.facts { list-style: none; padding: 0; margin: .4rem 0 1.4rem; display: grid; gap: .45rem; }
.facts li { display: flex; gap: .7rem; align-items: baseline; color: rgb(244 239 227 / .88); }
.facts li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--mare); transform: translateY(-1px); }
.game-meta { font-size: .88rem; color: rgb(244 239 227 / .65); margin-top: auto; padding-top: 1rem; }
.game .actions { margin-top: .4rem; }
.more { margin-top: 2rem; color: rgb(244 239 227 / .7); font-size: .95rem; display: flex; gap: .8rem; align-items: center; }
.more::before { content: ""; width: 10px; height: 10px; border: 2px solid var(--ouro); flex: none; }
@media (max-width: 860px) {
  .game { grid-template-columns: 1fr; }
  .game-art { min-height: 0; aspect-ratio: 4 / 3; }
  .game-art img { object-position: 50% 42%; }
}

/* Studio */
.studio { background: var(--areia); color: var(--ink); }
.studio .eyebrow { color: var(--mar-mid); }
.studio .lead { color: var(--ink-soft); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.studio h2 { font-size: var(--fs-h2); }
.studio-grid video { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--mar-ink); box-shadow: 0 20px 50px -20px rgb(6 31 28 / .55); }
.studio figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .7rem; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--mar); text-align: center; }
.contact .sect-head { margin-inline: auto; }
.contact .actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--mar-ink); padding: 3rem 0 2.5rem; font-size: .88rem; color: rgb(244 239 227 / .72); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1.2rem 2.5rem; justify-content: space-between; align-items: flex-start; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.site-footer a { text-decoration-color: rgb(200 162 75 / .6); text-underline-offset: 4px; }
.footer-brand { display: flex; gap: .8rem; align-items: center; }
.footer-brand img { height: 34px; width: auto; }
.credit { flex-basis: 100%; font-size: .78rem; color: rgb(244 239 227 / .55); }

/* Text pages (privacy, 404) */
.page { padding: 9rem 0 5rem; background: var(--areia); color: var(--ink); min-height: 70vh; }
.page .site-header-spacer { height: 0; }
.page h1 { font-size: var(--fs-h2); }
.page h2 { font-size: 1.4rem; margin-top: 2rem; }
.page .container { max-width: 46rem; }
.page a { color: var(--mar-mid); }
.page-header { background: var(--mar-ink); position: static; }
