:root {
  color-scheme: light dark;
  --bg: #f3f1ec;
  --ink: #1c2430;
  --muted: #3e4a57;
  --rule: #d5cfc3;
  --accent: #1a433c;
  --accent-ink: #f7f4ee;
  --focus: #8a3e0c;
  --shadow: 0 1px 0 rgb(28 36 48 / 6%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --ink: #ece7de;
    --muted: #c4bfb4;
    --rule: #2e363d;
    --accent: #d5ebe3;
    --accent-ink: #10211c;
    --focus: #f0b36a;
    --shadow: none;
  }
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, transparent, rgb(28 36 48 / 4%)),
    var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  line-height: 1.5;
}

main {
  width: min(100%, 26rem);
  padding: clamp(1.75rem, 5vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg) 88%, white);
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  main {
    background: color-mix(in srgb, var(--bg) 82%, white);
  }
}

.kicker {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.25rem, 8vw, 3rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.lede {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 2.75rem;
  min-width: 8.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 0.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
}

.sign-in:hover {
  filter: brightness(1.08);
}

.sign-in:focus {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sign-in:focus:not(:focus-visible) {
  outline: none;
}

.sign-in:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.privacy {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
