:root {
  --bg: #fff8ef;
  --ink: #271b14;
  --muted: #74675c;
  --card: #ffffff;
  --accent: #b55b35;
  --accent-dark: #74351f;
  --line: #ead8c7;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: inherit; }

.site-header {
  min-height: 82vh;
  background: radial-gradient(circle at top right, #f8caa8 0, transparent 34%), linear-gradient(135deg, #fff8ef, #f3deca);
  padding: 24px clamp(20px, 5vw, 72px) 72px;
}

.nav, .nav__links, .filters, .admin-grid, .commission { display: flex; gap: 16px; }
.nav { align-items: center; justify-content: space-between; }
.logo { font-weight: 800; text-decoration: none; font-size: 1.25rem; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 600; }

.hero { max-width: 780px; padding-top: 14vh; }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); line-height: 0.95; margin: 12px 0 24px; }
.hero p { max-width: 620px; color: var(--muted); font-size: 1.18rem; }
.eyebrow { color: var(--accent); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; }
.button { display: inline-flex; border: 0; border-radius: 999px; padding: 13px 22px; background: var(--accent); color: white; font-weight: 800; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--accent-dark); }

.section { padding: 72px clamp(20px, 5vw, 72px); }
.section__header { max-width: 760px; margin-bottom: 28px; }
.section h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin: 0 0 12px; }
.section p { color: var(--muted); }

.filters { flex-wrap: wrap; margin-bottom: 26px; }
.filter { border: 1px solid var(--line); background: white; padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.filter--active { background: var(--ink); color: white; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 50px rgb(39 27 20 / 8%); overflow: hidden; }
.artwork img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f5e3d1; }
.artwork__body, .form, .admin-panel { padding: 22px; }
.artwork__body span, .admin-panel span { color: var(--accent); font-weight: 800; font-size: 0.85rem; }
.artwork__body h3 { margin: 8px 0; }

.commission { align-items: flex-start; justify-content: space-between; background: #2d1d14; color: white; }
.commission > div { max-width: 560px; }
.commission p { color: #e9d7c9; }
.form { display: grid; gap: 14px; min-width: min(100%, 420px); }
label { display: grid; gap: 7px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; font: inherit; }
.form__status { min-height: 24px; margin: 0; }

.admin-grid { align-items: flex-start; flex-wrap: wrap; }
.admin-panel { flex: 1; min-width: min(100%, 360px); }
.admin-panel ul { padding-left: 18px; }
.admin-panel li { margin: 10px 0; }
.footer { padding: 32px clamp(20px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); }
.error { color: #b42318; font-weight: 800; }

@media (max-width: 760px) {
  .nav, .commission { flex-direction: column; }
  .hero { padding-top: 10vh; }
}
