@font-face {
  font-family: DM Sans;
  src: url(/media/dm-sans.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Barlow Condensed;
  src: url(/media/barlow-bold.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --forest: #193b2e;
  --ink: #1d3026;
  --muted: #536457;
  --orange: #ee9a63;
  --paper: #f7f8f3;
  font:
    16px/1.5 "DM Sans",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body,
h1,
p,
figure {
  margin: 0;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
input,
button,
a {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ab562a;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  background: white;
  padding: 10px;
  z-index: 1;
}
.skip:focus {
  top: 6px;
}
header {
  border-bottom: 1px solid #d3dacf;
}
.mast {
  min-height: 69px;
  margin: auto;
  width: min(1190px, 90%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    700 29px/1 "Barlow Condensed",
    sans-serif;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.back,
.text-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-underline-offset: 4px;
  font-size: 0.9rem;
}
main {
  margin: auto;
  max-width: 1440px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  min-height: calc(100svh - 70px);
  align-items: stretch;
}
.entry {
  width: min(100%, 570px);
  align-self: center;
  margin-inline: auto;
  padding: 44px clamp(25px, 5vw, 80px);
  animation: arrive 0.18s ease-out;
}
figure {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  background: #d5d6bd;
}
figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
h1 {
  font:
    700 clamp(46px, 5vw, 76px) / 0.99 "Barlow Condensed",
    "Arial Narrow",
    sans-serif;
  letter-spacing: -0.032em;
  color: var(--forest);
  text-wrap: balance;
}
.lede {
  margin: 15px 0 24px;
  color: var(--muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.lede strong {
  color: var(--ink);
}
label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}
input:not([type="hidden"]) {
  display: block;
  width: 100%;
  height: 50px;
  color: var(--ink);
  border: 1px solid #96a699;
  border-radius: 5px;
  background: white;
  padding: 10px 12px;
  font-size: 16px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  padding: 11px 16px;
  margin-top: 13px;
  color: var(--ink);
  background: var(--orange);
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}
.primary:hover {
  background: #f4ab7a;
}
.primary:disabled {
  opacity: 0.75;
}
.mode-switch {
  display: inline-flex;
  max-width: 100%;
  padding: 3px;
  gap: 2px;
  background: #e5ebdf;
  border: 1px solid #d4ddce;
  border-radius: 6px;
  margin-bottom: 25px;
}
.mode-switch button {
  background: transparent;
  color: #4b5d51;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 700;
}
.mode-switch [aria-pressed="true"] {
  background: var(--forest);
  color: white;
}
.hint {
  margin: 13px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.error-note {
  margin: 10px 0 0;
  color: #873b23;
  line-height: 1.45;
}
.code {
  letter-spacing: 0.26em;
  font-variant-numeric: tabular-nums;
}
.recovery {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.text-button {
  background: none;
  border: 0;
  padding: 2px 0;
  font-weight: 600;
  text-decoration: underline;
}
.text-button:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}
@keyframes arrive {
  from {
    opacity: 0.65;
    transform: translateY(3px);
  }
}
@media (max-width: 740px) {
  .mast {
    min-height: 61px;
  }
  .brand {
    font-size: 26px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  main {
    display: flex;
    min-height: calc(100svh - 62px);
    flex-direction: column;
  }
  .entry {
    width: min(100%, 500px);
    padding: clamp(26px, 5vh, 44px) 5% 28px;
  }
  .mode-switch {
    margin-bottom: 20px;
  }
  figure {
    flex: 1 0 142px;
    min-height: 142px;
  }
  figure img {
    object-position: right 52%;
  }
  .lede {
    margin: 10px 0 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entry {
    animation: none;
  }
}
