@import url("./lexense-theme.css");

* {
  box-sizing: border-box;
}

body {
  display: grid;
  place-items: center;
  min-height: 100svh;
  margin: 0;
  padding: clamp(1.5rem, 6vw, 4rem);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: system-ui, sans-serif;
}

main {
  width: min(100%, 40rem);
  min-width: 0;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid hsl(var(--border));
  font-size: 1.25rem;
  font-weight: 600;
}

h1 {
  margin: clamp(2.5rem, 7vw, 4rem) 0 1.25rem;
  font:
    normal clamp(2.75rem, 6vw, 4.75rem) / 1.05 Georgia,
    serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p {
  max-width: 62ch;
  margin: 0;
  color: hsl(var(--muted-foreground));
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
}

a {
  color: hsl(var(--primary));
  overflow-wrap: anywhere;
  text-underline-offset: 0.2em;
}

a:focus-visible,
summary:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 3px;
}

article p {
  margin-block: 1rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

article h2 {
  margin-block: 2rem 0.5rem;
  font:
    normal 1.6rem / 1.2 Georgia,
    serif;
}

details {
  margin-block: 1.5rem;
  line-height: 1.7;
}

summary {
  cursor: pointer;
}

@media (prefers-color-scheme: dark) and (scripting: none) {
  :root {
    color-scheme: dark;
  }
  body {
    background: Canvas;
    color: CanvasText;
  }
  p {
    color: CanvasText;
  }
  a {
    color: LinkText;
  }
}
