:root {
  --ink: #1a1f1c;
  --muted: #5c6b63;
  --paper: #f3efe6;
  --panel: #fffdf8;
  --line: #d5cdc0;
  --accent: #2d6a4f;
  --accent-dark: #1b4332;
  --danger: #9b2226;
  --ok: #1b4332;
  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: "Segoe UI", "Candara", "Calibri", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, #e8f0ea 0%, transparent 55%),
    linear-gradient(165deg, #ebe4d6 0%, var(--paper) 45%, #e2ddd2 100%);
}

.shell {
  width: min(560px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 0 3rem;
}

.brand .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}

.form {
  margin-top: 2rem;
  padding: 1.35rem 1.35rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.form label[for="license"] {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 7rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink);
}

textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, white);
  border-color: var(--accent);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.file {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  background: #f7f4ee;
  cursor: pointer;
  font-size: 0.9rem;
}

.file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

button[type="submit"] {
  margin-left: auto;
  border: 0;
  padding: 0.65rem 1.15rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--accent-dark); }
button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  line-height: 1.45;
}

.status.error {
  border-color: color-mix(in srgb, var(--danger) 35%, var(--line));
  color: var(--danger);
}

.status.ok {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
  color: var(--ok);
}

.status a {
  color: inherit;
  font-weight: 600;
}

.fine {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.9em;
}
