/*
 * Home's pages in the apps' v4 look: the tokens copied from packages/ui/src/styles/theme.css (Home's
 * image has no Node build). Keep them in step when the theme changes.
 */
:root {
  color-scheme: light;
  --radius: 0.625rem;
  --background: #f2f1f6;
  --foreground: #1d1d1f;
  --card: rgb(255 255 255 / 0.5);
  --primary: #1d1d1f;
  --primary-foreground: #fff;
  --secondary: rgb(90 80 130 / 0.09);
  --muted-foreground: rgb(60 60 67 / 0.62);
  --destructive: oklch(0.6 0.21 22);
  --ok: oklch(0.58 0.13 165);
  --border: rgb(60 60 67 / 0.12);
  --input: rgb(60 60 67 / 0.16);
  --ring: oklch(0.6 0.15 295 / 0.6);
  --rim: rgb(255 255 255 / 0.85);
  --glass-shadow: 0 14px 34px -14px rgb(60 30 110 / 0.28);
  --wash-1: oklch(0.9 0.055 295 / 0.85);
  --wash-2: oklch(0.92 0.045 340 / 0.7);
  --wash-3: oklch(0.93 0.035 230 / 0.75);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #000;
    --foreground: #f5f5f7;
    --card: rgb(255 255 255 / 0.07);
    --primary: #f5f5f7;
    --primary-foreground: #000;
    --secondary: rgb(255 255 255 / 0.1);
    --muted-foreground: rgb(235 235 245 / 0.6);
    --destructive: oklch(0.73 0.14 22);
    --ok: oklch(0.84 0.1 165);
    --border: rgb(255 255 255 / 0.1);
    --input: rgb(255 255 255 / 0.14);
    --ring: oklch(0.74 0.12 295 / 0.6);
    --rim: rgb(255 255 255 / 0.12);
    --glass-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.6);
    --wash-1: oklch(0.32 0.09 295 / 0.55);
    --wash-2: oklch(0.3 0.08 340 / 0.45);
    --wash-3: oklch(0.3 0.06 230 / 0.45);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2.5rem 1rem;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(60rem 40rem at 10% 0%, var(--wash-1), transparent 70%),
    radial-gradient(50rem 40rem at 100% 30%, var(--wash-2), transparent 70%),
    radial-gradient(60rem 40rem at 30% 100%, var(--wash-3), transparent 70%),
    var(--background);
}

.card {
  width: 100%;
  max-width: 26rem;
  padding: 1.75rem;
  border-radius: calc(var(--radius) * 2);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--rim), var(--glass-shadow);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
}

.mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 0.75rem;
  border-radius: 0.875rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 1.5rem;
}

h1 { font-size: 1.35rem; margin: 0 0 0.25rem; text-align: center; letter-spacing: -0.01em; }
h2 { font-size: 0.8rem; margin: 1.5rem 0 0.5rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
p { margin: 0.5rem 0; }
.muted, small { color: var(--muted-foreground); }
small { display: block; font-size: 0.8rem; }
a { color: inherit; text-underline-offset: 3px; }

.stack { display: flex; flex-direction: column; gap: 0.9rem; margin-top: 1.25rem; }
.row { display: flex; gap: 0.4rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; font-weight: 500; }

input {
  font: inherit;
  min-height: 2.75rem;
  padding: 0 0.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--input);
  background: var(--card);
  color: inherit;
}
input:focus-visible, button:focus-visible, .button:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }

button, .button {
  font: inherit;
  font-weight: 600;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.ghost { background: var(--secondary); color: var(--foreground); }

.alert { color: var(--destructive); font-size: 0.9rem; }
.notice { color: var(--ok); font-size: 0.9rem; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius);
  background: var(--secondary);
}
.list li form { margin: 0; }
.list li button { min-height: 2.5rem; }
.highlight { outline: 2px solid var(--ring); }
code { font: 600 0.95rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.05em; }
