:root {
  color-scheme: light dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --background: #faf9f6;
  --text: #252231;
  --muted: #605b6c;
  --primary: #5c47f5;
  --primary-hover: #4d37de;
  --secondary-text: #453b65;
  --secondary-border: #847c93;
  --secondary-hover: #efedf7;
  --disabled-background: #eeecf3;
  --disabled-text: #6b6577;
  --disabled-border: #dedbe6;
  --focus: #5c47f5;
  background: var(--background);
  color: var(--text);
}

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

body {
  display: grid;
  place-items: center;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  padding: 3rem 1.25rem;
}

main {
  inline-size: 100%;
  max-inline-size: 26rem;
  min-inline-size: 0;
  text-align: center;
  overflow-wrap: anywhere;
}

.brand {
  display: block;
  inline-size: 4.5rem;
  block-size: 4.5rem;
  margin-inline: auto;
}

h1 {
  margin: 1.75rem 0 1rem;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.05rem;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.actions {
  display: grid;
  gap: 0.75rem;
  margin-block-start: 2rem;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3.25rem;
  padding: 0.875rem 1.25rem;
  border: 0.0625rem solid transparent;
  border-radius: 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.action--primary {
  background: var(--primary);
  color: #ffffff;
}

.action--secondary {
  border-color: var(--secondary-border);
  color: var(--secondary-text);
}

.action:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
}

.action[aria-disabled="true"] {
  border-color: var(--disabled-border);
  background: var(--disabled-background);
  color: var(--disabled-text);
  cursor: default;
}

@media (hover: hover) {
  .action--primary:not([aria-disabled="true"]):hover {
    background: var(--primary-hover);
  }

  .action--secondary:not([aria-disabled="true"]):hover {
    background: var(--secondary-hover);
  }
}

@media (max-width: 24rem) {
  h1 {
    font-size: 1.875rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #17161c;
    --text: #f6f3ff;
    --muted: #b7b2c3;
    --secondary-text: #e0daf6;
    --secondary-border: #847c93;
    --secondary-hover: #282431;
    --disabled-background: #2b2835;
    --disabled-text: #aaa4bb;
    --disabled-border: #3d384b;
    --focus: #b9acff;
  }
}
