/* Pocketlyne marketing site.
   Brand values mirror the design system (navy #1E3042 / teal #13A197). When
   pocketlyne-design-system ships `dist/tokens.css`, replace the :root block
   below with the synced file and stop hand-editing colours here. */

:root {
  --pl-navy: #1e3042;
  --pl-teal: #13a197;
  --pl-bg: #ffffff;
  --pl-surface: #f5f7f9;
  --pl-text: #1e3042;
  --pl-muted: #5b6b7b;
  --pl-border: #dfe5ea;
  --pl-link: #0f7f77;
  --pl-maxw: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --pl-bg: #131c26;
    --pl-surface: #1b2733;
    --pl-text: #e8edf2;
    --pl-muted: #9aabba;
    --pl-border: #2c3a48;
    --pl-link: #35bfb4;
  }
}

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

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

body {
  margin: 0;
  padding: 0 1rem;
  background: var(--pl-bg);
  color: var(--pl-text);
  font: 400 1rem/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: var(--pl-maxw);
  margin: 0 auto;
}

/* Header ------------------------------------------------------------------ */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.75rem 0 1.25rem;
  border-bottom: 1px solid var(--pl-border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 650;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--pl-text);
  text-decoration: none;
}

.mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  background: var(--pl-teal);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  flex: none;
}

nav.site a {
  color: var(--pl-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.1rem;
}

nav.site a:first-child {
  margin-left: 0;
}

nav.site a:hover,
nav.site a:focus-visible {
  color: var(--pl-link);
  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.5rem;
}

h2 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 2.25rem 0 0.5rem;
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.35rem;
}

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

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

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--pl-link);
}

.lede {
  font-size: 1.1rem;
  color: var(--pl-muted);
  margin-bottom: 2rem;
}

.updated {
  font-size: 0.85rem;
  color: var(--pl-muted);
  margin: 0 0 2rem;
}

.card {
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1rem;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

dl.facts {
  margin: 0 0 1rem;
}

dl.facts dt {
  font-weight: 650;
  margin-top: 0.9rem;
}

dl.facts dt:first-child {
  margin-top: 0;
}

dl.facts dd {
  margin: 0.1rem 0 0;
  color: var(--pl-muted);
}

/* Footer ------------------------------------------------------------------ */

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

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

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

footer.site nav a {
  margin-right: 1rem;
}

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