:root {
  color-scheme: light;
  --ink: #141414;
  --paper: #f1efe8;
  --acid: #d8ff38;
  --blue: #1746ff;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.75fr);
  min-height: calc(100vh - 58px);
}

.hero {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 76px);
  border-right: 1px solid var(--ink);
  background:
    linear-gradient(rgba(20, 20, 20, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.055) 1px, transparent 1px);
  background-size: 28px 28px;
}

.eyebrow, .fact > span, footer {
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow { margin: 0 0 clamp(48px, 9vh, 110px); }

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(56px, 9vw, 138px);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.intro {
  max-width: 650px;
  margin: 38px 0 44px;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
}

.converter { margin-top: auto; }

input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.drop-zone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 116px;
  padding: 22px;
  border: 2px solid var(--ink);
  background: rgba(241, 239, 232, 0.88);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.drop-zone:hover, .drop-zone.dragging { background: var(--acid); }
.drop-zone:focus-within { outline: 4px solid var(--blue); outline-offset: 3px; }
.drop-number { align-self: start; font: 700 13px/1 "Courier New", monospace; }
.drop-copy { display: grid; gap: 7px; }
.drop-copy strong { font-size: clamp(17px, 2vw, 25px); }
.drop-copy small { font: 700 11px/1.4 "Courier New", monospace; text-transform: uppercase; }

.choose {
  padding: 12px 15px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 22px;
  border: 0;
  color: white;
  background: var(--blue);
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

button:hover { background: var(--ink); }
button:disabled { cursor: wait; opacity: 0.68; }
.status { min-height: 24px; margin: 12px 0 0; font-size: 14px; font-weight: 700; }
.status.error { color: #b00020; }

.facts { display: grid; grid-template-rows: repeat(3, auto) 1fr; background: var(--ink); color: white; }
.fact, .caveat { padding: clamp(28px, 4vw, 52px); border-bottom: 1px solid rgba(255,255,255,0.25); }
.fact h2 { margin: 24px 0 10px; font-size: clamp(24px, 2.5vw, 39px); line-height: 0.98; letter-spacing: -0.04em; }
.fact p, .caveat p { margin: 0; color: rgba(255,255,255,0.72); line-height: 1.5; }
.caveat { align-self: end; border-bottom: 0; background: var(--acid); color: var(--ink); }
.caveat strong { font-size: 18px; text-transform: uppercase; }
.caveat p { margin-top: 12px; color: var(--ink); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  padding: 21px clamp(28px, 5vw, 76px);
  color: white;
  background: var(--blue);
}

@media (max-width: 900px) {
  main { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; border-right: 0; border-bottom: 1px solid var(--ink); }
  .eyebrow { margin-bottom: 60px; }
}

@media (max-width: 560px) {
  .hero { padding: 24px 18px 36px; }
  h1 { font-size: clamp(51px, 18vw, 76px); }
  .drop-zone { grid-template-columns: auto 1fr; }
  .choose { grid-column: 2; justify-self: start; }
  footer { flex-direction: column; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
