/* Astra website. The look is the client's old GUI (Adjust style): flat dark translucent rectangles with hairline borders,
   Tahoma, light grey text, the theme teal as the only colour, all sitting on the Voronoi mosaic that bg.js draws. */
:root { color-scheme: dark; --text: rgb(225, 228, 228); --muted: rgb(150, 158, 158); --grey: rgb(201, 201, 201);
  --panel: rgba(26, 26, 26, .62); --panel-hover: rgba(36, 36, 36, .72); --line: rgba(255, 255, 255, .11);
  --accent: rgb(38, 198, 200); --bad: #ff7b80; --good: #5bd28a; --warn: #ffc15a;
  --font: Tahoma, Verdana, "DejaVu Sans", "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--text); background: #050909; font: 400 14px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 28px 16px; }

/* ---- background: the mosaic is drawn on this canvas by bg.js ---- */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; background: #0a1414; }

/* ---- the name, as in the client's watermark ---- */
.mark { text-align: center; user-select: none; pointer-events: none;
  font: 400 clamp(30px, 4.2vw, 46px)/1 var(--font); color: rgb(225, 228, 228); }
.mark b { font-weight: 700; color: var(--accent); }

/* ---- panels ---- */
main { width: 100%; max-width: 420px; margin: 0 auto; padding: 26px 26px 28px; background: var(--panel); border: .5px solid rgba(26, 26, 26, .9); border-radius: 2px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .07); }
main.wide { max-width: 780px; }
.brand { display: inline-block; color: var(--text); font-weight: 700; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; opacity: .9; }
.brand::first-letter { color: var(--accent); }
h1 { font-size: 24px; font-weight: 700; margin: 20px 0 10px; line-height: 1.2; }
h2 { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 28px 0 10px; }
p { margin: 0 0 12px; }

/* ---- forms ---- */
form { margin: 14px 0; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
input, textarea { display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border-radius: 2px; border: .5px solid var(--line); background: rgba(10, 14, 14, .38); color: var(--text); font: inherit; font-size: 14px; transition: border-color .15s, background .15s; }
textarea { resize: vertical; min-height: 96px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
input::placeholder, textarea::placeholder { color: rgba(225, 228, 228, .28); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: rgba(8, 10, 10, .8); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--grey); }
label.check input { display: inline-block; width: auto; margin: 0; }
button, .button { display: inline-block; padding: 9px 18px; border-radius: 2px; border: .5px solid rgba(38, 198, 200, .55); background: rgba(38, 198, 200, .14); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
button:hover, .button:hover { background: rgba(38, 198, 200, .26); border-color: var(--accent); }
button.secondary, .button.secondary { border-color: var(--line); background: rgba(26, 26, 26, .6); color: var(--grey); }
button.secondary:hover, .button.secondary:hover { background: var(--panel-hover); color: #fff; border-color: rgba(255, 255, 255, .25); }
button.danger { border-color: rgba(255, 123, 128, .5); background: rgba(255, 123, 128, .10); color: #ffc2c5; }
button.danger:hover { background: rgba(255, 123, 128, .22); border-color: var(--bad); }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 4px; }
.muted { color: var(--muted); font-size: 13px; }
a { color: var(--accent); }
a:hover { color: #7fe3e4; }

.notice { padding: 9px 12px; border-radius: 2px; border: .5px solid var(--line); background: rgba(8, 10, 10, .45); margin: 14px 0; font-size: 13px; }
.notice.error { border-color: rgba(255, 123, 128, .6); color: #ffc2c5; }
.notice.warn { border-color: rgba(255, 193, 90, .55); color: #ffe0a8; }
.notice.ok { border-color: rgba(91, 210, 138, .55); color: #b7f0cb; }

table { width: 100%; border-collapse: collapse; margin: 10px 0; }
th, td { text-align: left; padding: 8px 4px; border-bottom: .5px solid var(--line); font-size: 13px; vertical-align: top; }
th { color: var(--muted); font-weight: 400; width: 40%; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
pre.code { background: rgba(8, 10, 10, .6); border: .5px solid var(--line); border-radius: 2px; padding: 14px; font-size: 16px; letter-spacing: 1px; word-break: break-all; white-space: pre-wrap; user-select: all; }

/* ---- legal pages ---- */
.legal h1 { margin-top: 18px; }
.legal p, .legal li { color: var(--grey); }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal code { background: rgba(8, 10, 10, .6); padding: 1px 5px; border-radius: 2px; font-size: 12px; }
table.data th, table.data td { padding: 10px 8px 10px 0; }
table.data th { width: auto; color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
table.data td:first-child { width: 48%; }

/* ---- footer: the flat bar of the client's search bar / menu buttons ---- */
footer.site { position: static; margin-top: 22px; z-index: 2; display: flex; justify-content: center; padding: 0 12px; max-width: 100%; }
footer.site .bar { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 20px; padding: 8px 16px; max-width: 100%;
  background: rgba(26, 26, 26, .62); border: .5px solid rgba(26, 26, 26, .9); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .07); border-radius: 2px;
  font-size: 12px; color: var(--grey); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
footer.site a { color: var(--grey); text-decoration: none; }
footer.site a:hover { color: #fff; }
footer.site .copy { color: var(--text); font-weight: 700; }
footer.site a.copy:hover { color: #fff; }
footer.site .fine { color: var(--muted); font-size: 11px; }

@media (max-width: 520px) { main { padding: 22px 18px 24px; } footer.site .fine { display: none; } }

/* ---- front page: hero text, then the screenshots ---- */
body:has(.intro) { justify-content: flex-start; padding-top: 11vh; padding-bottom: 76px; }
body:has(.intro) footer.site { position: fixed; left: 0; right: 0; bottom: 14px; margin: 0; pointer-events: none; }
.intro { text-align: center; max-width: 640px; z-index: 1; }
.intro .mark { margin-bottom: 26px; }
.intro .say { margin: 0 auto 6px; font-size: 17px; color: var(--text); }
.intro .buttons { justify-content: center; margin-top: 22px; }
.carousel { position: relative; width: min(860px, 100%); margin: 48px auto 0; z-index: 1; }
.carousel .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--panel); border: .5px solid rgba(26, 26, 26, .9); border-radius: 2px; box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .07); }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel figure { flex: 0 0 100%; margin: 0; padding: 6px; scroll-snap-align: start; }
.carousel img { display: block; width: 100%; height: auto; border-radius: 1px; }
.carousel .arrow { position: absolute; top: calc(50% - 22px); width: 34px; height: 44px; padding: 0; border-radius: 2px; border: .5px solid rgba(255, 255, 255, .18); background: rgba(10, 14, 14, .55); color: var(--text); font-size: 24px; line-height: 40px; cursor: pointer; }
.carousel .arrow:hover { background: rgba(10, 14, 14, .8); border-color: var(--accent); }
.carousel .prev { left: 14px; }
.carousel .next { right: 14px; }
.carousel .dots { position: absolute; right: 16px; bottom: 11px; display: flex; gap: 8px; }
.carousel .dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: .5px solid rgba(255, 255, 255, .45); background: transparent; cursor: pointer; }
.carousel .dot.on { background: var(--accent); border-color: var(--accent); }

/* ---- log in and register: narrow panel, fields without labels like the client's search bar ---- */
main.entry { max-width: 320px; padding: 26px 24px 22px; text-align: center; }
.entry h1 { margin: 0 0 20px; font-size: 20px; font-weight: 700; color: var(--text); }
.entry form { margin: 0; }
.entry input { margin: 0 0 8px; height: 36px; padding: 0 12px; text-align: left; background: rgba(26, 26, 26, .62); border: .5px solid rgba(26, 26, 26, .9); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .07); }
.entry input:focus { border-color: var(--accent); }
.entry button { width: 100%; height: 36px; margin-top: 8px; padding: 0; }
.entry .alt { margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.entry .notice { text-align: left; margin: 0 0 14px; }
.entry .cf-turnstile { margin: 6px 0 4px; }
