
:root {
  --ink: #1c1915;
  --muted: #5e584e;
  --paper: #f4efe6;
  --card: #fffdf8;
  --line: #e4d9c8;
  --pine: #1f4d3a;
  --copper: #b85c38;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -10%, #efe2cc 0%, transparent 50%),
    var(--paper);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
main { max-width: 980px; margin: 0 auto; padding: 36px 18px 64px; }
.kicker { letter-spacing: .16em; text-transform: uppercase; font-size: 12px; color: var(--copper); font-weight: 700; }
h1 { font-family: Fraunces, Georgia, serif; font-weight: 560; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 6px 0 8px; }
h2 { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; margin: 0 0 8px; }
.lede { color: var(--muted); max-width: 46rem; font-size: 1.05rem; }
a { color: var(--pine); }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
input[type="file"], textarea, input[type="range"] { width: 100%; }
textarea {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  min-height: 78px;
}
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button, .btn {
  font: inherit;
  background: var(--pine);
  color: #f6f1e8;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.ghost, .btn.ghost { background: transparent; color: var(--pine); border: 1px solid var(--pine); }
button:disabled { opacity: .55; cursor: wait; }
.status { color: var(--muted); font-size: .95rem; min-height: 1.2em; }
.answer { white-space: pre-wrap; line-height: 1.45; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; border-top: 1px solid var(--line); padding: 8px 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; text-decoration: none; color: inherit; min-height: 120px;
}
.card:hover { border-color: var(--pine); }
.card strong { font-family: Fraunces, Georgia, serif; font-size: 1.15rem; }
.card span { color: var(--muted); }
.trace { line-height: 1.45; }
.trace h3 { font-family: Fraunces, Georgia, serif; margin: 16px 0 6px; }
footer.note { margin-top: 22px; color: var(--muted); font-size: .92rem; }
