/* Langle's public site: one stylesheet for the home page and the privacy policy. */

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e3e5ea;
  --text: #14182b;
  --body: #2a2f45;
  --muted: #4a5068;
  --link: #0b7f65;
  --link-hover: #075c49;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #12141c;
    --surface: #1a1d28;
    --border: #2d3142;
    --text: #eef0f5;
    --body: #cdd1dc;
    --muted: #a4aabb;
    --link: #4fc9a8;
    --link-hover: #84ddc4;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  overflow-wrap: break-word;
}

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

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

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

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

/* Header */

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

.site-header .wrap {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  display: block;
}

.brand span {
  font-size: 17px;
  font-weight: 700;
}

.nav-link {
  font-size: 15px;
}

/* Main column */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home {
  padding-top: 56px;
  padding-bottom: 64px;
  gap: 40px;
}

.policy {
  padding-top: 48px;
  padding-bottom: 64px;
  gap: 14px;
}

/* Home page */

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--body);
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.f {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
}

.ft {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
}

.support {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* Privacy policy */

.policy h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 700;
}

.p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.p strong {
  color: var(--text);
}

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

.h2 {
  margin: 8px 0 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--text);
}

ul.p {
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer .wrap {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}

/* Phones */

@media (max-width: 480px) {
  .home {
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .policy {
    padding-top: 36px;
    padding-bottom: 48px;
  }

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

  .policy h1 {
    font-size: 30px;
  }
}
