:root {
  color-scheme: light;
  --ink: #183333;
  --muted: #667675;
  --paper: #f8f5ed;
  --panel: #fffdf8;
  --accent: #c47d5e;
  --accent-dark: #9f5f48;
  --line: #ded9cc;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
button { font: inherit; cursor: pointer; }
.app-shell { width: min(720px, 100%); margin: 0 auto; padding: 24px 18px 56px; }
.hero { padding: 34px 8px 26px; }
.eyebrow { margin: 0 0 9px; color: var(--accent-dark); font: 700 0.75rem/1.2 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1 { max-width: 560px; font-family: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif; font-size: clamp(2.5rem, 10vw, 4.8rem); line-height: .95; letter-spacing: -.04em; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.45rem; margin-bottom: 12px; }
.intro { max-width: 520px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.panel { margin-top: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 12px 30px rgba(24,51,51,.06); }
.panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.actions { display: grid; gap: 10px; margin-top: 20px; }
.actions button, .secondary { border: 0; border-radius: 999px; padding: 13px 16px; background: var(--ink); color: white; text-align: left; }
.actions button:hover, .secondary:hover { background: var(--accent-dark); }
.secondary { padding: 9px 13px; font: 700 .8rem system-ui, sans-serif; }
.result { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.55; }
.result p { margin: 0 0 12px; }
.result .card { display: grid; grid-template-columns: minmax(96px, 28%) 1fr; gap: 16px; margin: 16px 0; padding: 12px; border-left: 4px solid var(--accent); background: #fbf1e8; }
.card-art { width: 100%; aspect-ratio: 0.56; object-fit: cover; object-position: center; border-radius: 8px; }
.card-copy { min-width: 0; }
.result .card-name { margin: 0 0 8px; font: 700 .9rem system-ui, sans-serif; letter-spacing: .06em; }
.element-summary { padding: 12px 14px; border-radius: 12px; background: #edf1e8; color: #355443; font-size: .95rem; }
.result pre { white-space: pre-wrap; font: 1rem/1.55 "Avenir Next", "Helvetica Neue", Arial, sans-serif; }
.result select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); }
.note { color: var(--muted); font-size: .95rem; }
.hidden { display: none; }
@media (min-width: 560px) { .actions { grid-template-columns: repeat(3, 1fr); } .actions button { text-align: center; } }
