/* Soup.net Check Page — Garden Gallery design system
   Warm editorial aesthetic. Newsreader serif throughout.
   AI agents skip CSS (costs no tokens). Humans see this. */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..800;1,6..72,300..800&display=swap');

:root {
  --max-width: 800px;
  --text: #1b1c15;
  --text-variant: #5f5e5e;
  --bg: #fbfaee;
  --bg-surface: #ffffff;
  --bg-surface-dim: #f0efe3;
  --primary: #051a0f;
  --secondary: #974730;
  --accent: #974730;
  --border: #c4c4b4;
  --code-bg: #f0efe3;
  --error-bg: #fef2f2;
  --error: #ba1a1a;
  --success: #2d6a2e;
  --radius: 0.75rem;
}

body {
  font-family: 'Newsreader', Georgia, serif;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Newsreader', Georgia, serif;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.25rem; }
h2 { font-size: 1.35rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.1rem; font-weight: 600; }

header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

header h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

textarea, input[type="text"], input[type="number"], input[type="email"], input[type="file"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: var(--bg-surface);
  color: var(--text);
  transition: border-color 150ms ease;
}
textarea:focus, input:focus {
  outline: none;
  border-color: var(--secondary);
}
textarea { min-height: 6rem; resize: vertical; }
textarea[readonly] { min-height: auto; resize: none; cursor: default; opacity: 0.9; }
input[type="file"] { padding: 0.5rem; }

label {
  display: block;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  color: var(--primary);
}

button, [type="submit"] {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: opacity 150ms ease;
}
button:hover { opacity: 0.85; }

pre, code {
  background: var(--code-bg);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
pre { padding: 1rem; overflow-x: auto; border-radius: var(--radius); white-space: pre-wrap; word-wrap: break-word; }

/* Result cards — tonal layering, no hard borders */
.result, .trace-example {
  background: var(--bg-surface);
  padding: 1.25rem;
  margin: 0.75rem 0;
  border-radius: var(--radius);
}
.result h3 { margin: 0 0 0.5rem; color: var(--primary); }
.rank { color: var(--text-variant); font-size: 0.85rem; }

blockquote {
  border-left: 3px solid var(--secondary);
  margin: 0.5rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: var(--text-variant);
  font-style: italic;
}

cite {
  display: block;
  font-size: 0.85rem;
  color: var(--text-variant);
  margin-top: 0.25rem;
}

details { margin-top: 1rem; }
summary {
  cursor: pointer;
  color: var(--secondary);
  font-weight: 600;
}

nav { margin-top: 1.5rem; text-align: center; }
nav a { margin: 0 0.5rem; }

#instructions {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

#results {
  margin-top: 1.5rem;
}

#related-evidence {
  margin-top: 2rem;
  padding-top: 1.5rem;
  background: var(--bg-surface-dim);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.error {
  color: var(--error);
  background: var(--error-bg);
  padding: 1rem;
  border-radius: var(--radius);
}

.warning {
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin: 0.5rem 0;
}

small { color: var(--text-variant); }

/* Images in evidence */
img { border-radius: var(--radius); }

/* Responsive */
@media (max-width: 600px) {
  body { padding: 1rem; }
  h1 { font-size: 1.5rem; }
}
