:root {
  color-scheme: light;
  --bg: #f7f4ef;
  --ink: #2e2a24;
  --muted: #6b6256;
  --accent: #b1862d;
  --panel: #ffffff;
  --border: #e2d8c7;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #fdf8f0, #f3ede3 65%);
  color: var(--ink);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero {
  text-align: left;
  margin-bottom: 2rem;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 1rem 0 0.5rem;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 45rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 20px 50px rgba(77, 61, 32, 0.08);
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.file-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

input[type="file"] {
  font-size: 0.95rem;
}

button {
  background: var(--accent);
  color: #fffaf0;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.report h2 {
  margin-top: 0;
}

.summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.findings {
  list-style: none;
  padding: 0;
  margin: 0;
}

.finding {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px dashed var(--border);
}

.finding:last-child {
  border-bottom: none;
}

.tag {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.finding.high .tag {
  color: #9b2c2c;
}

.finding.medium .tag {
  color: #b7791f;
}

.finding.low .tag {
  color: #2f855a;
}

.error {
  color: #9b2c2c;
  font-weight: 600;
}

@media (max-width: 600px) {
  form {
    flex-direction: column;
    align-items: flex-start;
  }
}
