/* Modern Day Savage — Gary Peterson
   Palette drawn from the artist's own carving materials & pigments:
   charcoal (carved black), red ochre (formline red), cedar (wood tone), copper accent. */

:root {
  --charcoal: #17140f;
  --charcoal-light: #241f18;
  --cedar: #a9713f;
  --cedar-dark: #6e4526;
  --ochre-red: #a3311c;
  --ochre-red-light: #c94a30;
  --cream: #f3ede1;
  --cream-dim: #d9cfba;
  --copper: #b3792f;
  --line: rgba(243, 237, 225, 0.14);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --serif: "Iowan Old Style", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--cream);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cedar); text-decoration: none; }
a:hover { color: var(--ochre-red-light); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cream);
  margin: 0 0 0.5em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--cedar);
  font-weight: 600;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 20, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cedar);
  margin-top: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--cream);
  font-size: 1.4rem;
  padding: 4px 10px;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--cream-dim);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--cream);
  border-color: var(--ochre-red);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) brightness(0.42);
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 0.3em;
}

.hero p.lede {
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--cream-dim);
}

.page-hero {
  min-height: 34vh;
}

.page-hero .hero-content {
  padding: 4rem 0 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7em 1.5em;
  border: 1px solid var(--cedar);
  border-radius: 3px;
  color: var(--cream);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--ochre-red);
  border-color: var(--ochre-red);
  color: #fff;
}

.btn-solid {
  background: var(--ochre-red);
  border-color: var(--ochre-red);
}

.btn-solid:hover {
  background: var(--ochre-red-light);
  border-color: var(--ochre-red-light);
  color: #fff;
}

/* ---------- Sections ---------- */
section {
  padding: 4.5rem 0;
}

section + section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.two-col img {
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.prose p { color: var(--cream-dim); }
.prose p + p { margin-top: 1.1em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.3em;
  border-left: 3px solid var(--ochre-red);
  font-style: italic;
  color: var(--cream);
}
.prose blockquote cite {
  display: block;
  margin-top: 0.4em;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cedar);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--charcoal-light);
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1rem 0.7rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0));
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

/* ---------- For sale cards ---------- */
.piece-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.piece-card {
  background: var(--charcoal-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.piece-card .imgs {
  display: grid;
  grid-template-columns: 1fr;
}

.piece-card .imgs.two { grid-template-columns: 1fr 1fr; }

.piece-card .imgs img { aspect-ratio: 4/3; object-fit: cover; }

.piece-body { padding: 1.3rem 1.4rem 1.5rem; }

.piece-body h3 { font-size: 1.15rem; margin-bottom: 0.35em; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.price {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--copper);
}

.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3em 0.7em;
  border-radius: 2px;
  background: var(--ochre-red);
  color: #fff;
}

.badge.sold { background: #3a3a3a; color: var(--cream-dim); }

/* ---------- Track list ---------- */
.track {
  background: var(--charcoal-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}

.track h3 {
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
}

.track iframe {
  width: 100%;
  border: 0;
  border-radius: 4px;
}

/* ---------- Photo strip ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.photo-strip img {
  border-radius: 4px;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.press-photo-card {
  background: var(--charcoal-light);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.press-photo-card img { aspect-ratio: 3/4; object-fit: cover; }

.press-photo-card .dl {
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: center;
}

/* ---------- Quote band ---------- */
.quote-band {
  background: var(--charcoal-light);
  text-align: center;
  padding: 4rem 0;
}

.quote-band blockquote {
  max-width: 46ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--cream);
}

.quote-band cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cedar);
}

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
}

form.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.contact-form label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cedar);
  margin-bottom: 0.4em;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--charcoal-light);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.8em 0.9em;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--cedar);
}

.contact-form textarea { min-height: 150px; resize: vertical; }

.form-note {
  font-size: 0.82rem;
  color: var(--cream-dim);
  margin-top: 0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  text-align: center;
}

.site-footer p {
  color: var(--cream-dim);
  font-size: 0.85rem;
  margin: 0.3em 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10, 8, 6, 0.92);
  padding: 4vh 4vw;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  font-size: 2rem;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .nav-toggle { display: inline-block; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0; right: 0;
    background: var(--charcoal);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 400px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 24px 1.2rem;
  }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: 0.9rem 0; }
}

@media (max-width: 560px) {
  .piece-card .imgs.two { grid-template-columns: 1fr 1fr; }
  section { padding: 3rem 0; }
}
