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

:root {
  color-scheme: light;
  --v2-font-display: "Assistant", Arial, sans-serif;
  --v2-font-body: "Assistant", Arial, sans-serif;
  --v2-font-data: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --v2-color-success: #17633f;
  --v2-color-error: #8e1b1b;
  --v2-gutter: clamp(1rem, 4.5vw, 4.5rem);
  --v2-rule: 1px solid var(--v2-color-rule);
  --v2-motion-fast: 120ms;
  --v2-motion-base: 180ms;
  --v2-motion-slow: 280ms;
  --v2-ease: cubic-bezier(.2, .75, .25, 1);
}

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  background: var(--v2-color-paper);
}

body {
  min-width: 20rem;
  margin: 0;
  color: var(--v2-color-ink);
  background: var(--v2-color-paper);
  font-family: var(--v2-font-body);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.v2-no-scroll {
  overflow: hidden;
}

main {
  display: block;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  margin: 0;
  color: inherit;
  font: inherit;
}

select {
  height: 3rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

button,
summary,
select {
  cursor: pointer;
}

button {
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

h1,
h2,
h3,
p {
  overflow-wrap: normal;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
blockquote {
  margin-block-start: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--v2-color-paper-raised);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--v2-color-ink);
}

.v2-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.v2-skip-link {
  position: fixed;
  z-index: 10000;
  inset-block-start: .75rem;
  inset-inline-start: .75rem;
  padding: .8rem 1rem;
  color: var(--v2-color-paper);
  background: var(--v2-color-ink);
  border: 2px solid var(--v2-color-route);
  transform: translateY(-180%);
}

.v2-skip-link:focus {
  transform: translateY(0);
}

.v2-container {
  width: min(100%, var(--v2-page-width));
  margin-inline: auto;
  padding-inline: var(--v2-gutter);
}

.v2-main {
  min-height: 45vh;
}

.v2-kicker {
  margin-block-end: 1.1rem;
  color: var(--v2-color-signal);
  font-family: var(--v2-font-data);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.v2-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.7;
}

.v2-icon-button {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.v2-button {
  max-width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--v2-color-ink);
  color: var(--v2-color-ink);
  background: transparent;
  font-family: var(--v2-font-data);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--v2-motion-fast) var(--v2-ease), background var(--v2-motion-fast) var(--v2-ease), border-color var(--v2-motion-fast) var(--v2-ease);
}

.v2-button:hover {
  color: var(--v2-color-paper);
  background: var(--v2-color-ink);
}

.v2-button--primary {
  color: var(--v2-color-paper);
  background: var(--v2-color-ink);
}

.v2-button--primary:hover {
  color: var(--v2-color-paper);
  background: var(--v2-color-signal);
}

.v2-button--route {
  color: var(--v2-color-ink);
  background: var(--v2-color-route);
  border-color: var(--v2-color-route);
}

.v2-button--route:hover {
  color: var(--v2-color-paper);
  background: var(--v2-color-signal);
  border-color: var(--v2-color-signal);
}

.v2-button[disabled],
.v2-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
}

label {
  display: block;
  margin-block-end: .45rem;
  font-family: var(--v2-font-data);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 3rem;
  padding: .65rem .8rem;
  border: 2px solid var(--v2-color-ink-soft);
  border-radius: 0;
  color: var(--v2-color-ink);
  background: var(--v2-color-paper-raised);
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--v2-color-ink);
}

[aria-invalid="true"] {
  border-color: var(--v2-color-error);
}

.v2-form-message {
  margin-block: .8rem 0;
  font-size: .9rem;
}

.v2-form-message--success {
  color: var(--v2-color-success);
}

.v2-form-message--error {
  color: var(--v2-color-error);
}

.v2-logo__image {
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.v2-logo__text {
  font-family: var(--v2-font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: 1;
}

.v2-password-shell {
  min-height: 100vh;
  background: var(--v2-color-route);
}

.v2-password-header {
  min-height: 5rem;
  padding-inline: var(--v2-gutter);
  display: flex;
  align-items: center;
  border-block-end: 1px solid var(--v2-color-ink);
}

.v2-password-header a {
  display: block;
  max-width: 8.25rem;
}

.v2-password {
  min-height: calc(100vh - 5rem);
  padding-block: clamp(4rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
}

.v2-password > * {
  min-width: 0;
}

.v2-password h1 {
  max-width: 12ch;
  margin-block-end: 1.2rem;
  font-family: var(--v2-font-display);
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 900;
  letter-spacing: -.065em;
  line-height: .88;
  text-transform: uppercase;
}

.v2-password > p,
.v2-password__form {
  max-width: 38rem;
}

.v2-password__field {
  display: grid;
  grid-template-columns: 1fr auto;
}

.v2-password__owner {
  margin-block-start: 1.5rem;
  font-size: .85rem;
}

@media (max-width: 44.99rem) {
  h1,
  h2,
  h3 {
    -webkit-hyphens: none;hyphens: none;
    overflow-wrap: break-word;
    text-wrap: wrap;
  }

  .v2-button {
    white-space: normal;
  }

  .v2-password__field {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
