:root {
  color-scheme: light;
  --ink: #15352f;
  --muted: #61736e;
  --paper: #f4f1e8;
  --card: #fffefa;
  --line: #dce3d9;
  --accent: #bd5e3b;
  --accent-dark: #8e3e28;
  font-family: 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  padding: 1.5rem;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 14%, #ddc9a2 0, transparent 32rem),
    radial-gradient(ellipse at 88% 82%, #bbd0c1 0, transparent 34rem),
    linear-gradient(135deg, #f5f2e9, #e8eee8);
}

.panel {
  width: min(100%, 34rem);
  padding: clamp(2rem, 7vw, 4rem);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 24px 70px #233d341c;
  animation: arrive 420ms ease-out both;
}

.mark {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 1rem .45rem 1rem .45rem;
  color: #fffaf3;
  background: var(--accent);
  font: 700 1.4rem 'Segoe UI Variable', 'Segoe UI', sans-serif;
}

.eyebrow {
  margin: 2.1rem 0 .65rem;
  color: var(--accent-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font: 700 clamp(2rem, 7vw, 3.25rem)/1.04 'Segoe UI Variable', 'Segoe UI', sans-serif;
  letter-spacing: -.045em;
}

#message {
  max-width: 34ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.progress {
  height: .3rem;
  overflow: hidden;
  margin-top: 2rem;
  border-radius: 999px;
  background: #e4e8df;
}

.progress span {
  display: block;
  width: 36%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: travel 1.25s ease-in-out infinite alternate;
}

.progress[hidden] { display: none; }

.return-link {
  display: inline-block;
  margin-top: 1.6rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
}

.return-link:focus-visible { outline: 3px solid #bd5e3b66; outline-offset: 4px; }

@keyframes arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes travel { from { transform: translateX(0); } to { transform: translateX(180%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
