:root {
  --ivory: #f1ede4;
  --paper: #f7f3eb;
  --ink: #2a1c14;
  --walnut: #4a2f1e;
  --gold: #b08948;
  --muted: #7d6b5a;
  --line: rgba(42, 28, 20, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.serif { font-family: "Cormorant Garamond", Georgia, serif; }
.wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(241, 237, 228, 0.92);
  backdrop-filter: blur(12px);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.34em;
  font-size: 11px;
  font-weight: 500;
}
.brand img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}
.nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}
.nav a { padding: 8px 0; }
.nav a:hover,
.nav a.active { color: var(--gold); }

.masthead {
  padding: 72px 0 28px;
  text-align: center;
}
.masthead__wordmark {
  width: min(680px, 88%);
  margin: 0 auto 28px;
}
.masthead__rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 22px;
  border: 0;
}
.masthead p {
  color: var(--muted);
  font-weight: 300;
  font-size: 16px;
  max-width: 420px;
  margin: 0 auto 28px;
}
.masthead h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 10px;
}

.text-link {
  display: inline-block;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--walnut);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}
.text-link:hover { color: var(--gold); }

.section { padding: 56px 0 72px; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head span {
  display: block;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
}
.lede {
  color: var(--muted);
  max-width: 520px;
  font-weight: 300;
  font-size: 16px;
}
.section-head .lede { margin: 10px auto 0; }

.piece-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 28px;
  align-items: start;
}
.piece-card { display: block; }
.piece-card__media {
  position: relative;
  overflow: hidden;
  background: #e8e0d2;
  touch-action: pan-y;
}
.piece-card__media.is-swipe { cursor: grab; }
.piece-card__track {
  display: flex;
  align-items: center;
  transition: transform 0.35s ease;
}
.piece-card__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}
.piece-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.piece-card__media img.is-in { opacity: 1; }
.piece-card__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}
.piece-card__dot {
  pointer-events: auto;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(42, 28, 20, 0.28);
  cursor: pointer;
}
.piece-card__dot.is-on { background: var(--gold); }
.piece-card__body {
  padding: 14px 2px 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.piece-card__code {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}
.piece-card__meta {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: right;
}
.piece-card__status {
  color: var(--gold);
  margin-left: 8px;
}

.portrait {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.portrait img { width: 100%; }
.portrait h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
  margin: 8px 0 14px;
}
.kicker {
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--gold);
}

.page-intro {
  padding: 48px 0 72px;
  text-align: center;
}
.page-intro h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 500;
  margin: 8px 0 12px;
}
.page-intro .lede { margin: 0 auto; }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 8px;
}
.filters input,
.filters select {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 2px;
  min-width: 140px;
  color: var(--ink);
}
.filters input { min-width: min(100%, 220px); }
.filters input:focus,
.filters select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.count {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin: 12px 0 28px;
}

.woods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-top: 40px;
  text-align: left;
}
.wood-item span {
  color: var(--gold);
  font-size: 12px;
  font-style: italic;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.wood-item h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  margin: 4px 0 8px;
}
.wood-item p { color: var(--muted); font-weight: 300; }

.piece-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  padding: 28px 0 80px;
  align-items: start;
}
.gallery {
  background: #e8e0d2;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  height: min(72vh, 680px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery img.is-in { opacity: 1; }
.thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.thumbs button {
  width: 68px;
  height: 68px;
  border: 1px solid transparent;
  padding: 0;
  background: #ddd4c6;
  cursor: pointer;
}
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--gold); }

.piece-copy h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 500;
  line-height: 0.92;
  margin: 8px 0 10px;
}
.piece-copy .species {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
  margin-bottom: 22px;
}
.specs {
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.spec {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spec small {
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 10px;
}

.enquire { margin-top: 8px; }
.enquire h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 6px;
}
.enquire p { color: var(--muted); margin-bottom: 14px; font-weight: 300; }
.enquire input,
.enquire textarea {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  color: var(--ink);
}
.enquire textarea { min-height: 84px; resize: vertical; }
.enquire button {
  margin-top: 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--gold);
  padding: 0 0 6px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
  cursor: pointer;
  color: var(--walnut);
}
.form-msg { margin-top: 12px; font-size: 14px; color: var(--gold); }

.center { text-align: center; }
.more { margin-top: 40px; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  color: var(--muted);
}
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: start;
}
.site-footer strong {
  display: block;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 8px;
}
.site-footer p { font-weight: 300; max-width: 380px; font-size: 14px; }
.empty {
  padding: 56px 12px;
  text-align: center;
  color: var(--muted);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 22px;
}

@media (max-width: 900px) {
  .wrap { width: min(100% - 32px, 1280px); }
  .woods { grid-template-columns: 1fr 1fr; }
  .portrait,
  .piece-layout { grid-template-columns: 1fr; gap: 28px; }
  .nav { gap: 16px; font-size: 11px; }
}
@media (max-width: 640px) {
  .site-header__inner { min-height: 64px; }
  .piece-grid, .woods { grid-template-columns: 1fr; }
  .masthead { padding-top: 40px; }
  .gallery img { height: 52vh; }
}
