/* ==========================================================================
   Game Provider — provider.games
   Single-page brochure site. No dependencies, no external requests.
   Tokens and rationale: see DESIGN.md
   ========================================================================== */

:root {
  --ink:          #0A0B0D;
  --ink-raised:   #101215;
  --ink-sunken:   #07080A;

  --line:         rgba(233, 229, 220, .10);
  --line-strong:  rgba(233, 229, 220, .22);

  --text:         #E9E5DC;
  --text-dim:     #9A968D;
  --text-faint:   #6B6862;

  --brass:        #C8A45C;
  --brass-soft:   #E0C48D;

  --wrap:         min(1180px, 100% - 48px);
  --pad-y:        clamp(72px, 10vw, 132px);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* fine grain over the whole page — the one detail that keeps flat dark UI
   from reading as synthetic */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3 { margin: 0; font-weight: 500; }

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 24px;
  top: 14px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink-raised);
  border: 1px solid var(--line-strong);
  font-size: 14px;
  text-decoration: none;
}

/* --- shared type -------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.eyebrow .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 13, .82);
  backdrop-filter: saturate(140%) blur(14px);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.lockup-mark { flex: none; }

.lockup-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
}

.nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--brass);
}

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

.hero { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}

h1 {
  margin-block: 22px 26px;
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.038em;
}

.lead {
  max-width: 46ch;
  font-size: 1.0625rem;
  color: var(--text-dim);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--brass);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass-soft);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}

.btn:hover {
  background: var(--brass);
  border-color: var(--brass);
  color: #14100A;
}

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: .01em;
  font-weight: 500;
  font-size: 13px;
}

.btn-quiet:hover {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.hero-mark {
  justify-self: end;
  width: min(340px, 100%);
  opacity: .92;
}

/* --- facts strip -------------------------------------------------------- */

.facts {
  border-block: 1px solid var(--line);
  background: var(--ink-sunken);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact {
  padding: clamp(26px, 3.4vw, 40px) 0 clamp(26px, 3.4vw, 40px) clamp(16px, 2.6vw, 34px);
  border-left: 1px solid var(--line);
}

.fact:first-child {
  border-left: 0;
  padding-left: 0;
}

.fact-n {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.fact-l {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

.section {
  padding-block: var(--pad-y);
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 74px;
}

.sec-head .eyebrow { margin-bottom: 20px; }

.sec-note {
  margin-top: 18px;
  max-width: 52ch;
  font-size: .9375rem;
  color: var(--text-dim);
}

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

.games {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 26px);
  margin: clamp(38px, 5vw, 58px) 0 0;
  padding: 0;
  list-style: none;
}

.game {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--ink-raised);
  overflow: hidden;
  transition: border-color .22s ease, transform .22s ease;
}

.game:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.game-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

/* body grows so the status line sits on a shared baseline across the row */
.game-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 24px;
}

.game h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.012em;
}

.game-meta {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  color: var(--brass);
}

.game-desc {
  margin: 14px 0 18px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* release status — hairline-separated so it reads as metadata, not a badge */
.game-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.game-status .pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
  flex: none;
  opacity: .85;
}

/* --- studio ------------------------------------------------------------- */

.studio-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 6vw, 92px);
}

.studio-copy {
  display: grid;
  gap: 22px;
  max-width: 60ch;
  color: var(--text-dim);
}

.points {
  display: grid;
  gap: 0;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.points li {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.points h3 {
  font-size: .9375rem;
  letter-spacing: -0.005em;
  color: var(--text);
}

.points p {
  margin-top: 7px;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-faint);
}

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

.contact { border-bottom: 0; }

.contact-inner { max-width: 62ch; }

.contact-inner .eyebrow { margin-bottom: 20px; }

.contact-note {
  margin-top: 18px;
  color: var(--text-dim);
}

.contact-mail {
  margin-top: 34px;
  font-size: clamp(1.4rem, 3.6vw, 2.2rem);
  letter-spacing: -0.025em;
}

.contact-mail a {
  color: var(--brass-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
}

.contact-mail a:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

.contact-sub {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--ink-sunken);
  padding-block: 40px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 32px;
}

.foot-meta {
  font-size: 11px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

@media (max-width: 1000px) {
  .games { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark {
    justify-self: start;
    width: min(220px, 46%);
    order: -1;
    margin-bottom: 8px;
  }
  .studio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --wrap: min(1180px, 100% - 40px); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact {
    padding: 26px 0 26px 22px;
    border-top: 1px solid var(--line);
  }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .nav { gap: 18px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .games { grid-template-columns: 1fr; }
  .head-inner { height: 64px; }
  .section { scroll-margin-top: 64px; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* the wordmark folds away before the nav does */
@media (max-width: 520px) {
  .site-head .lockup-text { display: none; }
  .nav { gap: 16px; }
  .nav a { letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
