@import url("/brand.css");
/* The public homepage has its own palette; app notices retain their styles. */
:root {
  color-scheme: dark;
  --ink: #211e1a;
  --ivory: #eee7d9;
  --muted: #b9b09f;
  --clay: #dc9d7f;
  --ochre: #d7b57a;
  --moss: #b8c2a4;
  --line: #4b443a;
  --sans: "DM Sans", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 5% 5%, #5d423421, transparent 38%),
    radial-gradient(ellipse at 100% 65%, #62664514, transparent 38%),
    var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  content: "";
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 6px; border-radius: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
::selection { color: var(--ink); background: var(--ochre); }
.page-width { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px 18px; background: var(--ochre); color: var(--ink); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; min-height: 84px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 650; }
.wordmark img { flex-shrink: 0; opacity: 0.9; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.site-nav a { padding-block: 12px; color: var(--muted); transition: color 160ms ease; }
.site-nav a:last-child { color: var(--ivory); }
.site-nav a:hover, .footer-links a:hover { color: var(--clay); }
.site-nav span { margin-left: 5px; }
.studio-intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 40px 0 38px; animation: arrive 650ms ease both; }
.eyebrow { color: var(--muted); font-size: 13px; }
.studio-intro .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.studio-spark { color: var(--ochre); font-size: 23px; line-height: 1; }
h1 { font-family: var(--serif); font-size: clamp(38px, 4.8vw, 62px); font-weight: 450; line-height: 1.08; letter-spacing: -0.045em; }
h1 em { color: var(--clay); font-weight: inherit; }
.intro-note { padding-bottom: 5px; padding-right: 14px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.game-spotlight { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; margin-bottom: 24px; border-radius: 24px; background: radial-gradient(ellipse at 10% 10%, #555b3045, transparent 75%), #252d24; animation: arrive 700ms 40ms ease both; }
.spotlight-copy { align-self: center; padding: 32px; }
.spotlight-copy .eyebrow { color: var(--moss); font-size: 12px; }
.spotlight-copy .eyebrow span { padding-inline: 7px; color: #74806c; }
.spotlight-copy h2 { margin: 14px 0 12px; font-family: var(--serif); font-weight: 450; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.035em; }
.spotlight-description { max-width: 420px; color: #c8ccba; font-size: 15px; line-height: 1.65; }
.spotlight-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 22px; }
.spotlight-actions .support-link { gap: 14px; font-size: 13px; }
.spotlight-actions .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; }
.spotlight-art { position: relative; min-height: 310px; }
.spotlight-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.collection {
  position: relative;
  padding: 24px 28px 22px;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 0% 0%, #8c634322, transparent 45%),
    radial-gradient(ellipse at 100% 40%, #456f6229, transparent 65%),
    linear-gradient(145deg, #2d2923, #242922 60%, #242723);
  scroll-margin-top: 24px;
  animation: arrive 800ms 80ms ease both;
}
.collection-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.collection-heading h2 { font-family: var(--serif); font-size: 21px; font-weight: 450; letter-spacing: -0.02em; }
.text-link { color: var(--moss); text-decoration: underline; text-decoration-color: #b8c2a440; text-underline-offset: 4px; transition: color 160ms ease; }
.text-link:hover { color: var(--ivory); text-decoration-color: currentColor; }
.collection-heading .text-link { padding-block: 8px; font-size: 13px; }
.app-wall { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 2%; margin: 0; padding: 0; list-style: none; }
.app-item { flex: 0 0 14%; min-width: 0; }
.app-item[data-scale="large"] { flex-basis: 22%; }
.app-item[data-scale="hero"] { flex-basis: 31%; }
.app-link, .app-piece { display: block; }
.app-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: 0 12px 24px #0e100e40, 0 2px 5px #0e100e30; transition: transform 220ms ease, box-shadow 220ms ease; }
.app-link:hover img { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 17px 28px #0e100e60; }
.app-link:focus-visible { outline-offset: 8px; border-radius: 14px; }
.app-caption { padding-top: 13px; }
.app-caption h3 { font-size: 14px; font-weight: 600; line-height: 1.3; }
.app-caption h3 span { margin-left: 2px; color: var(--muted); font-size: 12px; }
.app-caption p { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.app-item[data-scale="hero"] h3 { font-size: 17px; }
.app-item[data-scale="hero"] .app-caption p { font-size: 14px; }
.collection-footnote { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.studio-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding: 42px 4px; }
.studio-note { scroll-margin-top: 24px; }
.studio-note h2 { margin: 10px 0 14px; font-family: var(--serif); font-size: 30px; font-weight: 450; line-height: 1.15; letter-spacing: -0.035em; }
.studio-note h2 em { color: var(--ochre); font-weight: inherit; }
.studio-note > p:not(.eyebrow) { max-width: 400px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.games-lockup { display: flex; align-items: center; flex-wrap: wrap; width: fit-content; gap: 12px 18px; margin-top: 20px; color: var(--moss); font-size: 12px; }
.games-logo { display: block; width: 136px; flex-shrink: 0; }
.games-logo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.games-wordmark { width: min(100%, 200px); margin-block: 18px; }
.games-wordmark img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.game-byline { display: inline-block; margin-top: 20px; color: var(--moss); font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.help-note { align-self: center; border-left: 1px solid var(--line); padding-left: 44px; }
.help-note h2 { font-family: var(--serif); font-size: 26px; font-weight: 450; letter-spacing: -0.03em; }
.help-note p { margin: 8px 0 16px; color: var(--muted); font-size: 14px; }
.support-link { display: flex; width: fit-content; min-height: 44px; align-items: center; gap: 30px; padding: 10px 17px; color: var(--ink); background: var(--ochre); border-radius: 12px; font-size: 14px; font-weight: 600; transition: background 160ms ease; }
.support-link:hover { background: #e6c78f; }
.help-note > .text-link { display: inline-block; margin-top: 14px; padding-block: 6px; font-size: 12px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { padding-block: 10px; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { min-height: 76px; gap: 16px; }
  .wordmark { font-size: 13px; gap: 8px; }
  .wordmark img { width: 29px; height: 29px; }
  .site-nav { gap: 17px; font-size: 12px; }
  .studio-intro { padding-block: 28px; align-items: start; }
  .intro-note { font-size: 13px; padding: 37px 0 0; }
  .spotlight-copy { padding: 24px; }
  .spotlight-copy .eyebrow { font-size: 11px; }
  .spotlight-copy .eyebrow span { padding-inline: 3px; }
  .spotlight-description { font-size: 14px; }
  .spotlight-art { min-height: 300px; }
  .collection { padding: 20px 18px; border-radius: 20px; }
  .app-wall { justify-content: center; gap: 26px 3%; }
  /* A leading pair, then compact rows of three, retains the icon hierarchy. */
  .app-item { flex-basis: 24%; }
  .app-item[data-scale="large"] { flex-basis: 35%; }
  .app-item[data-scale="hero"] { flex-basis: 45%; }
  .studio-bottom { gap: 32px; padding-block: 32px; }
  .help-note { padding-left: 26px; }
}
@media (max-width: 520px) {
  .page-width { width: calc(100% - 32px); }
  .site-header { padding-top: 14px; padding-bottom: 4px; flex-wrap: wrap; gap: 4px; }
  .wordmark { font-size: 14px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 14px; font-size: 13px; }
  .site-nav a { padding-block: 10px; }
  .studio-intro { display: block; padding-block: 25px 24px; }
  .studio-intro .eyebrow { margin-bottom: 12px; font-size: 12px; }
  h1 { font-size: clamp(30px, 8.5vw, 43px); line-height: 1.1; letter-spacing: -0.045em; }
  .intro-note { padding: 12px 0 0; font-size: 13px; }
  .intro-note br { display: none; }
  .game-spotlight { grid-template-columns: 1fr; border-radius: 17px; margin-bottom: 20px; }
  .spotlight-art { grid-row: 1; min-height: 180px; }
  .spotlight-copy { padding: 21px; }
  .spotlight-copy h2 { font-size: 29px; margin-block: 10px; }
  .spotlight-actions { margin-top: 15px; gap: 5px 16px; }
  .collection { margin-inline: -4px; padding: 16px 12px; border-radius: 17px; }
  .collection-heading { gap: 8px; margin-bottom: 18px; }
  .collection-heading h2 { font-size: 18px; }
  .collection-heading .text-link { font-size: 11px; }
  .app-wall { row-gap: 24px; }
  .app-caption { padding-top: 10px; }
  .app-caption h3, .app-item[data-scale="hero"] h3 { font-size: 12px; line-height: 1.3; }
  .app-caption h3 span { display: none; }
  .app-caption p, .app-item[data-scale="hero"] .app-caption p { font-size: 12px; line-height: 1.4; }
  .collection-footnote { margin-top: 22px; padding-top: 14px; font-size: 11px; }
  .studio-bottom { grid-template-columns: 1fr; gap: 25px; padding: 30px 4px; }
  .studio-note h2 { font-size: 27px; }
  .studio-note h2 br { display: none; }
  .studio-note > p:not(.eyebrow) { font-size: 13px; }
  .games-wordmark { width: min(100%, 168px); }
  .help-note { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .help-note h2 { font-size: 24px; }
  .help-note p { font-size: 13px; }
  .site-footer { padding-block: 14px; font-size: 11px; }
  .footer-links { width: 100%; justify-content: space-between; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
