* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; padding: 48px 24px; background: #680c0d; color: #30231f; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
/* A close crop uses the artwork as a backdrop without repeating its headline. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(66, 5, 8, .25), rgba(66, 5, 8, .55)), url("images/background.png"); background-size: cover, auto max(2400px, 300vh); background-position: center, left 58%; background-repeat: no-repeat; }
main { max-width: 960px; margin: auto; padding: 52px 48px 28px; background-color: #fffcf6; 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%20x%3D%220%22%20y%3D%220%22%20width%3D%22100%25%22%20height%3D%22100%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%22.85%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%20opacity%3D%22.07%22%20filter%3D%22url%28%23grain%29%22%2F%3E%3C%2Fsvg%3E"); border: 1px solid #e8d9b8; border-radius: 24px; box-shadow: 0 24px 80px rgba(30, 0, 0, .3); }
header { text-align: center; }
h1 { margin: 0; }
.title-emblem { display: block; width: min(100%, 440px); height: auto; margin: 0 auto; border-radius: 16px; }
.intro { max-width: 430px; margin: 20px auto 26px; color: #75675d; font-size: 18px; line-height: 1.6; }
.downloads { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.download { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 20px; border-radius: 10px; background: #80232a; color: white; text-decoration: none; text-align: left; }
button { font: inherit; border: 0; cursor: pointer; }
.download:hover { background: #661a20; }
.downloads .download { min-width: 172px; border: 1px solid transparent; box-shadow: 0 4px 10px rgba(87, 22, 28, .12); }
#android-download { color: #6e262b; background: transparent; border-color: #d6bfb0; box-shadow: none; }
#android-download:hover { background: #f4e9df; }
.download svg { width: 24px; height: 26px; flex: none; }
.download small { display: block; font-size: 11px; line-height: 1.4; }
.download strong { display: block; font-size: 19px; font-weight: 600; line-height: 1.2; }
a:focus-visible, button:focus-visible { outline: 3px solid #80232a; outline-offset: 5px; }
.screenshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; max-width: 720px; margin: 48px auto 0; padding-top: 16px; }
.screenshots img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 8px 20px rgba(59, 26, 19, .20); }
footer { border-top: 1px solid #e9dfd0; padding-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 48px; color: #75675d; font-size: 13px; }
footer a { color: inherit; text-underline-offset: 4px; }
dialog { width: min(360px, calc(100% - 40px)); padding: 32px; border: 0; border-radius: 18px; color: #30231f; background: #fffcf6; text-align: center; box-shadow: 0 16px 64px rgba(23, 44, 35, .2); }
dialog::backdrop { background: rgba(43, 9, 12, .65); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 16px; font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif; font-size: clamp(30px, 9vw, 38px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: #6e262b; text-wrap: balance; }
dialog h2 span { display: block; margin-top: 8px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: #75675d; }
dialog p { margin: 0 0 24px; color: #75675d; line-height: 1.6; }
dialog .download { width: 100%; min-height: 44px; }
body:has(dialog[open]) { overflow: hidden; }
@media (max-width: 600px) {
  body { padding: 24px 12px; }
  dialog { padding: 28px 24px 20px; }
  main { padding: 32px 16px 20px; border-radius: 20px; }
  .downloads { gap: 8px; }
  .downloads .download { min-width: 0; flex: 1; max-width: 190px; padding: 12px 10px; gap: 8px; }
  .download strong { font-size: 17px; }
  .download small { font-size: 12px; }
  .download svg { width: 21px; }
  .intro { font-size: 17px; }
  .screenshots { gap: 10px; margin-top: 40px; }
  .screenshots img { border-radius: 6px; }
  footer { margin-top: 28px; gap: 12px; font-size: 13px; padding-top: 20px; }
}
.italic { font-style: italic}
#android-waitlist { text-align: left; }
#android-waitlist label { display: block; margin-bottom: 8px; font-size: 14px; }
#waitlist-email { width: 100%; padding: 12px; margin-bottom: 16px; border: 1px solid #bac4be; border-radius: 8px; font: inherit; font-size: 16px; color: #172c23; background: #fff; }
#waitlist-email:focus-visible { outline: 2px solid #80232a; outline-offset: 2px; }
#waitlist-submit:disabled { opacity: .65; cursor: wait; }
dialog #waitlist-status { margin: 16px 0 0; font-size: 14px; }
#waitlist-status:empty { display: none; }
dialog #waitlist-status.error { color: #a52a2a; }
.modal-close { min-height: 44px; margin-top: 12px; padding: 8px 16px; color: #75675d; background: transparent; }
