:root {
  --paper: #f4efe6;
  --ink: #1a1814;
  --muted: #5e584e;
  --rule: #d9d0c3;
  --green: #1f4d3a;
  --hot: #e7efe9;
  --card: #fffdf8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  line-height: 1.45;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.2rem 1.3rem 4rem;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0.2rem 0 0;
  font-family: "Iowan Old Style", Palatino, Georgia, serif;
  font-size: 3.4rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0.35rem 0 1.8rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 9.5rem;
  border: 1.5px dashed var(--green);
  border-radius: 1.1rem;
  cursor: pointer;
  text-align: center;
  padding: 1rem;
}

.drop strong { font-size: 1.2rem; }

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

.drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.drop.hot,
.drop:focus-within {
  background: var(--hot);
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

form { margin-top: 1.4rem; }

label { font-size: 0.92rem; }

input[type="text"],
input[type="search"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 0.7rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.row, .actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.row button,
.tools .export {
  flex: 0 0 auto;
  white-space: nowrap;
}

.row { margin-top: 0.45rem; }

.row input { margin-top: 0; }

button, .export {
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.15rem;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}

button.primary, .export {
  background: var(--green);
  color: var(--paper);
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.status {
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.3;
  margin: 1.7rem 0 0.8rem;
  min-height: 2.6rem;
}

.actions { min-height: 2.6rem; }

#columns { margin-top: 1rem; }

#column-list { display: flex; flex-direction: column; gap: 0.5rem; }

.choice {
  text-align: left;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 0.8rem;
  padding: 0.8rem 0.95rem;
}

.choice b { display: block; }

.choice span { color: var(--muted); font-size: 0.92rem; }

.tools {
  display: flex;
  gap: 0.8rem;
  align-items: end;
  margin-top: 2rem;
}

.grow { flex: 1; }

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
}

th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  padding: 0.35rem 0.4rem 0.45rem 0;
  border-bottom: 1px solid var(--ink);
}

td {
  padding: 0.75rem 0.6rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}

#empty { color: var(--muted); }

.foot {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  h1 { font-size: 2.6rem; }
  .row, .tools { flex-direction: column; align-items: stretch; }
  .export { text-align: center; }
}
