* { box-sizing: border-box; margin: 0; }
html { background: #0b0b09; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100svh; overflow-x: hidden;
  display: flex; flex-direction: column;
  color: #9a968a; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* the carbon: stays still behind everything, a little yellow at the top, darker at the corners */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 50% 24%, rgba(255, 196, 0, .09), transparent 70%),
    radial-gradient(ellipse 95% 95% at 50% 45%, transparent 35%, rgba(0, 0, 0, .6) 100%),
    url(/img/carbon.webp) 50% 0 / 28px 28px;
}

header { padding: 30px 0 0; }
h1 { width: min(500px, 100vw); margin: 0 auto; line-height: 0; }
img { display: block; width: 100%; height: auto; }

main { flex: 1; width: min(1320px, 100%); margin: 0 auto; padding: 64px 36px 40px; }
h2 {
  display: flex; align-items: center; gap: 22px; margin: 0 0 34px;
  color: #fff8df; font-size: 17px; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; white-space: nowrap;
  text-shadow: 0 0 14px rgba(255, 200, 0, .55);
}
h2::before, h2::after { content: ""; flex: 1; height: 2px; box-shadow: 0 0 10px rgba(255, 200, 0, .6); }
h2::before { background: linear-gradient(90deg, transparent, #ffc400); }
h2::after { background: linear-gradient(270deg, transparent, #ffc400); }

/* the apps, five to a row (a shorter last row sits in the middle): the same frames as avantragaming.com, in yellow */
.apps { --n: 5; --gap: 30px; list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 42px var(--gap); }
.apps li { width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) - .01px); }
.tile { --cut: 18px; --rim: 10px; display: block; text-align: center; color: inherit; text-decoration: none; position: relative; transition: transform .25s ease; }

/* each tile is a carbon frame with a neon edge and cut corners, like the logo */
.frame {
  position: relative; display: block; padding: var(--rim);
  filter: drop-shadow(0 0 5px rgba(255, 205, 0, .6)) drop-shadow(0 0 20px rgba(255, 180, 0, .28));
  transition: filter .25s ease;
}
.frame::before, .frame::after, .pic, .app {
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.frame::before { --c: var(--cut); content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, #fff2a0, #ffc800 40%, #b07a00 75%, #ffdc2c); }
.frame::after {
  --c: calc(var(--cut) - 1px); content: ""; position: absolute; inset: 2px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .2), transparent 38%, rgba(0, 0, 0, .35) 80%), url(/img/carbon-frame.webp) 0 0 / 14px 14px;
}
.pic { --c: calc(var(--cut) - 6px); position: relative; z-index: 1; display: block; padding: 1.5px; background: linear-gradient(155deg, #8f6a08, #ffd012 50%, #7a5600); }
/* inside the frame: the app's icon on dark carbon, with a glow in its own colour (--a, set in the page) */
.app {
  --c: calc(var(--cut) - 7px); display: grid; place-items: center; aspect-ratio: 1 / 1.06;
  background:
    radial-gradient(ellipse 68% 62% at 50% 50%, color-mix(in srgb, var(--a) 34%, transparent), transparent 78%),
    linear-gradient(160deg, rgba(8, 8, 6, .35), rgba(8, 8, 6, .82) 75%),
    url(/img/carbon-frame.webp) 0 0 / 22px 22px;
}
.app img { width: 62%; border-radius: 23%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .22), 0 0 30px color-mix(in srgb, var(--a) 55%, transparent), 0 14px 26px rgba(0, 0, 0, .65); }

.name { display: block; margin-top: 16px; color: #fffaea; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.3; } .name.asis { text-transform: none; }
.line { display: block; margin-top: 3px; font-size: 13px; color: #b9b4a4; }
.when { display: block; margin-top: 8px; font-size: 12.5px; }
.open { display: inline-block; margin-top: 9px; padding: 4px 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #14110a; background: linear-gradient(180deg, #ffe24a, #f5b800); clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }

@media (hover: hover) {
  .tile:hover { transform: scale(1.06); z-index: 2; }
  .tile:hover .frame { filter: drop-shadow(0 0 8px rgba(255, 220, 60, .9)) drop-shadow(0 0 36px rgba(255, 190, 0, .5)); }
  a.tile:hover .open { background: linear-gradient(180deg, #fff3a0, #ffcf1f); }
}
a.tile:focus-visible { outline: 2px solid #ffe04a; outline-offset: 10px; }

footer { text-align: center; padding: 26px 16px calc(26px + env(safe-area-inset-bottom)); letter-spacing: .04em; }
footer p + p { margin-top: 6px; }
footer a { color: #ffd22a; text-decoration: none; display: inline-block; padding: 6px 4px; }
footer a:hover, footer a:focus-visible { text-decoration: underline; }

/* tablets: a bit tighter */
@media (max-width: 1000px) { .apps { --n: 4; --gap: 20px; row-gap: 34px; } .tile { --cut: 15px; --rim: 9px; } main { padding: 52px 22px 30px; } .name { font-size: 12px; letter-spacing: .06em; } }
/* phones: two by two */
@media (max-width: 700px) {
  header { overflow: hidden; padding-top: 34px; }
  h1 { width: 100vw; }
  main { padding: 46px 16px 24px; }
  h2 { font-size: 14px; gap: 14px; margin-bottom: 26px; }
  .apps { --n: 2; --gap: 16px; row-gap: 28px; }
  .tile { --cut: 13px; --rim: 8px; }
  .name { margin-top: 13px; font-size: 12.5px; } .line { font-size: 12.5px; }
  body::before { background-size: auto, auto, 22px 22px; }
}
@media (prefers-reduced-motion: reduce) { .tile, .frame { transition: none; } .tile:hover { transform: none; } }

/* the glow of each app, written by source/make_page.py */
.apps .radio-mast { --a: #b4ff3c; }
.apps .hushpin { --a: #ff2f4a; }
.apps .mail { --a: #ff3048; }
.apps .vpn { --a: #ff3048; }
.apps .cipher { --a: #b4ff3c; }
.apps .manila { --a: #f0c060; }
.apps .esim { --a: #22c9b8; }
.apps .temp { --a: #a36bff; }
.apps .pdf { --a: #ff5040; }
.apps .stavaros { --a: #ff8a2a; }
