:root {
  --bg: #e8eef0;
  --ink: #17212b;
  --muted: #3f4f5c;
  --accent: #0f7a72;
  --panel: #fffaf3;
  --line: rgba(23, 33, 43, 0.14);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: linear-gradient(165deg, #efe8db 0%, #e4eef0 50%, #dce8ea 100%);
}

.wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3rem;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 0.6rem;
  line-height: 0.95;
}

.brand span {
  color: var(--accent);
}

.lede {
  margin: 0 0 1.75rem;
  color: var(--muted);
  max-width: 40ch;
  font-size: 1.125rem;
  line-height: 1.5;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(23, 33, 43, 0.08);
  padding: 1.2rem 1.25rem 1.35rem;
  margin-bottom: 1rem;
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hint {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

textarea,
input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.75rem;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

input[type="file"] {
  display: block;
  margin-bottom: 0.75rem;
  font: inherit;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

button {
  appearance: none;
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.75rem 1rem;
}

button.primary {
  background: var(--accent);
  color: #f7fffe;
}

button.ghost {
  background: transparent;
  border: 1px solid rgba(15, 122, 114, 0.35);
  color: #073b37;
}

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.out {
  margin: 0.9rem 0 0;
  padding: 0.85rem 0.95rem;
  background: #0e1418;
  color: #d7e4e7;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-x: auto;
}

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

.foot a {
  color: #073b37;
}
