:root {
  --color-bg: #f7f5f0;
  --color-surface: #ffffff;
  --color-text: #1f1f1f;
  --color-muted: #5a5a5a;
  --color-accent: #6b3a1f;
  --color-accent-light: #a05f35;
  --color-border: #d9d3c5;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

header {
  background: var(--color-accent);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 { margin: 0; font-size: 1.8rem; }
header p { margin: 0.5rem 0 0; opacity: 0.9; }

nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover { text-decoration: underline; }

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

section {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

h2 { margin-top: 0; color: var(--color-accent); }

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.search-form button {
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

.search-form button:hover { background: var(--color-accent-light); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.card:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-accent);
}

.card .meta {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li {
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
}
.result-list li:last-child { border-bottom: none; }
.result-list a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}
.result-list a:hover { text-decoration: underline; }

.browse-list { list-style: none; padding: 0; }
.browse-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--color-border); }
.browse-list a { color: var(--color-accent); text-decoration: none; }
.browse-list a:hover { text-decoration: underline; }

.provenance {
  background: #fff8e6;
  border-left: 4px solid var(--color-accent-light);
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}
