:root {
  color: #28231f;
  background: #f4f0e8;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --ink: #28231f;
  --muted: #70675f;
  --line: #d8d0c5;
  --paper: #f9f6f0;
  --rust: #9b3f2c;
  --rust-dark: #7d2f21;
  --focus: #185d9c;
}

* {
  box-sizing: border-box;
}

body {
  overflow-wrap: anywhere;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
}

button,
input {
  max-width: 100%;
  min-width: 0;
  font: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 36%, transparent);
  outline-offset: 3px;
}

.masthead {
  min-height: 76px;
  padding: 18px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid #3d3732;
  background: var(--ink);
  color: #fffaf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.2em;
  text-decoration: none;
}

.masthead-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid #615a54;
  border-radius: 999px;
}

.locale-switch a {
  padding: 5px 8px;
  border-radius: 999px;
  color: #d9d0c5;
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
}

.locale-switch a[aria-current="page"] {
  background: #fffaf3;
  color: var(--ink);
}

.session-state {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d9d0c5;
  font-size: 0.78rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #bc765e;
  transition: background 180ms ease, transform 180ms ease;
}

.session-state.is-verified .status-dot {
  background: #99b28e;
  transform: scale(1.15);
}

main {
  min-height: calc(100svh - 76px);
}

.access-panel,
.completion-panel {
  min-height: calc(100svh - 76px);
  padding: clamp(70px, 14vw, 170px) max(24px, calc((100vw - 860px) / 2));
  background: #eee8de;
}

.access-panel h1,
.completion-panel h1,
.title-block h1 {
  max-width: 820px;
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.rust {
  color: var(--rust);
}

.button {
  min-height: 46px;
  margin-top: 26px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 780;
  transition: background 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.button--dark {
  background: var(--ink);
  color: #fff;
}

.button--danger {
  background: var(--rust);
  color: #fff;
}

.button--danger:hover:not(:disabled) {
  background: var(--rust-dark);
}

.deletion-panel {
  padding: clamp(58px, 9vw, 112px) clamp(24px, 8vw, 130px) 112px;
}

.title-block {
  max-width: 980px;
  animation: rise-in 320ms ease-out both;
}

.consequences,
.confirmation {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(280px, 1fr);
  gap: 18px clamp(32px, 8vw, 110px);
  max-width: 980px;
  margin-top: clamp(54px, 9vw, 104px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.consequences h2,
.confirmation h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 500;
}

.consequences ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.consequences li {
  padding: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.consequences li + li {
  padding-top: 18px;
  border-top: 1px solid #e7e0d7;
}

.confirmation > div {
  grid-row: 1 / span 6;
}

.confirmation > div p:last-child {
  color: var(--muted);
  line-height: 1.55;
}

.confirmation label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.confirmation input,
.authentication input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #aaa095;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.authentication {
  display: grid;
  gap: 14px;
  width: min(100%, 460px);
  margin-top: 24px;
}

.authentication .button { justify-self: start; }

.confirmation .button {
  justify-self: start;
  margin-top: 8px;
}

.hint,
.request-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.request-status.is-error {
  color: var(--rust);
}

[hidden] {
  display: none !important;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 660px) {
  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .masthead-tools {
    justify-content: flex-start;
  }

  main,
  .access-panel,
  .completion-panel {
    min-height: calc(100svh - 101px);
  }

  .consequences,
  .confirmation {
    grid-template-columns: 1fr;
  }

  .confirmation > div {
    grid-row: auto;
  }
}

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