/* Baltano — vendor site. No external assets, no build step. */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --text: #1a1d21;
  --text-muted: #5b6470;
  --border: #e2e5e9;
  --accent: #1f5f8b;
  --accent-hover: #14435f;
  --max: 46rem;
  --max-wide: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171a;
    --bg-alt: #1c2024;
    --text: #e8eaed;
    --text-muted: #a4adb8;
    --border: #2c3238;
    --accent: #7ab6dd;
    --accent-hover: #a3cdec;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Product cards and screenshots get a wider band; text keeps the narrow column. */
.wrap-wide { max-width: var(--max-wide); }

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
}

/* Content */

main {
  padding: 2.5rem 0 3rem;
}

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

p, ul, ol { margin: 0 0 1rem; }

ul, ol { padding-left: 1.4rem; }

li { margin-bottom: 0.35rem; }

a { color: var(--accent); }

a:hover { color: var(--accent-hover); }

.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.card h2, .card h3 { margin-top: 0; }

.status {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-bottom: 0.75rem;
}

.status.live {
  color: var(--accent);
  border-color: var(--accent);
}

/* Not published yet — deliberately quieter than .live, so a card that cannot be
   installed does not compete with one that can. */
.status.soon {
  color: var(--text-muted);
  border-color: var(--border);
  background: var(--bg);
}

/* Product cards on the home page: two per row, one on a phone. */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 40rem) {
  .products { grid-template-columns: 1fr 1fr; }
}

.product {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.25rem;
}

.product h3 { margin: 0.2rem 0 0.5rem; }

.product h3 a { color: var(--text); text-decoration: none; }

.product h3 a:hover { text-decoration: underline; }

.product > p:last-child { margin: auto 0 0; }

.platform {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* A real screenshot in a window of fixed proportions: the top of the screen shows, the bottom
   fades out, so cards with screens of different heights still line up. The files are captured
   at 2x (narzedzia/zrzuty.mjs), which is why width/height in the HTML are half their pixels. */
.shot {
  display: block;
  aspect-ratio: 1.05;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
  mask-image: linear-gradient(to bottom, #000 80%, transparent 99%);
}

.shot img,
.figure img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-caption {
  margin: 0.4rem 0 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Full screenshots on products.html. A click opens the file at full size. */
.figure { margin: 1.25rem auto 1.75rem; }

.figure > a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* A screenshot captured at 1x stays at text width, where it is still sharp. */
.figure.narrow { max-width: var(--max); }

.muted { color: var(--text-muted); }

.small { font-size: 0.9rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer p { margin: 0 0 0.5rem; }

.site-footer a { color: var(--text-muted); }

address {
  font-style: normal;
  margin-bottom: 0.75rem;
}
