/* Larmtavlan website. One stylesheet for every page; light and dark follow the system. */

:root {
  --paper: #fbfaf6;
  --surface: #ffffff;
  --ink: #161616;
  --ink-soft: #4a4a46;
  --ink-faint: #7a7a74;
  --rule: #e3e1d9;
  --accent: #1d6fb0;        /* the app's notification blue (#3498db), darkened for text contrast */
  --accent-soft: #e7f1fa;
  --logo-filter: none;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --wide: 64rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121312;
    --surface: #1b1c1b;
    --ink: #ecebe6;
    --ink-soft: #b9b8b1;
    --ink-faint: #8b8a84;
    --rule: #2e2f2d;
    --accent: #6cb4ec;
    --accent-soft: #17293a;
    --logo-filter: invert(1);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }

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

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

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 16px; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; }
.brand .wordmark { width: 128px; height: auto; filter: var(--logo-filter); }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 15px; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav .lang { border: 1px solid var(--rule); border-radius: 999px; padding: 2px 10px; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
/* Logotype: the ring bird with the wordmark below at the same width, gap 6 % of the width
   (the same proportions as BrandLogo in the app). */
.logotype { --w: 220px; width: var(--w); margin: 0 auto 36px; }
.logotype img { width: 100%; }
.logotype .logotype-word { margin-top: calc(var(--w) * 0.06); filter: var(--logo-filter); }
.hero h1 {
  font: 400 clamp(1.6rem, 4.2vw, 2.4rem)/1.25 var(--serif);
  margin: 0 auto 16px; max-width: 26ch; letter-spacing: -0.01em;
}
.hero p.lede { color: var(--ink-soft); max-width: 36rem; margin: 0 auto; }

.status {
  display: inline-block; margin-top: 28px; padding: 8px 16px;
  background: var(--accent-soft); color: var(--ink); border-radius: 999px; font-size: 15px;
}

/* Features */
.section { padding: 56px 0; border-top: 1px solid var(--rule); }
.section h2 { font: 400 1.6rem/1.3 var(--serif); margin: 0 0 8px; }
.section .intro { color: var(--ink-soft); margin: 0 0 32px; max-width: var(--measure); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px 40px; }
.feature h3 { font: 600 1.05rem/1.4 var(--sans); margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature .kicker {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 6px;
}

/* Screenshots (filled in when the images exist) */
.shots { display: flex; gap: 24px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 min(240px, 70%); scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 1px solid var(--rule); background: var(--surface); }
.shots figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }

/* Text pages */
.page { padding: 48px 0 64px; }
.page h1 { font: 400 clamp(1.8rem, 4vw, 2.4rem)/1.2 var(--serif); margin: 0 0 8px; }
.page .meta { color: var(--ink-faint); margin: 0 0 32px; font-size: 15px; }
.page h2 { font: 600 1.15rem/1.4 var(--sans); margin: 36px 0 8px; }
.page p, .page ul, .page ol { margin: 0 0 14px; }
.page li { margin-bottom: 6px; }
.page ul, .page ol { padding-left: 1.3em; }

.callout {
  background: var(--surface); border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 6px; padding: 16px 20px; margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }

details { border-top: 1px solid var(--rule); padding: 14px 0; }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; }
details > div { padding-top: 8px; color: var(--ink-soft); }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--ink-faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--ink-soft); }
.site-footer .disclaimer { flex-basis: 100%; max-width: var(--measure); }

@media (max-width: 560px) {
  .brand .wordmark { display: none; }
  .hero { padding: 48px 0 40px; }
  .logotype { --w: 168px; margin-bottom: 28px; }
  .status { border-radius: 14px; }
  .section { padding: 44px 0; }
}
