:root {
  --brand-ink: #0a0a0a;
  --brand-paper: #f7f8fa;
  --brand-cobalt: #1d4ed8;
  --brand-line: #d9dee8;
}

html {
  font-family: "Avenir Next", Avenir, "Segoe UI", ui-sans-serif, system-ui, sans-serif;
}

body {
  letter-spacing: -0.008em;
}

a,
button,
input,
select,
textarea {
  outline-offset: 3px;
}

a:has(> button) {
  display: inline-block;
}

:focus-visible {
  outline: 2px solid var(--brand-cobalt);
}

.brand-wordmark {
  display: inline-block;
  max-width: min(14rem, 48vw);
  width: auto;
}

.dark .brand-wordmark {
  filter: invert(1);
}

.dark .text-primary {
  color: #60a5fa;
}

.brand-auth-shell {
  min-height: calc(100vh - 4rem);
  display: grid;
  align-items: stretch;
}

.brand-auth-story {
  display: none;
  background: var(--brand-ink);
  color: #fff;
  padding: clamp(3rem, 7vw, 7rem);
  overflow: hidden;
  position: relative;
}

.brand-auth-story::after {
  border: 1px solid rgb(255 255 255 / 0.18);
  content: "";
  height: 24rem;
  position: absolute;
  right: -8rem;
  top: 50%;
  transform: translateY(-50%) rotate(12deg);
  width: 24rem;
}

.brand-auth-panel {
  align-items: center;
  background: var(--brand-paper);
  display: flex;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.brand-auth-form {
  background: #fff;
  border: 1px solid var(--brand-line);
  border-radius: 14px;
  box-shadow: 0 22px 60px -34px rgb(15 23 42 / 0.45);
  max-width: 30rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  width: 100%;
}

.dark .brand-auth-panel {
  background: #080e1b;
}

.dark .brand-auth-form {
  background: #0f172a;
  border-color: #334155;
  box-shadow: 0 22px 60px -34px rgb(0 0 0 / 0.75);
}

.brand-home-hero {
  background: var(--brand-ink);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.brand-home-hero::after {
  border: 1px solid rgb(255 255 255 / 0.16);
  content: "";
  height: 28rem;
  position: absolute;
  right: -10rem;
  top: -13rem;
  transform: rotate(18deg);
  width: 28rem;
}

.brand-home-title {
  font-size: clamp(2.25rem, 6vw, 5.25rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 13ch;
  text-wrap: balance;
}

.brand-home-copy {
  color: #cbd5e1;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
  max-width: 56ch;
}

.brand-category-row {
  border-top: 1px solid var(--brand-line);
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.brand-category-row:last-child {
  border-bottom: 1px solid var(--brand-line);
}

.brand-category-row:hover {
  background: #fff;
}

@media (min-width: 1024px) {
  .brand-auth-shell {
    grid-template-columns: minmax(0, 1.05fr) minmax(32rem, 0.95fr);
  }

  .brand-auth-story {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
