/* apps.bluebasinsystems.com. Plain and readable: light by default, dark when the device asks for it. */

:root {
  --bg: #ffffff;
  --surface: #f4f6f8;
  --line: #d9dee3;
  --ink: #1b1f24;
  --muted: #59626c;
  --accent: #1f5fa8;
  --link: #1f5fa8;

  --measure: 42rem;
  --gutter: clamp(1rem, 5vw, 4.5rem);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141517;
    --surface: #1c1d20;
    --line: #33363b;
    --ink: #f0efec;
    --muted: #a3a19b;
    --accent: #3987e5;
    --link: #7fb3ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; z-index: 10;
}
.skip:focus { top: 1rem; }

/* ---- page frame -------------------------------------------------------------------------- */

.frame { padding: 0 var(--gutter); }

.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1rem;
  padding: 1.25rem 0; max-width: 60rem; border-bottom: 1px solid var(--line);
}
.brand {
  color: var(--ink); text-decoration: none;
  font: 600 1.15rem/1.2 var(--font-display); letter-spacing: -0.01em;
}
.site-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.975rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--link); text-decoration: underline; }

main { max-width: var(--measure); padding: 1.5rem 0 4rem; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }
h1 { font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; margin: 3rem 0 0.75rem; }
h3 { font-weight: 600; font-size: 1.1rem; line-height: 1.3; margin: 1.75rem 0 0.5rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
.lede { font-size: 1.2rem; line-height: 1.5; }
.quiet { color: var(--muted); }
.updated { color: var(--muted); font-size: 0.95rem; }

/* Each app's section starts with a rule, so the sections are easy to tell apart when scrolling. */
.app { border-top: 1px solid var(--line); margin-top: 3rem; }
.app h2 { margin-top: 2rem; }
.app .store-name { color: var(--muted); font-size: 0.95rem; margin-top: -0.4rem; }

/* ---- the list of apps (home page and the top of the privacy page) ------------------------ */

.apps { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.75rem; }
.apps li {
  margin: 0; padding: 0.8rem 1rem; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px;
}
.apps b { display: block; }
.apps span { color: var(--muted); }
.apps .links { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.3rem; color: var(--ink); }

.site-foot {
  border-top: 1px solid var(--line); padding: 1.75rem 0 2.5rem; max-width: 60rem;
  color: var(--muted); font-size: 0.9rem;
}
.site-foot nav { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.site-foot p { margin: 0 0 0.35rem; }
