/* cana.pe in Canape's Catppuccin: Latte in light mode, Mocha in dark (github.com/catppuccin/palette, MIT).
   System fonts only, and nothing loaded from anywhere else. */

:root {
  color-scheme: light dark;
  --base: #eff1f5;
  --raised: #e6e9ef;   /* mantle */
  --line: #ccd0da;     /* surface0 */
  --text: #4c4f69;
  --subtext: #5c5f77;  /* subtext1 */
  --accent: #179299;   /* teal, the icon's */
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --base: #1e1e2e;
    --raised: #313244; /* surface0 */
    --line: #45475a;   /* surface1 */
    --text: #cdd6f4;
    --subtext: #a6adc8; /* subtext0 */
    --accent: #94e2d5;
  }
}

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

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

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

main { flex: 1; }

.page.home { max-width: 60rem; }

h1, h2 {
  color: var(--text);
  line-height: 1.2;
  text-wrap: balance;
}

p, li { text-wrap: pretty; }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.22em;
}

a:hover { text-decoration-thickness: 0.18em; }

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

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--raised);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

pre {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  overflow-x: auto;
  background: var(--raised);
  border-radius: 10px;
}

pre code {
  padding: 0;
  background: none;
  font-size: 0.875rem;
}

/* Home */

.hero {
  padding: clamp(3.5rem, 14vh, 8rem) 0 3rem;
  text-align: center;
}

.hero picture,
.hero img {
  display: block;
  width: 104px;
  height: 104px;
  margin: 0 auto 1.5rem;
}

.hero img { filter: drop-shadow(0 8px 18px rgb(17 17 27 / 0.16)); }

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 25rem;
  margin: 0 auto;
  color: var(--subtext);
  font-size: 1.25rem;
  line-height: 1.45;
  text-wrap: balance;
}

.lede.lead {
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.thread {
  display: grid;
  gap: 0.75rem;
  max-width: 40rem;
  padding: 0.5rem 0 2.5rem;
  color: var(--subtext);
}

.thread p { margin: 0; }
.thread strong { color: var(--text); font-weight: 600; }

.status {
  display: inline-block;
  margin: 1.75rem 0 0;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtext);
  font-size: 0.9375rem;
}

.points {
  display: grid;
  gap: 2rem;
  padding: 1rem 0 2rem;
}

.points h2,
.install h2 {
  margin: 0 0 0.35rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.points h2::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  margin-bottom: 0.85rem;
  border-radius: 2px;
  background: var(--accent);
}

.points p { margin: 0; }

.install { max-width: 40rem; padding: 1rem 0 2rem; }
.install p { margin: 0 0 0.5rem; }

/* Privacy, Support, Terms and Licenses */

.masthead { padding: 1.5rem 0 0; }

.masthead a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  text-decoration: none;
}

.masthead img {
  display: block;
  width: 32px;
  height: 32px;
}

.doc { padding: 2.5rem 0 1rem; }

.doc h1 {
  margin: 0 0 0.25rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.doc p,
.doc ul { margin: 0 0 1rem; }

.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.5rem; }
.doc li::marker { color: var(--accent); }

.meta,
.intro { color: var(--subtext); }

.meta { margin: 0 0 1.75rem; }

.doc h1 + .intro { margin-top: 1rem; }

.intro { font-size: 1.1875rem; line-height: 1.5; }

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  margin-top: 2rem;
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--subtext);
  font-size: 0.875rem;
}

footer .owner { margin-right: auto; }

footer a { text-decoration-color: var(--line); }
footer a:hover { text-decoration-color: var(--accent); }

@media (max-width: 30rem) {
  pre code { font-size: 0.8rem; }
}

@media (min-width: 46rem) {
  .points { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .hero h1 { font-size: 3.25rem; }
}

/* Licenses */

.licence {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.licence code { font-size: 0.8125rem; }
