@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600&family=Newsreader:ital,opsz,wght@1,6..72,400&display=swap');

:root {
  color-scheme: light;
  --paper: #f2efe6;
  --ink: #191a17;
  --muted: #74746c;
  --line: #cbc8bd;
  --acid: #d8ff43;
  --red: #bb392d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

main { width: min(1180px, calc(100% - 48px)); min-height: 100vh; margin-inline: auto; display: grid; grid-template-columns: minmax(280px, .85fr) minmax(440px, 1.15fr); align-items: center; gap: clamp(60px, 9vw, 140px); padding: clamp(56px, 10vh, 110px) 0; }
.intro { align-self: center; }
.eyebrow { margin: 0 0 18px; font: 500 11px "DM Mono"; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(64px, 7.2vw, 106px); line-height: .88; letter-spacing: -.075em; font-weight: 500; }
h1 em { font-family: Newsreader, serif; font-weight: 400; }

.workspace { min-width: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 25px; border-top: 1px solid var(--line); }
.steps span { padding-top: 13px; color: #99988f; font: 11px "DM Mono"; text-transform: uppercase; }
.steps span::before { content: ""; display: block; width: 0; height: 2px; margin-top: -14px; margin-bottom: 13px; background: var(--ink); transition: width .35s; }
.steps span.active { color: var(--ink); }
.steps span.active::before { width: 100%; }
.steps b { display: block; margin: 7px 0 0 18px; font-weight: 400; }

.dropzone { min-height: 370px; padding: 55px 30px; border: 1px dashed #9c9b92; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--ink); background: rgb(255 255 255 / .3); transform: translateY(-2px); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-icon { position: relative; width: 64px; height: 78px; margin-bottom: 36px; border: 1.5px solid var(--ink); background: var(--paper); transform: rotate(-2deg); }
.file-icon::before { content: ""; position: absolute; right: -1.5px; top: -1.5px; border-left: 18px solid transparent; border-bottom: 18px solid var(--ink); }
.file-icon::after { content: ""; position: absolute; right: 0; top: 0; border-left: 15px solid transparent; border-bottom: 15px solid var(--paper); }
.file-icon i { display: block; width: 31px; height: 1px; margin: 10px 0 0 13px; background: var(--ink); }
.file-icon i:first-child { margin-top: 32px; }
.dropzone strong { max-width: 100%; font-size: 20px; letter-spacing: -.03em; text-align: center; overflow-wrap: anywhere; }
.dropzone > span:last-child { margin-top: 10px; color: var(--muted); font: 12px "DM Mono"; text-align: center; }
.file-limit { margin: 12px 0 0; color: var(--muted); font: 500 10px "DM Mono"; letter-spacing: .08em; text-align: center; text-transform: uppercase; }

#submit-button { width: 100%; height: 68px; border: 0; margin-top: 10px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: white; font: 500 13px "DM Mono"; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transition: background .2s, color .2s; }
#submit-button:not(:disabled):hover { background: var(--acid); color: var(--ink); }
#submit-button:disabled { opacity: .25; cursor: not-allowed; }

.progress-panel { min-height: 450px; border: 1px solid var(--ink); padding: 56px; align-items: center; justify-items: center; text-align: center; }
.progress-panel:not([hidden]) { display: grid; }
.progress-panel h2 { margin: 0 0 14px; font-size: 31px; letter-spacing: -.045em; }
.progress-panel p:last-child { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.6; }
.radar { position: relative; display: grid; place-items: center; width: 130px; height: 130px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 50%; }
.radar::before, .radar::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.radar::before { width: 82px; height: 82px; }
.radar::after { width: 35px; height: 35px; }
.radar span { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.radar i { position: absolute; inset: 50% 50% 0; transform-origin: left top; width: 61px; border-top: 1px solid var(--ink); animation: scan 2s linear infinite; }
@keyframes scan { to { transform: rotate(360deg); } }

.reply { border: 1px solid var(--ink); background: rgb(255 255 255 / .25); }
.reply-heading { min-height: 150px; padding: 34px; display: flex; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--ink); }
.reply h2 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.04em; overflow-wrap: anywhere; }
.check { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--acid); font-size: 22px; }
.reply dl { margin: 0; padding: 8px 34px; border-bottom: 1px solid var(--line); }
.reply dl div { display: grid; grid-template-columns: 90px 1fr; padding: 13px 0; }
.reply dt { color: var(--muted); font: 10px "DM Mono"; text-transform: uppercase; letter-spacing: .1em; }
.reply dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.reply pre { margin: 0; padding: 36px 34px; min-height: 190px; white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.7 "DM Mono"; }
.text-button { width: calc(100% - 68px); margin: 0 34px 30px; padding: 17px 0; border: 0; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; background: transparent; font: 500 11px "DM Mono"; text-transform: uppercase; cursor: pointer; }
.error { padding: 17px 20px; color: var(--red); border: 1px solid var(--red); font: 12px/1.5 "DM Mono"; }

[hidden] { display: none !important; }

@media (max-width: 800px) {
  main { width: min(100% - 30px, 620px); min-height: auto; grid-template-columns: 1fr; gap: 65px; padding: 72px 0 85px; }
  h1 { font-size: clamp(53px, 17vw, 76px); }
  .dropzone { min-height: 320px; }
  .progress-panel { padding: 38px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

