/* Geo's apps: the public showcase. Same tokens, icon tiles and colours as the private status page's home view. */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --panel-2: #f0f2f5;
  --line: #e2e5ea;
  --text: #16191d;
  --muted: #5d6570;
  --faint: #8a929c;
  --link: #1f5fbf;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 2px 6px rgba(16, 24, 40, .06);
  --shadow-up: 0 2px 4px rgba(16, 24, 40, .08), 0 10px 24px rgba(16, 24, 40, .10);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418;
    --panel: #181c21;
    --panel-2: #20252b;
    --line: #2b3138;
    --text: #e7eaee;
    --muted: #a2aab4;
    --faint: #737c87;
    --link: #7fb0ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-up: 0 2px 6px rgba(0, 0, 0, .5), 0 10px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --bg: #111418;
  --panel: #181c21;
  --panel-2: #20252b;
  --line: #2b3138;
  --text: #e7eaee;
  --muted: #a2aab4;
  --faint: #737c87;
  --link: #7fb0ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-up: 0 2px 6px rgba(0, 0, 0, .5), 0 10px 24px rgba(0, 0, 0, .35);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { max-width: 900px; margin: 0 auto; padding: 20px 16px 32px; }

/* ---------------------------------------------------------------- hero */
.hero { margin: 4px 0 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.brand h1 { flex: 1; margin: 0; font-size: 28px; line-height: 1.1; font-weight: 750; letter-spacing: -.01em; }
.intro { margin: 14px 0 0; font-size: 16.5px; line-height: 1.5; max-width: 40em; }
.by { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.theme-btn {
  width: 38px; height: 38px; padding: 0; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted);
}
.theme-btn:hover { color: var(--text); background: var(--panel-2); }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
:root:not([data-theme]) .theme-btn .t-system, :root[data-theme="light"] .theme-btn .t-light,
:root[data-theme="dark"] .theme-btn .t-dark { display: block; }

/* ---------------------------------------------------------------- groups and cards */
.group { margin: 0 0 22px; }
.group h2 { font-size: 13px; font-weight: 650; color: var(--muted); margin: 0 0 10px 4px; letter-spacing: .02em; text-transform: uppercase; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); }
.card:active { transform: scale(.99); }
.card:focus-within { outline: 2px solid var(--link); outline-offset: 2px; }
.card :focus-visible { outline: none; }
.shot { aspect-ratio: 1200 / 630; background: var(--panel-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.noimg {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 22%, var(--panel)), color-mix(in srgb, var(--c2) 30%, var(--panel)));
}
.body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.titles { flex: 1; min-width: 0; }
.head h3 { margin: 0; font-size: 16.5px; line-height: 1.25; font-weight: 650; }
.go { color: var(--text); }
.go:hover { text-decoration: none; }
.go::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.ext { width: 15px; flex: none; height: 15px; margin-left: 4px; vertical-align: -1px; fill: none; stroke: var(--faint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .ext { stroke: var(--link); }
.host { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang {
  flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line); background: var(--panel-2); border-radius: 99px; padding: 2px 7px;
}
.blurb { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.45; }

/* ---------------------------------------------------------------- app icons (the status page's home tiles) */
.icon {
  --c1: #8a94a3; --c2: #5f6b7a;
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; flex: none;
  background: linear-gradient(180deg, var(--c1), var(--c2)); color: #fff;
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 1px 2px rgba(0, 0, 0, .12);
}
.icon .gl { width: 58%; height: 58%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon .letter { font-size: 20px; font-weight: 650; line-height: 1; }
.icon.big { width: 76px; height: 76px; border-radius: 19px; box-shadow: var(--shadow-up); }
.icon.big .letter { font-size: 34px; }
.c-red      { --c1: #f2665e; --c2: #d63a32; }
.c-orange   { --c1: #fb9a4b; --c2: #ea6c12; }
.c-amber    { --c1: #fbbf3b; --c2: #e59400; }
.c-yellow   { --c1: #f2cf3a; --c2: #d4a90c; }
.c-lime     { --c1: #9bd14a; --c2: #64a51c; }
.c-green    { --c1: #4cc276; --c2: #23934d; }
.c-teal     { --c1: #3cc4b4; --c2: #12907f; }
.c-cyan     { --c1: #3fbde4; --c2: #1489b8; }
.c-blue     { --c1: #4f8ef7; --c2: #2563d9; }
.c-indigo   { --c1: #7b7cf2; --c2: #4b49d1; }
.c-purple   { --c1: #b077ee; --c2: #8442cf; }
.c-pink     { --c1: #f46ea8; --c2: #d63c7f; }
.c-brown    { --c1: #b98a66; --c2: #8a5d3d; }
.c-slate    { --c1: #7d8a9c; --c2: #4f5b6b; }
.c-graphite { --c1: #3b424b; --c2: #1d2126; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .c-graphite { --c1: #4a525c; --c2: #2b3138; } }
:root[data-theme="dark"] .c-graphite { --c1: #4a525c; --c2: #2b3138; }

.foot { margin: 28px 4px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* ---------------------------------------------------------------- wider screens */
@media (min-width: 620px) {
  main { padding: 36px 24px 40px; }
  .brand h1 { font-size: 34px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }
