/* byloot.us, GUIDE-1000 mockup. One file, system fonts, no JavaScript.
   The page itself is ink on paper (light) or paper on night (dark); the only colors are the
   games' worlds, each in its band, as drawn for its App Store listing. */

:root {
  color-scheme: light dark;
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #1b1a17;
  --ink-2: #5d584f;
  --line: #d9d0bf;
  --link: #1b1a17;
  --badge: url(img/site/app-store-black.svg);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --rounded: ui-rounded, "SF Pro Rounded", var(--sans);
  --pad: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e0f12;
    --paper-2: #17191e;
    --ink: #eeeae2;
    --ink-2: #a19c92;
    --line: #2a2d34;
    --link: #eeeae2;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.45 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.logo span { color: var(--ink-2); font-weight: 600; }
.bar nav { display: flex; gap: 18px; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--ink-2); padding: 12px 0; }

/* Home: the apps first (owner's pick C, #220), then the company in one sentence */
.mosaic { list-style: none; margin: 0; padding: 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mosaic a { display: block; height: 100%; border-radius: 12px; overflow: hidden; }
.mosaic img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.mosaic li:first-child { grid-column: 1 / -1; }
.mosaic li:first-child img { aspect-ratio: 3 / 2; }
.mosaic li:nth-child(n+4) { display: none; }
.m-acnh img { object-position: 22% 50%; }
.m-terraria img { object-position: 30% 50%; }
.m-hytale img { object-position: 30% 50%; }
.m-gta6 img { object-position: 55% 50%; }
.m-cinefield a { background: radial-gradient(circle at 50% 45%, #3b1f6e, #120b24 75%); display: grid; place-items: center; }
.m-cinefield img { width: 46%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 0 50px rgba(120,200,255,.35); }
.lead .wrap { padding-block: 22px 8px; }
.lead h1 { font-size: 38px; line-height: 1.04; letter-spacing: -.035em; margin: 0 0 10px; font-weight: 800; }
.lead p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 32em; }

/* The company, as a card, before the footer */
.company { padding-block: 56px 32px; }
.company h2 { font-size: 34px; letter-spacing: -.04em; margin: 0 0 14px; font-weight: 800; }
.company dl { margin: 0; border-top: 1px solid var(--line); }
.company dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.company dt { color: var(--ink-2); }
.company dd { margin: 0; font-weight: 600; }

/* One band per game, in the colors of its listing */
.game { color: #fff; position: relative; overflow: hidden; }
.game .art { margin: 0; }
.game .art img { width: 100%; }
.game .text { padding: 22px var(--pad) 30px; }
.game h2 { margin: 0 0 4px; font-size: 30px; line-height: 1.05; letter-spacing: -.02em; }
.game h2 a { color: inherit; text-decoration: none; }
.game .sub { margin: 0 0 12px; opacity: .78; font-size: 16px; }
.game .promo { margin: 0 0 18px; font-size: 18px; line-height: 1.4; max-width: 34em; }
.game .head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.game .head img { width: 56px; border-radius: 13px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.price { font-size: 14px; opacity: .8; margin: 10px 0 0; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.store { display: inline-block; width: 150px; height: 50px; background: url(img/site/app-store-black.svg) center/contain no-repeat; }
.store.on-dark { background-image: url(img/site/app-store-white.svg); }
.more { font-weight: 600; font-size: 16px; color: inherit; text-underline-offset: 4px; padding: 12px 0; }

.ocarina { background: linear-gradient(160deg, #1d4136, #1b2d48); }
.ocarina h2, .ocarina .figure { font-family: var(--serif); color: #e2c172; font-weight: 600; }
.acnh { background: #f2ead7; color: #2e2a22; }
.acnh .art { background: linear-gradient(#5a86d6, #7fb6e6); }
.acnh h2 { font-family: var(--rounded); font-weight: 800; color: #2f7a52; }
.terraria { background: #151a3b; }
.terraria h2 { color: #f2b37c; }
.terraria .tag { display: inline-block; background: #f2b37c; color: #151a3b; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 6px; margin-bottom: 10px; }
.hytale { background: linear-gradient(170deg, #101a36, #1b2440); }
.hytale h2 { font-family: var(--serif); color: #7fdcf5; font-weight: 600; }
.resonance { background: linear-gradient(175deg, #16324a, #0c1221 70%); }
.resonance h2 { font-family: var(--serif); color: #7bc8f2; font-weight: 600; }
.gta6 { background: linear-gradient(165deg, #2b1d5c, #1a2d4c 72%); }
.gta6 h2 { color: #ffe07d; font-weight: 800; letter-spacing: -.01em; }

/* Compositions differ from band to band (owner: "ni générique ni template") */
.acnh { display: flex; flex-direction: column-reverse; }            /* words first, the island after */
.terraria .art { margin: 0 0 0 12%; }                               /* the night runs off the right edge */
.terraria .art img { border-radius: 18px 0 0 18px; }
.hytale .art { padding: 18px var(--pad) 0; }                        /* a framed tome */
.hytale .art img { border-radius: 16px; outline: 1px solid rgba(127,220,245,.35); }
.resonance .art img { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); } /* the sky fades into the night */
.gta6 .art { padding: 18px var(--pad) 0; }                          /* Direction I: a bordered postcard */
.gta6 .art img { border-radius: 12px; border: 4px solid #f7f1ea; box-shadow: 0 10px 28px rgba(10,6,28,.45); }

/* Guides on their way: two small windows into their worlds, a name, no date */
.soon { padding-block: 28px 40px; }
.soon h2, .help h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin: 0 0 14px; font-weight: 700; }
.soon ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.soon li { border-radius: 16px; overflow: hidden; color: #fff; display: flex; flex-direction: column; }
.soon img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.soon .gta6 { background: #261b52; }
.soon .gta6 img { object-position: 55% 50%; }
.soon p { margin: 0; padding: 10px 12px 12px; font-size: 14px; line-height: 1.3; }
.soon strong { display: block; }
.soon span { opacity: .75; }

/* A family of apps: a quiet title between the bands */
.family { padding-block: 44px 18px; }
.family h2 { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; }
.family h2 span { display: block; margin-top: 4px; font-size: 17px; letter-spacing: 0; color: var(--ink-2); font-weight: 600; }
.family p { margin: 6px 0 0; color: var(--ink-2); }

/* Cinefield has no listing art yet: its icon in the dark of a theatre, and its one idea as the figure */
.cinefield { background: radial-gradient(120% 90% at 30% 20%, #3b1f6e, #120b24 70%); }
.cinefield .art { display: flex; align-items: center; gap: 22px; padding: 34px var(--pad) 0; }
.cinefield .art img { width: 112px; border-radius: 26px; box-shadow: 0 0 60px rgba(120, 200, 255, .35), 0 10px 30px rgba(0,0,0,.5); }
.cinefield .figure { margin: 0; font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1; background: linear-gradient(90deg, #8fe3ff, #e59bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cinefield .figure span { font-weight: 400; }
.cinefield h2 { color: #fff; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 15px; color: var(--ink-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 18px; }
footer nav a { color: var(--ink); font-weight: 600; padding: 6px 0; }
footer p { margin: 0 0 10px; max-width: 46em; }

/* App page */
/* Each app page wears its listing's colors: the body class sets them */
.app-ocarina { --hero-bg: linear-gradient(160deg, #1d4136, #1b2d48); --hero-fg: #fff; --title: #e2c172; --title-font: var(--serif); --title-weight: 600; --big: #a9822f; --big-dark: #e2c172; }
.app-acnh { --hero-bg: #f2ead7; --hero-fg: #2e2a22; --title: #2f7a52; --title-font: var(--rounded); --title-weight: 800; --big: #2f7a52; --big-dark: #7fd19f; }
.app-hytale { --hero-bg: linear-gradient(170deg, #101a36, #1b2440); --hero-fg: #fff; --title: #7fdcf5; --title-font: var(--serif); --title-weight: 600; --big: #1f7fa0; --big-dark: #7fdcf5; }
.app-resonance { --hero-bg: linear-gradient(175deg, #16324a, #0c1221 70%); --hero-fg: #fff; --title: #7bc8f2; --title-font: var(--serif); --title-weight: 600; --big: #1d62a6; --big-dark: #7bc8f2; }
.app-terraria { --hero-bg: #151a3b; --hero-fg: #fff; --title: #f2b37c; --title-font: var(--sans); --title-weight: 800; --big: #c86a2a; --big-dark: #f2b37c; }
.app-gta6 { --hero-bg: linear-gradient(165deg, #2b1d5c, #1a2d4c 72%); --hero-fg: #fff; --title: #ffe07d; --title-font: var(--sans); --title-weight: 800; --big: #c91e65; --big-dark: #ff7eb3; }
.app-hero { background: var(--hero-bg); color: var(--hero-fg); }
.app-hero .art { margin: 0; }
.app-hero .id { display: flex; gap: 16px; align-items: center; padding: 22px var(--pad) 8px; }
.app-hero .id img { width: 76px; border-radius: 17px; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.app-hero h1 { font-family: var(--title-font); font-weight: var(--title-weight); color: var(--title); font-size: 30px; line-height: 1.05; margin: 0 0 4px; letter-spacing: -.01em; }
.app-hero .id p { margin: 0; opacity: .8; font-size: 16px; }
.app-hero .cta { padding: 10px var(--pad) 28px; }
.app-hero .price { flex-basis: 100%; margin: 0; }

.figures { padding-block: 34px 10px; }
.figures .big { font-family: var(--title-font); font-size: 112px; line-height: .9; font-weight: var(--title-weight); letter-spacing: -.03em; margin: 0; color: var(--big); }
.figures .big + p { font-size: 22px; line-height: 1.25; margin: 6px 0 24px; font-weight: 600; letter-spacing: -.01em; }
.figures ul { list-style: none; padding: 0; margin: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.figures li { font-size: 14px; color: var(--ink-2); line-height: 1.3; }
.figures li b { display: block; font-family: var(--title-font); font-size: 34px; font-weight: var(--title-weight); color: var(--ink); line-height: 1.1; }
@media (prefers-color-scheme: dark) { .figures .big { color: var(--big-dark); } }

.shots { padding: 26px 0 8px; }
.shots ol { list-style: none; margin: 0; padding: 0 var(--pad); display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); }
.shots li { flex: 0 0 62%; scroll-snap-align: start; }
.shots img { border-radius: 18px; width: 100%; aspect-ratio: 1320 / 2868; background: var(--paper-2); }
.shots p { margin: 8px 2px 0; font-size: 14px; color: var(--ink-2); }

.does { padding: 30px 0 6px; }
.does h2 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 18px; line-height: 1.1; }
.does section { border-top: 1px solid var(--line); padding: 16px 0 6px; }
.does h3 { font-size: 18px; margin: 0 0 6px; }
.does ul { margin: 0 0 10px; padding-left: 20px; }
.does li { margin-bottom: 6px; }
.does p { margin: 0 0 10px; }

.buy { margin: 22px 0 6px; padding: 20px; border-radius: 20px; background: var(--paper-2); }
.buy h2 { margin: 0 0 6px; font-size: 20px; }
.buy p { margin: 0 0 14px; }
.buy .store { vertical-align: middle; }
@media (prefers-color-scheme: dark) { .buy .store { background-image: url(img/site/app-store-white.svg); } }

.help { padding-block: 26px 10px; }
.help ul { list-style: none; padding: 0; margin: 0; }
.help li a { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.help li a::after { content: "›"; color: var(--ink-2); }
.legal { font-size: 14px; color: var(--ink-2); margin: 18px 0 30px; }

/* Wider screens: same content, two columns */
@media (min-width: 820px) {
  :root { --pad: 40px; --edge: max(var(--pad), calc((100vw - 1200px) / 2 + var(--pad))); }
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; padding: 0 var(--pad); max-width: 1280px; margin: 0 auto; gap: 10px; }
  .mosaic img { aspect-ratio: auto; }
  .mosaic li:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
  .mosaic li:nth-child(n+4) { display: block; }
  .mosaic li:last-child:nth-child(4) { grid-column: 3 / 5; }
  .mosaic li:last-child:nth-child(6) { grid-column: 1 / -1; }
  .mosaic li:nth-child(6):nth-last-child(2) { grid-column: 1 / 3; }
  .mosaic li:last-child:nth-child(7) { grid-column: 3 / 5; }
  .m-cinefield img { width: 44%; height: auto; }
  .lead .wrap { padding-block: 44px 10px; }
  .lead h1 { font-size: 72px; max-width: 12em; }
  .company dl { max-width: 760px; }
  .game { display: grid; grid-template-columns: 1fr calc(400px + var(--edge)); align-items: center; }
  .game .text { padding: 40px var(--edge) 40px var(--pad); }
  .game.flip .text { padding: 40px var(--pad) 40px var(--edge); }
  .game h2 { font-size: 40px; }
  .game.flip { grid-template-columns: calc(400px + var(--edge)) 1fr; }
  .game.flip .text { order: -1; }
  .terraria .art { margin: 30px 0; }
  .hytale .art { padding: 30px var(--pad); }
  .gta6 .art { padding: 30px var(--pad); }
  .soon ul { max-width: 760px; }
  .soon img { aspect-ratio: 3 / 2; }
  .family { padding-block: 72px 26px; }
  .family h2 { font-size: 40px; }
  .cinefield .art { padding: 50px var(--pad); justify-content: center; gap: 40px; }
  .cinefield .art img { width: 200px; border-radius: 46px; }
  .cinefield .figure { font-size: 110px; }
  .app-hero { display: grid; grid-template-columns: 1fr; }
  .app-hero .inner { max-width: 1200px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .app-hero .id { padding: 26px var(--pad) 30px; }
  .app-hero .cta { padding: 26px var(--pad) 30px; justify-content: flex-end; }
  .app-hero .price { text-align: right; }
  .app-hero h1 { font-size: 40px; }
  .figures { display: grid; grid-template-columns: auto 1fr; gap: 0 40px; align-items: end; padding-top: 56px; }
  .figures .big { font-size: 180px; grid-row: span 2; }
  .figures ul { grid-column: 1 / -1; margin-top: 30px; }
  .figures .big + p { font-size: 30px; margin: 0; align-self: end; }
  .shots li { flex: 0 0 240px; }
  .shots ol { --edge: max(var(--pad), calc((100vw - 1200px) / 2 + var(--pad))); padding: 0 var(--edge); scroll-padding: 0 var(--edge); }
  .cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
  .buy { position: sticky; top: 20px; margin-top: 30px; }
}
@media (min-width: 820px) and (max-width: 1100px) {
  .game, .game.flip { grid-template-columns: 1fr; }
  .game.flip .text { order: 0; }
}

/* Text pages: Support, Privacy, Terms */
.doc { max-width: 760px; padding-block: 24px 40px; }
.doc h1 { font-size: 40px; letter-spacing: -.035em; line-height: 1.05; margin: 0 0 8px; }
.doc .updated { color: var(--ink-2); margin: 0 0 28px; }
.doc section { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.doc h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 10px; }
.doc h3 { font-size: 17px; margin: 18px 0 4px; }
.doc p, .doc li { margin: 0 0 10px; }
.doc .links { color: var(--ink-2); }
