/*
 * Tokens read off artemis.co on 3 Dec 2026.
 *
 * The site sets headings in GT Canon Light and body in Enduro. Both are
 * licensed faces, and this page loads no webfont at all: an applicant sending
 * a tax return should not have their browser calling a third party to render
 * the page. The stack below is the system grotesque, set light and tight so it
 * carries the same restraint. The wordmark does the identifying.
 */

:root {
  --ink: #000000;
  --paper: #ffffff;
  --sand: #e7dacf;
  --sand-soft: #f5efe9;
  --line: #e2e2e2;
  --muted: #5f5f5f;
  --danger: #a3261d;

  --radius: 12px;
  --col: 42rem;
  --step: 1.5rem;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- frame ---------- */

.band {
  background: var(--ink);
  padding: 2.25rem 1.5rem;
  display: flex;
  justify-content: center;
}

.wordmark {
  width: min(280px, 60vw);
  height: auto;
  display: block;
}

.page {
  max-width: var(--col);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4rem;
}

.foot {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.foot p { margin: 0; }

/* ---------- type ---------- */

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--ink);
}

.context {
  margin: 0 0 2.5rem;
  padding: 0.875rem 1rem;
  background: var(--sand-soft);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

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

.hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.fineprint {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* ---------- fields ---------- */

.field { margin-bottom: var(--step); border: 0; padding: 0; }

label, legend {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

input[type="text"], textarea {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s ease;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--ink);
}

textarea { resize: vertical; }

.choices {
  display: grid;
  gap: 0.375rem;
}

.choices label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  font-weight: 400;
  cursor: pointer;
}

.choices input { accent-color: var(--ink); width: 1rem; height: 1rem; }

/* ---------- drop zone ---------- */

.drop {
  position: relative;
  border: 1.5px dashed #c9bcb0;
  border-radius: var(--radius);
  background: var(--sand-soft);
  padding: 2.25rem 1.25rem;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.drop:hover, .drop.over {
  background: var(--sand);
  border-color: var(--ink);
}

.drop input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.drop-main { margin: 0; font-size: 0.9375rem; }

.link { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- file list ---------- */

.files { list-style: none; margin: 0.875rem 0 0; padding: 0; }

.files li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  align-items: center;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.files .name { overflow-wrap: anywhere; }
.files .size { color: var(--muted); font-size: 0.8125rem; white-space: nowrap; }

.files .bar {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.files .bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 0.2s ease;
}

.files .remove {
  border: 0;
  background: none;
  padding: 0.25rem;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
}

.files .remove:hover { color: var(--ink); }

.done-list li { border-bottom-color: var(--sand); }

/* ---------- button ---------- */

.button {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  background: var(--sand);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }

.button:disabled { opacity: 0.5; cursor: default; }

/* ---------- messages ---------- */

.error {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: #fdf2f1;
  color: var(--danger);
  font-size: 0.9375rem;
}

/* ---------- motion ---------- */

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