/* SlipSentry website. Plain CSS, no external resources. */

:root {
  --blue: #0a6be6;
  --blue-light: #2e9bff;
  --blue-dark: #0058d6;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #121826;
  --text-secondary: #5a6476;
  --border: #dfe5ee;
  --note-bg: #eaf3ff;
  --radius: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4aa8ff;
    --bg: #0b0e14;
    --surface: #151a23;
    --text: #eef2f8;
    --text-secondary: #9aa4b5;
    --border: #262d3a;
    --note-bg: #12233b;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

img {
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.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;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 15px;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

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

/* Landing hero */

.hero {
  background: linear-gradient(180deg, var(--blue-light), var(--blue-dark));
  color: #ffffff;
  text-align: center;
  padding: 56px 0 64px;
}

.hero-icon {
  width: 128px;
  height: 128px;
  border-radius: 29px;
  box-shadow: 0 12px 32px rgba(0, 36, 90, 0.35);
}

.hero h1 {
  margin: 24px 0 4px;
  font-size: 40px;
  line-height: 1.15;
}

.hero .byline {
  margin: 0 0 20px;
  opacity: 0.85;
  font-size: 16px;
}

.hero .tagline {
  max-width: 34em;
  margin: 0 auto;
  font-size: 19px;
}

.badge {
  display: inline-block;
  margin-top: 28px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}

/* Content */

main {
  padding: 40px 0 56px;
}

.page-title {
  margin: 0 0 4px;
  font-size: 34px;
  line-height: 1.2;
}

.meta {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 15px;
}

h2 {
  margin: 40px 0 8px;
  font-size: 23px;
  line-height: 1.3;
}

h3 {
  margin: 24px 0 4px;
  font-size: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px 20px;
  margin-bottom: 20px;
}

.card h2 {
  margin-top: 20px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.features h3 {
  margin: 0 0 4px;
}

.features p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
}

.note {
  background: var(--note-bg);
  border-radius: 12px;
  padding: 14px 18px;
}

ol,
ul {
  padding-left: 1.3em;
}

li + li {
  margin-top: 6px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--text-secondary);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .site-nav {
    gap: 14px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .page-title {
    font-size: 28px;
  }

  .card {
    padding: 2px 18px 16px;
  }
}
