/* ArabHype quick join: a block-built desert at sunset (from the server's icon). */
@font-face { font-family: Rakkas; src: url(/rakkas-arabic.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Cairo; src: url(/cairo-arabic.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Cairo; src: url(/cairo-latin.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --night: #32152b;
  --dusk: #7a2c3f;
  --ember: #d9642f;
  --sun: #ffd873;
  --sand: #fff0d2;
  --ground: #3d1a20;
  --cut: 8px; /* the one corner used everywhere: a missing block */
}
* { box-sizing: border-box; }
html { height: 100%; background: var(--night); }
body {
  margin: 0; min-height: 100%; min-height: 100svh; position: relative; isolation: isolate; overflow-x: hidden;
  display: grid; place-items: start center;
  font: 500 17px/1.7 Cairo, system-ui, sans-serif; color: var(--sand);
  background: linear-gradient(var(--night) 0%, #57213a 38%, var(--dusk) 58%, var(--ember) 100%);
}
h1, h2, p, dl, dd, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---- scene */
/* sits at the bottom of the page; main keeps that much room free, so text never lands on the sun */
.scene { position: absolute; inset: auto 0 0; height: 420px; z-index: -1; overflow: hidden; }
.scene i { position: absolute; left: 0; right: 0; bottom: 0; background-repeat: repeat-x; background-position: bottom center; }
.scene .sun {
  left: 50%; right: auto; bottom: 120px; width: 132px; height: 132px; margin-left: -66px;
  background: var(--sun); box-shadow: 0 0 0 22px rgb(255 216 115 / 16%), 0 0 0 52px rgb(255 216 115 / 9%);
  animation: set 1.6s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes set { from { transform: translateY(-110px); } }
.scene .far { height: 216px; background-image: url(/dune-far.svg); }
.scene .mid { height: 208px; background-image: url(/dune-mid.svg); }
.scene .near { height: 140px; background-image: url(/dune-near.svg); }

/* ---- content */
main { width: min(100% - 40px, 540px); padding: max(24px, env(safe-area-inset-top)) 0 320px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; text-decoration: none; }
.mark img { image-rendering: pixelated; display: block; }
h1 { font: 400 clamp(46px, 13vw, 76px)/1.15 Rakkas, Cairo, serif; color: var(--sun); margin: clamp(26px, 7vh, 64px) 0 26px; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 800; line-height: 1.5; }

/* everything you can press is a block: square, with its corners knocked out */
.block, .action, .copy, .help {
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, calc(100% - var(--cut)) var(--cut), 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, var(--cut) calc(100% - var(--cut)), 0 calc(100% - var(--cut)), 0 var(--cut), var(--cut) var(--cut));
}
.choices { display: grid; gap: 14px; }
.block { display: block; padding: 18px 24px 20px; text-decoration: none; background: var(--sun); color: var(--ground); transition: background-color .15s; }
.block + .block { background: var(--sand); }
.block strong { display: block; font: 400 44px/1.3 Rakkas, Cairo, serif; }
.block:hover, .action:hover { background: #fff; }

.action {
  display: grid; place-items: center; width: 100%; min-height: 72px; padding: 14px 20px; text-align: center; text-decoration: none;
  background: var(--sun); color: var(--ground); font-size: 21px; font-weight: 850; transition: background-color .15s;
}
.address { padding: 18px 20px 20px; }
.address bdi { font-size: clamp(30px, 9.4vw, 46px); line-height: 1.25; font-weight: 900; }
.address span { font-size: 16px; font-weight: 700; }
.quiet { display: block; width: fit-content; margin: 16px auto 0; padding: 8px; font-weight: 700; text-underline-offset: 6px; }

.help { margin-top: 30px; padding: 20px 22px 22px; background: rgb(50 21 43 / 88%); }
.help p { margin: 4px 0 14px; font-size: 16px; }
.row { display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 12px; min-height: 56px; }
.row dd { font-weight: 800; font-size: 19px; overflow-wrap: anywhere; }
.copy { --cut: 5px; min-height: 44px; min-width: 86px; padding: 0 14px; background: var(--dusk); font-weight: 750; font-size: 15px; }
.copy:hover { background: #95394f; }
.copy.done { background: var(--sand); color: var(--ground); }

.steps { margin: 30px 0 0; padding-inline-start: 1.5em; display: grid; gap: 10px; font-size: 18px; }
.steps li { padding-inline-start: 6px; }
.steps li::marker { color: var(--sun); font-weight: 900; }
.steps bdi, .help p bdi { font-weight: 800; }
.switch { margin-top: 28px; }
.switch a { font-weight: 800; text-underline-offset: 6px; }
.bedrock .switch, .java .switch { width: fit-content; }

@media (prefers-reduced-motion: reduce) { .scene .sun { animation: none; } * { transition: none !important; } }
