* { box-sizing: border-box; }

:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292929;
  background: #f6f5ef;
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
}

body { position: relative; margin: 0; min-width: 240px; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22180%22%20height%3D%22180%22%20viewBox%3D%220%200%20180%20180%22%3E%3Cfilter%20id%3D%22grain%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.82%22%20numOctaves%3D%223%22%20stitchTiles%3D%22stitch%22%2F%3E%3CfeColorMatrix%20type%3D%22saturate%22%20values%3D%220%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url%28%23grain%29%22%20opacity%3D%22.65%22%2F%3E%3C%2Fsvg%3E");
  background-size: 180px 180px;
}

button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid #a84432; outline-offset: 5px; }
p { margin: 0; }

main {
  position: relative;
  z-index: 1;
  width: min(1420px, 70vw);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 80px 40px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: min(7.7vw, 158px);
  align-items: center;
}

.info { min-width: 0; padding-left: min(5.4vw, 110px); }
h1 { font-size: clamp(28px, 1.76vw, 36px); line-height: 1.15; font-weight: 650; letter-spacing: -.9px; margin: 0 0 26px; }
.description { font-size: clamp(20px, 1.3vw, 27px); line-height: 1.45; max-width: 410px; }
.compatibility { font-size: clamp(14px, .98vw, 20px); line-height: 1.5; color: #606060; margin-top: 14px; }
.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  max-width: 100%;
  margin-top: 34px;
  padding: 14px 23px;
  border-radius: 6px;
  background: #a84432;
  color: white;
  font-size: clamp(14px, .96vw, 20px);
  font-weight: 550;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
}
.download:hover { background: #8c3729; }
.alternate-download { margin-top: 14px; font-size: clamp(13px, .9vw, 18px); line-height: 1.5; }
.version { margin-top: 16px; color: #626262; font-size: clamp(12px, .83vw, 17px); line-height: 1.5; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 26px; font-size: clamp(13px, .9vw, 18px); }
nav button, .text-link { background: none; border: none; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; line-height: 1.5; }
.text-link { font-size: inherit; }

figure { min-width: 0; margin: 0; width: 100%; }
.screenshot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: clamp(8px, .65vw, 13px);
  background: #f8f7f4;
  box-shadow: 0 24px 38px -10px #29271f59, 0 0 0 1px #39362c26;
  cursor: zoom-in;
}
.app-window { display: block; width: 100%; aspect-ratio: 26 / 29; overflow: hidden; border-radius: inherit; }
.app-window img { display: block; width: 100%; height: auto; }

.character { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.character img { position: absolute; width: min(1130px, 55.2vw); height: auto; left: calc(50% - min(1000px, 48.8vw)); top: calc(50% - min(604px, 29.5vw)); opacity: .115; filter: grayscale(.7); }

dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #c9c9c9; border-radius: 10px; background: #f6f5ef; color: #292929; box-shadow: 0 20px 70px #0003; }
dialog::backdrop { background: #29271f73; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid #dedede; position: sticky; z-index: 1; top: 0; background: #f6f5ef; }
h2 { font-size: 16px; font-weight: 600; margin: 0; }
.dialog-header button { min-height: 44px; padding: 6px 12px; border: 1px solid #c9c9c9; border-radius: 5px; color: inherit; background: white; font-size: 13px; }
.dialog-content { padding: 4px 20px 24px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
h3 { font-size: 14px; margin: 18px 0 6px; }
.image-dialog { width: min(760px, calc(100vw - 32px)); }
.image-dialog-content { padding: 16px; }
.image-dialog .app-window { width: min(100%, calc((100dvh - 140px) * .896552)); margin-inline: auto; border-radius: 8px; box-shadow: 0 0 0 1px #39362c26; }

@media (max-width: 1000px) {
  main { width: min(100%, 520px); min-height: 100svh; padding: 64px 32px 48px; grid-template-columns: minmax(0, 1fr); gap: 40px; align-content: center; }
  .info { padding: 0; }
  h1 { font-size: 30px; margin-bottom: 20px; }
  .description { font-size: 22px; max-width: 340px; }
  .compatibility { font-size: 15px; max-width: 340px; margin-top: 10px; }
  .download { margin-top: 28px; padding: 13px 19px; font-size: 15px; }
  .alternate-download { margin-top: 4px; font-size: 14px; }
  .alternate-download a { display: inline-flex; min-height: 44px; align-items: center; }
  .app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
  .version { font-size: 12px; margin: 0; }
  .version button, nav button { min-height: 44px; }
  nav { margin: 0; font-size: 13px; }
  figure { width: min(100%, 360px); justify-self: center; }
  .screenshot { border-radius: 9px; box-shadow: 0 17px 32px -12px #29271f59, 0 0 0 1px #39362c26; }
  .character img { width: 700px; max-width: none; left: calc(50% - 350px); top: -36px; opacity: .095; }
}

@media (max-width: 480px) {
  main { padding: 44px 24px 36px; gap: 28px; align-content: start; }
  h1 { font-size: 28px; margin-bottom: 18px; }
  .description { font-size: 21px; max-width: 300px; }
  .compatibility { font-size: 14px; max-width: 300px; }
  .download { margin-top: 26px; }
  figure { width: min(100%, 300px); }
  .character img { width: 620px; left: calc(50% - 310px); top: -50px; opacity: .09; }
}

@media (max-width: 320px) {
  main { padding-inline: 18px; }
  .download { padding-inline: 13px; font-size: 14px; }
  .description { font-size: 19px; }
}
