/* LwC Labs landing page. Colours match the Keyring app (web/app/globals.css). */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: oklch(0.985 0.003 158);
  --foreground: oklch(0.17 0.01 160);
  --primary: oklch(0.391 0.067 157.8);
  --primary-foreground: oklch(0.985 0 0);
  --muted-foreground: oklch(0.5 0.015 160);
  --accent: oklch(0.939 0.015 158.2);
  --border: oklch(0.91 0.008 158);
  --radius: 0.625rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.191 0.007 164.1);
    --foreground: oklch(0.94 0.005 158);
    --primary: oklch(0.75 0.087 156.8);
    --primary-foreground: oklch(0.2 0.03 160);
    --muted-foreground: oklch(0.7 0.015 160);
    --accent: oklch(0.275 0.028 160.7);
    --border: oklch(1 0 0 / 10%);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 7rem) 1rem 3rem;
}

.lockup img {
  display: block;
  width: min(100%, 20rem);
  height: auto;
}

h1 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1rem; }

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

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

.help {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem 1.5rem;
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.help h2 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.button {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.625rem 1.125rem;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: calc(var(--radius) - 2px);
  font-weight: 600;
  text-decoration: none;
}

.button:hover { filter: brightness(1.08); }

footer {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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