/* The desktop app's palette and type (apps/desktop/src/index.css), light and dark. */
@font-face {
  font-family: "Geist";
  src: url("/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(0.985 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --border: oklch(0.922 0 0);
  --primary: oklch(0.553 0.195 38.402);
  --primary-foreground: oklch(0.985 0 0);
  --ring: oklch(0.705 0.213 47.604);
  --radius: 0.625rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.205 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --border: oklch(1 0 0 / 10%);
    --primary: oklch(0.57 0.2 40);
    --ring: oklch(0.553 0.195 38.402);
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--muted-foreground);
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--ring) 50%, transparent);
  outline-offset: 2px;
  border-radius: 4px;
}

.page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1rem;
}

header.page {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  border-radius: 22%;
  box-shadow: 0 0 0 1px var(--border);
}

nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

nav a {
  color: var(--muted-foreground);
  text-decoration: none;
}

nav a:hover {
  color: var(--foreground);
}

main {
  padding-bottom: 3rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 650;
  margin: 2.5rem 0 1rem;
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 2.75rem 0 0.75rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.375rem;
}

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

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.375rem;
}

code {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.0625em 0.3em;
  overflow-wrap: anywhere;
}

.lead {
  font-size: 1.1875rem;
  color: var(--muted-foreground);
  max-width: 38rem;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 0.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-weight: 500;
  text-decoration: none;
}

.button:hover {
  background: var(--card);
}

.button.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

.button.primary:hover {
  background: color-mix(in oklch, var(--primary) 90%, black);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.875rem;
  padding: 0;
  list-style: none;
}

.cards li {
  margin: 0;
  padding: 1.125rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
}

.cards p {
  margin: 0;
  color: var(--muted-foreground);
}

.note {
  margin-top: 2.5rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.prose h2 {
  margin-top: 2.25rem;
}

footer.page {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

footer nav {
  font-size: inherit;
}
