/* =====================================================
   Stephen Giannetti — Site Stylesheet
   Davis, California
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Manrope:wght@200;300;400;500;600&display=swap');

:root {
  --bg: #FAFAF6;
  --ink: #1A1A1A;
  --ink-soft: #6F6F6C;
  --rule: #E5E2DC;
  --charcoal: #1A1A1A;
  --on-charcoal: #FAFAF6;
  --accent: #8B7355;        /* warm olive bronze — used sparingly on labels and eyebrows */
  --accent-hover: #6F5C44;  /* darker accent for hover states */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ HEADER ============ */
.site-header {
  background: var(--charcoal);
  color: var(--on-charcoal);
  padding: 22px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}
.site-header__brand {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.site-header__nav { display: flex; gap: 40px; }
.site-header__nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250,250,246,0.85);
  transition: color 0.2s ease;
  font-weight: 400;
}
.site-header__nav a:hover { color: var(--on-charcoal); }
.site-header__nav a.is-active {
  color: var(--on-charcoal);
  border-bottom: 1px solid rgba(250,250,246,0.4);
  padding-bottom: 2px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--charcoal);
  color: var(--on-charcoal);
  padding: 80px 64px 40px;
  margin-top: 120px;
}
.site-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 64px;
}
.site-footer h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
}
.site-footer p, .site-footer a {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(250,250,246,0.7);
  font-weight: 300;
}
.site-footer a:hover { color: var(--on-charcoal); }
.site-footer__bottom {
  max-width: 1400px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,250,246,0.4);
}

/* ============ INTRO (shop, home) ============ */
.intro {
  max-width: 920px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  text-align: center;
}
.intro__eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
  font-weight: 500;
}
.intro__title {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.intro__body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 580px;
  margin: 0 auto;
  font-weight: 300;
}

/* ============ HERO PIECE (shop landing feature) ============ */
.hero-piece {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 0 48px;
}
.hero-piece__image {
  width: 100%;
  background: #EFECE5;
  margin-bottom: 48px;
}
.hero-piece__image img { width: 100%; height: auto; }
.hero-piece__label {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 120px;
}
.hero-piece__title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.1;
  font-style: italic;
}
.hero-piece__meta {
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.hero-piece__meta > div { margin-bottom: 6px; }
.hero-piece__meta .price {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-top: 16px;
  font-weight: 400;
}
.hero-piece__cta {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
  font-weight: 500;
}
.hero-piece__cta:hover { opacity: 0.6; }

/* ============ SECTION RULE ============ */
.section-rule {
  max-width: 1400px;
  margin: 0 auto 80px;
  padding: 0 48px;
}
.section-rule__line { height: 1px; background: var(--rule); }
.section-rule__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 48px;
  padding-bottom: 48px;
}
.section-rule__heading h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  font-style: italic;
}
.section-rule__heading span {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ============ GRID (shop landing) ============ */
.grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px 120px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 96px;
}
.card { display: flex; flex-direction: column; }
.card__image-wrap {
  width: 100%;
  background: #EFECE5;
  overflow: hidden;
  margin-bottom: 28px;
  transition: opacity 0.4s ease;
}
.card a:hover .card__image-wrap { opacity: 0.92; }
.card__image-wrap img {
  width: 100%;
  height: auto;
  transition: transform 1.2s ease;
}
.card a:hover .card__image-wrap img { transform: scale(1.01); }
.card__title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.15;
  font-style: italic;
  margin-bottom: 14px;
}
.card__meta {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  font-weight: 300;
}
.card__meta > div { display: block; }
.card__price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  margin-top: 14px;
  font-weight: 400;
}
.card__cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: opacity 0.2s ease;
  font-weight: 500;
}
.card__cta:hover { opacity: 0.6; }
.card__exh {
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.6;
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 48px 0;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb__sep { padding: 0 12px; opacity: 0.4; }

/* ============ PIECE PAGE ============ */
.piece-hero {
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 48px;
  background: transparent;
}
.piece-hero__image { width: 100%; background: #EFECE5; }

.piece-detail {
  max-width: 1100px;
  margin: 80px auto 0;
  padding: 0 48px 60px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.piece-detail__story {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  font-weight: 300;
}
.piece-detail__story p { margin-bottom: 20px; }
.piece-detail__story p:first-of-type::first-letter {
  font-size: 64px;
  float: left;
  line-height: 1;
  padding: 4px 12px 0 0;
  font-weight: 400;
}

.piece-label {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  position: sticky;
  top: 100px;
}
.piece-label__title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.05;
  margin-bottom: 28px;
}
.piece-label__row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.piece-label__row dt {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  padding-right: 24px;
  padding-top: 2px;
}
.piece-label__row dd {
  text-align: right;
  color: var(--ink);
  font-weight: 300;
  line-height: 1.55;
}
.piece-label__exh dd {
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
}
.piece-label__price-row {
  padding: 32px 0 24px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.piece-label__price-row span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.piece-label__cta {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--on-charcoal);
  text-align: center;
  padding: 22px 24px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.25s ease;
  margin-top: 16px;
}
.piece-label__cta:hover { background: #2D2D2D; }
.piece-label__note {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 16px;
  text-align: center;
  font-style: italic;
}

/* ============ RELATED WORKS ============ */
.related {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 0 48px 100px;
}
.related__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 64px;
  padding-bottom: 56px;
  border-top: 1px solid var(--rule);
}
.related__header h2 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  font-style: italic;
}
.related__header a {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-weight: 500;
}
.related__header a:hover { opacity: 0.6; }
.related__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.related__item img { width: 100%; margin-bottom: 16px; background: #EFECE5; }
.related__item h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 4px;
}
.related__item p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ============ INQUIRY DRAWER ============ */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 200;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow-y: auto;
  padding: 32px 40px 40px;
}
.drawer.is-open { transform: translateX(0); }
.drawer__close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  margin-bottom: 32px;
  font-family: var(--sans);
}
.drawer__close:hover { opacity: 0.6; }
.drawer__piece {
  display: flex;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.drawer__piece img {
  width: 72px; height: 72px;
  object-fit: cover;
  background: #EFECE5;
}
.drawer__piece-text { display: flex; flex-direction: column; justify-content: center; }
.drawer__piece-text strong {
  font-family: var(--serif);
  font-size: 18px; font-weight: 400;
  font-style: italic; margin-bottom: 4px;
}
.drawer__piece-text span { font-size: 12px; color: var(--ink-soft); }
.drawer__heading {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 12px;
  font-style: italic;
}
.drawer__sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 28px;
}
.drawer label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}
.drawer input, .drawer textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 300;
}
.drawer input:focus, .drawer textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
}
.drawer textarea { resize: vertical; min-height: 80px; }
.drawer__submit {
  display: block;
  width: 100%;
  background: var(--ink);
  color: var(--on-charcoal);
  text-align: center;
  padding: 18px 24px;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.25s ease;
  margin-top: 8px;
}
.drawer__submit:hover { background: #2D2D2D; }
.drawer__legal {
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 16px;
  text-align: center;
  line-height: 1.7;
}

/* ============ PLACEHOLDER PAGE ============ */
.placeholder {
  max-width: 920px;
  margin: 0 auto;
  padding: 200px 48px;
  text-align: center;
  min-height: 60vh;
}
.placeholder h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 24px;
}
.placeholder p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 32px;
}
.placeholder a {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  font-weight: 500;
}
.placeholder a:hover { opacity: 0.6; }

/* ============ MOBILE ============ */
@media (max-width: 880px) {
  .site-header { padding: 18px 24px; }
  .site-header__nav { display: none; }
  .intro { padding: 80px 24px 60px; }
  .hero-piece { padding: 0 24px; }
  .hero-piece__label {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 80px;
  }
  .hero-piece__title { font-size: 34px; }
  .section-rule, .grid { padding-left: 24px; padding-right: 24px; }
  .grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 80px;
  }
  .card__title { font-size: 26px; }
  .breadcrumb, .piece-hero, .piece-detail, .related {
    padding-left: 24px; padding-right: 24px;
  }
  .piece-detail { grid-template-columns: 1fr; gap: 48px; }
  .piece-label { position: static; }
  .piece-label__title { font-size: 34px; }
  .related__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .drawer { width: 100%; padding: 24px; }
  .site-footer { padding: 60px 24px 30px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .placeholder { padding: 120px 24px; }
  .placeholder h1 { font-size: 42px; }
}

/* ============ PAGE LOAD ANIMATION ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.intro, .hero-piece, .section-rule, .grid, .piece-hero, .piece-detail, .related, .placeholder {
  animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.hero-piece { animation-delay: 0.1s; }
.section-rule { animation-delay: 0.2s; }
.grid, .piece-detail { animation-delay: 0.15s; }
.related { animation-delay: 0.25s; }
