/* Letter Legends press kit: the site's sky, Ringold Soft headings, Nunito body, the game's soft bevel buttons. */
@font-face { font-family: 'Ringold'; src: url('../assets/fonts/Ringold-Soft.woff') format('woff'); font-weight: 400; font-display: swap; }
:root {
  --sky: #1792FC; --sky-2: #2EA4FD; --sky-deep: #0C6FD8; --ink: #14123A; --ink-2: #4A4870; --paper: #fff; --mist: #F2F7FF; --line: #DCE7F7;
  --head: 'Ringold', 'Anton', Impact, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gut: clamp(16px, 3.4vw, 40px); --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: linear-gradient(180deg, var(--sky) 0, var(--sky-2) 520px, var(--sky) 1200px) var(--sky); color: var(--paper); font: 700 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--paper); color: var(--ink); font-weight: 900; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid #FFC63B; outline-offset: 3px; border-radius: 8px; }

/* ── top bar ── */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gut);
  background: rgba(12,111,216,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(5,40,110,.25); }
.bar__home img { width: 116px; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.bar__home:hover img { transform: scale(1.05) rotate(-2deg); }
.bar__nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.bar__nav::-webkit-scrollbar { display: none; }
.bar__nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; font: 900 14px/1 var(--body); white-space: nowrap; opacity: .92; }
.bar__nav a:hover { background: rgba(255,255,255,.16); opacity: 1; }

/* ── hero ── */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 90px) var(--gut) clamp(36px, 5vw, 60px); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__logo { width: min(460px, 82vw); filter: drop-shadow(0 14px 22px rgba(10,50,140,.3)); }
.hero__h { margin-top: 10px; font: 400 clamp(46px, 7vw, 92px)/.95 var(--head); text-transform: uppercase; text-shadow: 0 5px 0 rgba(10,60,140,.25); }
.hero__lede { max-width: 30em; margin-top: 14px; font-size: clamp(17px, 1.6vw, 21px); opacity: .95; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__logo { animation: pop .9s cubic-bezier(.3,1.5,.5,1) both; }
  .hero__h, .hero__lede, .hero__cta { animation: rise .8s cubic-bezier(.2,.9,.25,1) both; }
  .hero__h { animation-delay: .12s; } .hero__lede { animation-delay: .22s; } .hero__cta { animation-delay: .32s; }
}
@keyframes pop { from { opacity: 0; transform: scale(.7) translateY(24px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ── buttons: the game's soft bevel (split face, shine, chunky lip, white ring) ── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 12px 26px 16px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 900 17px/1.1 var(--body); color: var(--label); text-shadow: none;
  background: linear-gradient(180deg, var(--top) 0 50%, var(--bot) 50% 100%);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -7px 0 var(--lip), 0 0 0 4px #fff, 0 2px 0 4px rgba(20,40,90,.35), 0 12px 22px rgba(5,40,110,.32);
  transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .18s; }
.btn small { font-weight: 800; font-size: 13px; opacity: .9; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 3px 0 rgba(255,255,255,.55), inset 0 -3px 0 var(--lip), 0 0 0 4px #fff, 0 1px 0 4px rgba(20,40,90,.35), 0 6px 12px rgba(5,40,110,.3); }
/* label = a darker shade of the button's darkest colour (its lip) */
.btn--green { --top: #6FD43A; --bot: #52BE2A; --lip: #3F8E1D; --label: #245510; }
.btn--orange { --top: #FCD766; --bot: #F5B73D; --lip: #C8782A; --label: #7A4310; }

/* ── cards ── */
.card { max-width: var(--max); margin: 0 auto 28px; padding: clamp(24px, 4vw, 48px); border-radius: 32px; background: var(--paper); color: var(--ink);
  box-shadow: 0 -2px 0 rgba(255,255,255,.6) inset, 0 18px 50px rgba(8,50,120,.22); }
@media (max-width: 1140px) { .card { margin-left: var(--gut); margin-right: var(--gut); } }
/* in-view fade: JS adds .fx (so no-JS shows everything), then .is-in as each card scrolls in */
@media (prefers-reduced-motion: no-preference) {
  .fx .card { opacity: 0; transform: translateY(34px); transition: opacity .7s cubic-bezier(.2,.9,.25,1), transform .8s cubic-bezier(.2,.9,.25,1); }
  .fx .card.is-in { opacity: 1; transform: none; }
}
.h2 { margin-bottom: 18px; font: 400 clamp(32px, 4vw, 50px)/1 var(--head); text-transform: uppercase; color: var(--sky-deep); }
.h3 { margin: 30px 0 12px; font: 900 20px/1.2 var(--body); }
.sub { margin: -6px 0 20px; color: var(--ink-2); }
.card a:not(.btn):not(.tile):not(.studio) { color: var(--sky-deep); }

/* fact sheet */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; }
.facts > div { padding: 14px 0; border-top: 2px solid var(--line); }
.facts dt { font: 900 12px/1.2 var(--body); text-transform: uppercase; letter-spacing: .09em; color: var(--ink-2); }
.facts dd { margin-top: 4px; font-weight: 800; }
@media (max-width: 720px) { .facts { grid-template-columns: 1fr; } }

/* descriptions */
.copyblock { padding: 20px 22px; border-radius: 20px; background: var(--mist); box-shadow: inset 0 0 0 2px var(--line); }
.copyblock + .copyblock { margin-top: 16px; }
.copyblock__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.copyblock h3 { font: 900 17px/1.2 var(--body); }
.copyblock h3 small { font-weight: 700; color: var(--ink-2); }
.copyblock p { font-weight: 700; }
.copyblock p + p { margin-top: 12px; }
.copy { flex: none; padding: 7px 14px 9px; border: 0; border-radius: 999px; cursor: pointer; font: 900 14px/1 var(--body); color: #0B3378;
  background: linear-gradient(180deg, #4A9BFF 0 50%, #2E86F5 50%); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -4px 0 #1553C5, 0 4px 10px rgba(21,83,197,.3);
  transition: transform .15s cubic-bezier(.3,1.6,.5,1); }
.copy:hover { transform: translateY(-1px); }
.copy:active { transform: translateY(2px); }
.copy.is-done { color: #245510; background: linear-gradient(180deg, #6FD43A 0 50%, #52BE2A 50%); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -4px 0 #3F8E1D, 0 4px 10px rgba(63,142,29,.3); }
.feats { padding-left: 1.2em; display: grid; gap: 8px; }
.feats li::marker { color: var(--sky); }
.feats b { font-weight: 900; }

/* trailer */
.trailer { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.trailer video { width: 100%; aspect-ratio: 886 / 1920; border-radius: 26px; background: #0B0B10; box-shadow: 0 0 0 8px #0B0B10, 0 20px 40px rgba(10,40,110,.3); }
.trailer__side { display: grid; gap: 18px; justify-items: start; }
.note { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .trailer { grid-template-columns: 1fr; justify-items: center; } .trailer video { max-width: 280px; } .trailer__side { justify-items: center; text-align: center; } }

/* download grids */
.grid { display: grid; gap: 16px; }
/* seven screenshots: one row of seven on wide screens, a swipeable strip below that (never an orphan row) */
.grid--shots { grid-template-columns: repeat(7, 1fr); gap: 12px; }
@media (max-width: 900px) {
  .grid--shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 38%); overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * clamp(24px, 4vw, 48px)); padding: 4px clamp(24px, 4vw, 48px) 14px; scroll-padding: 0 clamp(24px, 4vw, 48px); }
  .grid--shots .tile { scroll-snap-align: start; }
}
.grid--art { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 560px) { .grid--art { grid-template-columns: 1fr 1fr; gap: 10px; } }
.tile { display: grid; gap: 10px; padding: 10px; border-radius: 20px; text-decoration: none; background: var(--mist); box-shadow: inset 0 0 0 2px var(--line);
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px #9CC6F5, 0 14px 26px rgba(10,60,150,.16); }
.tile img { width: 100%; border-radius: 12px; }
.tile span { font: 900 14px/1.25 var(--body); color: var(--ink); text-align: center; }
.tile span small { display: block; font-weight: 700; color: var(--ink-2); }
.tile--art img { aspect-ratio: 1; object-fit: contain; padding: 10px; border-radius: 12px;
  background: conic-gradient(#EEF3FB 25%, #fff 0 50%, #EEF3FB 0 75%, #fff 0) 0 0 / 22px 22px; }
/* GlitchYard's brand violet (glitchyard.co --violet) behind the studio logo */
.tile--dark img { background: #5B2BD6; }
.tile--wide { grid-column: span 2; }
.tile--wide img { aspect-ratio: 2.1; }
@media (max-width: 560px) { .tile--wide img { aspect-ratio: 2.1; } }

/* studio + contact */
.card--split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.card--split p + p { margin-top: 12px; }
.studio { display: inline-block; margin-top: 18px; padding: 14px 18px; border-radius: 18px; background: #5B2BD6; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.studio:hover { transform: translateY(-3px); }
.studio img { height: 44px; width: auto; }
@media (max-width: 720px) { .card--split { grid-template-columns: 1fr; } }

/* footer */
.foot { margin-top: 40px; padding: 0 var(--gut) 28px; text-align: center; }
.foot__crew { width: min(640px, 88vw); margin: 0 auto; filter: drop-shadow(0 10px 14px rgba(10,50,130,.3)); }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin: 18px 0 10px; }
.foot__links a { padding: 6px 10px; border-radius: 8px; text-decoration: none; font-weight: 800; font-size: 14px; opacity: .92; }
.foot__links a:hover { background: rgba(255,255,255,.15); opacity: 1; }
.foot p { font-size: 13px; opacity: .8; }

@media (max-width: 560px) {
  .bar { flex-wrap: wrap; justify-content: center; padding-bottom: 6px; }
  .bar__home img { width: 96px; }
  .bar__nav { width: 100%; justify-content: center; }
  .bar__nav a { padding: 7px 9px; font-size: 13px; }
  html { scroll-padding-top: 110px; }
  .btn { white-space: normal; text-align: center; }
}
