:root {
  --bg: #121212;
  --bg-deep: #121212;
  --surface: #242424;
  --surface-alt: #2c2c2c;
  --ink: #d6d6d6;
  --heading: #f0d9b5;
  --muted: #8a8a8a;
  --accent: #f0d9b5;
  --accent-2: #e2c08d;
  --border: #353535;
  --max: 1200px;
  --font: "Roboto Condensed", "Arial Narrow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-weight: 400; color: var(--heading); line-height: 1.2; }
strong, th { font-weight: 500; }
.container { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }

/* Header */
.site-header {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 20;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0; flex-wrap: wrap;
}
.brand { color: var(--heading); }
.brand:hover { text-decoration: none; opacity: .9; }
.brand-title { font-size: 1.5rem; font-weight: 400; margin: 0; letter-spacing: .02em; }
.brand-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.nav { display: flex; gap: .35rem 1.5rem; flex-wrap: wrap; align-items: center; }
.nav a {
  color: var(--ink); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .35rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] {
  color: var(--heading); border-bottom-color: var(--heading); text-decoration: none;
}
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--ink); font: inherit; padding: .4rem .8rem; cursor: pointer;
}

/* Hero */
.hero { padding: 4.5rem 0 1rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; }
.hero p { max-width: 60ch; color: var(--muted); font-size: 1.1rem; margin: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--accent-2); color: #1a1a1a;
  padding: .7rem 1.4rem; font: inherit; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
  border: 1px solid var(--accent-2); cursor: pointer;
}
.btn:hover { background: var(--heading); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--heading); margin-left: .5rem; }
.btn-ghost:hover { background: rgba(240,217,181,.08); }

/* Page shell */
.panel { padding: 3rem 0 5rem; min-height: 50vh; }
.section-head { margin-bottom: 2rem; }
.section-title { font-size: clamp(2rem, 3.2vw, 2.6rem); margin: 0 0 2rem; }
.section-title a { color: inherit; }
.section-title a:hover { text-decoration: none; opacity: .85; }
.section-head .section-title { margin-bottom: .5rem; }
.page-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0 0 .75rem; }
.gallery-section { margin: 3rem 0 4.5rem; }
.purchase-note { max-width: 60ch; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem 4.5rem;
}
.card { display: flex; flex-direction: column; }
.card-image { aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease, opacity .4s ease;
}
.card-image:hover img { transform: scale(1.03); opacity: .92; }
.card-title { font-size: 1.4rem; margin: 1.1rem 0 .5rem; }
.card-title a { color: var(--heading); }
.card-price { margin: 0; color: var(--muted); font-size: 1.15rem; }

.badge {
  display: inline-block; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; padding: .2rem .6rem; margin-bottom: .6rem;
  border: 1px solid var(--accent-2); color: var(--accent-2);
}
.badge-sold { border-color: #a86a6a; color: #d39a9a; }

/* Artwork page */
.artwork-layout {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start;
}
.artwork-image { background: var(--surface); }
.artwork-image img { width: 100%; }
.meta-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0 1.5rem; }
.meta-table th, .meta-table td {
  text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.meta-table th { width: 34%; color: var(--heading); padding-right: 1rem; }
.prose { max-width: 65ch; }
.prose p { margin: 0 0 1rem; }
.breadcrumbs { font-size: .95rem; color: var(--muted); margin: 0 0 1.5rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--heading); }

/* Category chips */
.cat-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .75rem; margin: 1.5rem 0 3rem;
}
.cat-chip {
  display: block; padding: .85rem 1rem; background: var(--surface);
  border: 1px solid var(--border); color: var(--heading); font-weight: 400;
  font-size: 1.1rem;
}
.cat-chip:hover { border-color: var(--heading); text-decoration: none; }
.cat-chip span { display: block; color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--bg-deep); color: var(--muted); padding: 2.5rem 0 3rem; }
.site-footer strong { color: var(--ink) !important; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-note { font-size: .95rem; max-width: 55ch; }

/* Contact / about */
.contact-box, .about-box {
  background: var(--surface); border: 1px solid var(--border);
  padding: 2rem; max-width: 720px;
}
.contact-box a.email { font-size: 1.25rem; font-weight: 400; }

.contact-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.contact-form label { display: grid; gap: .35rem; color: var(--heading); font-weight: 400; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--ink);
  padding: .7rem .85rem; border: 1px solid var(--border);
  background: var(--bg);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 1px solid var(--heading); outline-offset: 0; border-color: var(--heading);
}
.contact-form .btn { justify-self: start; }

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2.5rem; }
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
  .artwork-layout { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; }
  .nav.is-open { display: flex; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
