:root {
  --bg: #f3efe3;
  --paper: #fffaf0;
  --ink: #18201a;
  --muted: #566152;
  --accent: #2f6b47;
  --accent-strong: #163924;
  --line: #d6ccb5;
  --shadow: rgba(24, 32, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(47, 107, 71, 0.12), transparent 30%),
    linear-gradient(180deg, #f8f4e8 0%, var(--bg) 100%);
  font-family: Georgia, "Times New Roman", serif;
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.hero {
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  line-height: 0.95;
}

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

.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--paper) 92%, white);
  box-shadow: 0 12px 24px var(--shadow);
}

.stack {
  display: grid;
  gap: 12px;
}

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

input,
button {
  width: 100%;
  border-radius: 12px;
  font: inherit;
}

input {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fffdf8;
}

button {
  border: 0;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.ghost {
  width: auto;
  background: transparent;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.output-panel {
  min-height: 280px;
}

.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.output {
  margin: 0;
  padding: 16px;
  border-radius: 14px;
  background: #111713;
  color: #dcecdc;
  overflow: auto;
  min-height: 200px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100% - 24px, 720px);
    padding-top: 32px;
  }
}
