/* ArcX Gaming site. Built from the approved "ArcX studio site" canvas, draft 3 (P463): one page. */

@font-face {
  font-family: "Jost";
  src: url(/assets/fonts/Jost-variable.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0b0f14; color: #e6ebf0; font-family: Jost, "Avenir Next", "Helvetica Neue", sans-serif; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: #c7d1db; }
a:hover { color: #ffffff; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.serif { font-family: Georgia, Gelasio, Baskerville, serif; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header */
.site-header { padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.logo-link { display: flex; align-items: center; text-decoration: none; }
.logo-link img { height: clamp(84px, 9vw, 128px); width: auto; display: block; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 32px; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 14px 0; }

/* Statement */
.statement { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 24px; }
.statement h1 { margin: 0; max-width: 1040px; font-size: clamp(44px, 7.4vw, 104px); line-height: 0.98; font-weight: 600; letter-spacing: -0.02em; color: #f4f7fa; }
.statement p { margin: 0; max-width: 720px; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.5; color: #b9c5d0; }

/* Games */
.games { padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.games-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.games-head h2 { margin: 0; font-size: 14px; letter-spacing: 0.38em; text-transform: uppercase; color: #8fa6b8; font-weight: 500; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 48px; height: 48px; border-radius: 999px; border: 1px solid #2f3b49; background: transparent; color: #e6ebf0; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.rail-btn:hover { border-color: #8fa6b8; }

.rail { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) { .rail { scroll-behavior: smooth; } }

.card { flex: 0 0 min(600px, 88%); scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; }
.card--pp { background: #f7f3e7; color: #1e3a40; }
.card--sl { background: #131a24; color: #eeeae1; }
.card .art { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card--sl .art { object-position: 50% 62%; }
.card .body { padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.card .name-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card .pp-wordmark { width: min(100%, 300px); height: auto; display: block; }
.card .sl-wordmark { font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #d8e6a9; }
.platform { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; border: 1px solid; border-radius: 999px; padding: 6px 12px; }
.card--pp .platform { color: #1e3a40; border-color: #b8ae94; }
.card--sl .platform { color: #eeeae1; border-color: #3a4656; }
.card .line { margin: 0; font-size: 19px; line-height: 1.5; }
.card--pp .line { color: #1e3a40; }
.card--sl .line { color: #eeeae1; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }

.explore { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer; font-family: inherit; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; }
.card--pp .explore { background: #23606a; color: #ffffff; }
.card--pp .explore:hover { background: #356d76; }
.card--sl .explore { background: #d8e6a9; color: #131a24; }
.card--sl .explore:hover { background: #eef5d6; }

/* App Store badge (Apple's artwork, unmodified) */
.badge-link { display: inline-block; }
.badge-link img { height: 48px; width: auto; display: block; }

/* Game panels */
.panel { border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; scroll-margin-top: 16px; }
.panel--pp { background: #f7f3e7; color: #1e3a40; }
.panel--sl { background: #131a24; color: #eeeae1; }
.panel .intro { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.panel .title { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel .kicker { margin: 0; font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; }
.panel h3 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; }
.panel .copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 16px; font-size: 19px; line-height: 1.65; }
.panel .copy p { margin: 0; }
.panel--pp .kicker { color: #56666a; }
.panel--pp h3 { font-weight: 400; color: #1e3a40; }
.panel--pp .copy { color: #2c4549; }
.panel--sl .kicker { color: #a9b8a0; }
.panel--sl h3 { font-weight: 500; color: #f2efe8; }
.panel--sl .copy { color: #cfd2ca; }

.pp-shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pp-shots img { width: 100%; height: auto; border-radius: 16px; display: block; }
.sl-shots { display: flex; flex-wrap: wrap; gap: 16px; }
.sl-shots img { flex: 1 1 140px; max-width: 260px; min-width: 0; height: auto; border-radius: 20px; display: block; }

.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; border-top: 1px solid; padding-top: 20px; font-size: 15px; }
.panel-foot a:not(.badge-link) { padding: 12px 0; }
.panel--pp .panel-foot { border-color: #d9d2bd; }
.panel--pp .panel-foot a { color: #23606a; }
.panel--pp .panel-foot a:hover { color: #1e3a40; }
.panel--sl .panel-foot { border-color: #253040; }
.panel--sl .panel-foot a { color: #d8e6a9; }
.panel--sl .panel-foot a:hover { color: #ffffff; }

/* Footer */
.site-footer { background: #0b0f14; border-top: 1px solid #1a2330; color: #c7d1db; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 32px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.footer-row img { height: 96px; width: auto; display: block; }
.contact a, .contact noscript p { display: inline-block; font-size: 16px; padding: 12px 0; margin: 0; }
.legal { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #8fa6b8; }

/* 404 and the old-address forwarders */
.notfound { padding-top: 120px; padding-bottom: 160px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.notfound h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; font-weight: 600; color: #f4f7fa; }
.notfound p { margin: 0; font-size: 19px; color: #b9c5d0; }
a.pill { display: inline-flex; align-items: center; min-height: 52px; padding: 0 28px; border-radius: 999px; text-decoration: none; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; background: #e6ebf0; color: #0b0f14; }
a.pill:hover { background: #ffffff; color: #0b0f14; }

/* Narrow screens: the frame's 32 px gutters, trimmed so 360 px still has room */
@media (max-width: 480px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .card .body { padding: 24px 24px 26px; }
  /* STONELIGHT at 38 px (about 250 px with its letter spacing) would be clipped by an 88% card at 360 px. */
  .card .sl-wordmark { font-size: clamp(28px, 9vw, 38px); }
}
