/* Casly site: the app's "Lino" palette (Theme.swift), Manrope, one terracotta accent. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope-Variable.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --bg: #FBF9F6;
  --surface: #F1EDE7;
  --ink: #141414;
  --muted: #625D57;
  --hairline: rgb(0 0 0 / 0.08);
  --accent: #B4532A;
  --radius: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0B0A;
    --surface: #1D1B19;
    --ink: #F5F5F7;
    --muted: #A8A29C;
    --hairline: rgb(255 255 255 / 0.10);
    --accent: #E58A60;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color 150ms ease;
}
a:hover { text-decoration-color: currentColor; }
a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--ink) 55%, transparent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Header: the brand on the left, the three pages on the right. */
.top {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--hairline);
}
.top nav {
  display: flex;
  gap: 4px;
  margin-right: -10px;
}
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 12px;
  transition: color 150ms ease, background-color 150ms ease;
}
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--surface); }

main {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* Legal texts and support. */
.doc { max-width: 680px; }
.doc h1 {
  font-size: clamp(32px, 7vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 8px;
  text-wrap: balance;
}
.doc h2 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 36px 0 8px;
  text-wrap: balance;
}
.doc p, .doc li { color: color-mix(in srgb, var(--ink) 86%, var(--bg)); text-wrap: pretty; }
.doc p { margin: 0 0 14px; }
.doc ul { margin: 0 0 14px; padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--muted); }
.doc strong { font-weight: 650; color: var(--ink); }
.meta { color: var(--muted) !important; font-size: 15px; }
.lead { font-size: 19px; color: var(--muted) !important; margin: 4px 0 28px !important; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 22px 6px;
  margin-bottom: 12px;
}
.card h2 { margin: 0 0 6px; font-size: 17px; }

/* Home, until the real landing page. */
.hero {
  text-align: center;
  padding: 10vh 0 4vh;
}
.hero img {
  border-radius: 26px;
  box-shadow: 0 0 0 1px var(--hairline), 0 12px 32px rgb(0 0 0 / 0.12);
}
.hero h1 {
  font-size: clamp(40px, 9vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 24px 0 8px;
}
.hero .lead { max-width: 30ch; margin: 0 auto 12px !important; text-wrap: balance; }

footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 32px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
}
footer p { margin: 8px 0 0; }
.langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-left: -2px; }
.langs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  text-decoration: none;
  font-weight: 600;
}
.langs a[aria-current="true"] { color: var(--ink); }

@media (max-width: 420px) {
  .top nav a { padding: 0 8px; font-size: 14px; }
  main { padding-top: 28px; }
}
