/* Layout: one plain left-aligned column on white, like aplostechnologies.com: a thin header, a heading, a list of applications with an Open button each. */
:root {
  --bg: #ffffff;
  --surface: #f4f7f7;
  --fg: #1d2929;
  --muted: #566565;
  --line: #dce4e4;
  --accent: #2b7a78;
  --accent-fg: #ffffff;
  --accent-hover: #236462;
  --font-head: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
/* One look on purpose: white and teal, whatever the viewer's system theme. */

[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0;
}
.wrap {
  max-width: 44rem;
  margin-inline: auto;
  min-width: 0;
}

header.top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--font-head);
  font-size: 22px;
  letter-spacing: 0.01em;
}
.who {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  min-width: 0;
}
.who strong {
  color: var(--fg);
  font-weight: 600;
}
.linkbtn {
  font: inherit;
  font-size: 14px;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 2px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

main {
  padding-block: 48px 40px;
}
h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.3;
  margin: 0 0 8px;
  text-wrap: balance;
}
.lede {
  margin: 0 0 32px;
  color: var(--muted);
  max-width: 36rem;
}

ul.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
ul.apps li {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.app-info {
  min-width: 0;
  flex: 1 1 16rem;
}
.app-name {
  font-weight: 600;
  font-size: 17px;
}
.app-meta {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.open {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 4px;
  padding: 9px 22px;
  cursor: pointer;
  min-width: 6.5rem;
}
.open:hover {
  background: var(--accent-hover);
}
.open.secondary {
  background: none;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.open.secondary:hover {
  background: var(--surface);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.status {
  margin: 20px 0 0;
  min-height: 1.5em;
  color: var(--muted);
  font-size: 14px;
}

.empty {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 20px 22px;
  max-width: 36rem;
}
.empty p {
  margin: 0 0 8px;
}
.empty p:last-child {
  margin: 0;
  color: var(--muted);
}

.help {
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
  max-width: 36rem;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 20px 28px;
  color: var(--muted);
  font-size: 13px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
}
footer a {
  color: var(--muted);
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: no-preference) {
  .open {
    transition: background-color 0.15s;
  }
}
