:root{
  --bg: #f6f1e7;
  --paper: #fbf8f2;
  --ink: #1f1f1f;
  --muted: #5a5a5a;
  --border: rgba(0,0,0,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --radius: 18px;
  --radius2: 12px;
  --max: 1120px;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

body{
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 20% -10%, #fff 0%, var(--bg) 60%);
  line-height: 1.5;
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 18px; }

/* ===========================
   Header / Nav
   =========================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(246,241,231,.75);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 14px 0;
}

/* ===========================
   Brand: mark + logo (responsive stack)
   =========================== */
.brand{
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
  min-width: 0; /* lets logo shrink instead of overflowing */
}

/* left small image */
.brand-mark{
  grid-column: 1;
  grid-row: 1 / span 2; /* spans both rows so it stays vertically centered */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img{
  width: 100px;
  height: 66px;
  object-fit: contain;
  display: block;
}

/* logo on the right */
.brand-logo{
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.brand-logo img{
  display: block;
  height: 66px;        /* keeps header tidy */
  width: auto;
  max-width: 320px;    /* adjust as needed */
}

/* subtitle under logo (still to the right of mark) */
.brand-text{
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.brand-sub{
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* When space gets tight: stack mark above logo/sub */
@media (max-width: 520px){
  .brand{
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 6px;
    justify-items: start;
  }

  .brand-mark{
    grid-column: 1;
    grid-row: 1;
  }

  .brand-logo{
    grid-column: 1;
    grid-row: 2;
  }

  .brand-text{
    grid-column: 1;
    grid-row: 3;
  }

  .brand-sub{
    white-space: normal; /* allow wrap when stacked */
  }
}


.nav{
  display:flex;
  gap: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
}

.nav a:hover{
  background: rgba(0,0,0,.05);
  text-decoration:none;
}

.site-main{ padding: 28px 0 48px; }

/* ===========================
   Heritage line (index only)
   =========================== */
.heritage-bar{
  max-width: var(--max);
  margin: 0 auto 18px;
  padding: 10px 18px 14px;
  text-align: center;
  font-size: 22px;
  letter-spacing: .4px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

/* ===========================
   Global UI
   =========================== */
.section-title{
  margin: 22px 0 10px;
  font-size: 22px;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.card{
  background: rgba(251,248,242,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  overflow:hidden;
}

.muted{ color: var(--muted); }

/* ===========================
   Buttons / Actions
   =========================== */
.actions{
  display:flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  margin-bottom: 26px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--paper);
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  text-decoration:none;
}

.btn:hover{ transform: translateY(-1px); text-decoration:none; }

.btn.primary{
  background: #1f1f1f;
  color: #fff;
  border-color: rgba(0,0,0,.35);
}

/* ===========================
   Hero
   =========================== */
.hero{
  background: linear-gradient(180deg, rgba(251,248,242,.9), rgba(251,248,242,.65));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 22px 22px 32px;
}

.kicker{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 14px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 500;
}

.hero p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 18px;
  max-width: 70ch;
}

/* ===========================
   Landing layout (index)
   =========================== */
.hero-landing{ padding: 22px; }

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
}

.hero-media{ padding: 0; }

/* Featured image */
.hero-image{
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,.04);
  overflow: hidden;
}

.hero-image img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: none; /* calmer, no built-in zoom */
  transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-link:hover img{
  transform: scale(1.03);
}

.hero-caption{
  padding: 12px 14px 14px;
}

/* The description block under featured image (clamped in HTML/CSS) */
.hero-caption-desc{
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hero-image-empty{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 240px;
  text-align:center;
}

/* Hero info boxes */
.hero-notes{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.note{
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(251,248,242,.75);
  padding: 12px;
}

.note-title{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .2px;
  margin-bottom: 4px;
}

.landing-section{ margin-top: 22px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap: 14px; }

/* ===========================
   Collections (Browse by Collection)
   =========================== */
.collections-wrap{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 12px;
}

.collection-card{
  grid-column: span 6;
  overflow: hidden;
}

.collection-photo{
  position: relative;
  aspect-ratio: 1.25 / 1;  /* your current choice */
  background: rgba(0,0,0,.04);
  overflow: hidden;
}

.collection-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(0.60); /* your current choice */
  transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1);
}

.collection-card:hover .collection-photo img{
  transform: scale(0.66);
}

.collection-overlay{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}

.collection-title{
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.15;
  text-shadow: 0 6px 18px rgba(0,0,0,.45);
}

/* ===========================
   Items grid (Recently added + general cards)
   =========================== */
.item-card{ grid-column: span 4; }

.item-thumb{
  position: relative;
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,.04);
  overflow: hidden;
}

.item-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Badges */
.badge{
  position:absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: .3px;
  z-index: 4;
}

.badge.sold{ background: rgba(140, 20, 20, .86); }

.item-body{ padding: 12px 14px 14px; }

/* Description in place of title (clamped) */
.item-desc{
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* 2-across grid variant (for homepage bottom section) */
.two-up .item-card{ grid-column: span 6; }

/* still 2-across on tablets */
@media (max-width: 980px){
  .two-up .item-card{ grid-column: span 6; }
}

/* 1-across on phones (you already do this globally) */
@media (max-width: 640px){
  .two-up .item-card{ grid-column: span 12; }
}

.two-up .item-thumb{ aspect-ratio: 16 / 9; }


/* ===========================
   Image title overlay (Featured + Recently added)
   IMPORTANT: z-index fixes the "gray" look.
   =========================== */
.hero-image,
.item-thumb{ position: relative; }

/* Gradient behind text */
.item-thumb::after,
.hero-image::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  pointer-events:none;
  z-index: 1;
}

/* Ensure images sit behind overlays */
.item-thumb img,
.hero-image img{
  position: relative;
  z-index: 0;
}

/* Title on image (lower-left) */
.img-title-overlay{
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  text-shadow: 0 6px 18px rgba(0,0,0,.45);
  pointer-events: none;
  z-index: 3;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

/* ===========================
   Item detail page (kept)
   =========================== */
.detail{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items:start;
}

.detail-media{
  background: rgba(251,248,242,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.detail-media img{
  width:100%;
  height:auto;
  display:block;
}

.detail-panel{
  background: rgba(251,248,242,.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.detail-panel h1{
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
}

.detail-price{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--muted);
  margin-bottom: 12px;
}

.bullets{
  margin: 10px 0 14px;
  padding-left: 18px;
}

/* ===========================
   Footer
   =========================== */
.site-footer{
  border-top: 1px solid var(--border);
  background: rgba(246,241,231,.85);
  padding: 18px 0;
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 18px;
}

.footer-title{ font-size: 16px; }

.footer-links{
  display:flex;
  gap: 14px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
}

.footer-links a{ color: var(--muted); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .item-card{ grid-column: span 6; }
  .collection-card{ grid-column: span 12; }
  .detail{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .nav{ display:none; }
  .hero h1{ font-size: 34px; }
  .item-card{ grid-column: span 12; }
  .hero-notes{ grid-template-columns: 1fr; }
}


/* ===========================
   Homepage bottom gallery
   =========================== */

/* Center the grid itself */
.home-two{
  justify-content: center;
}

/* Make each card larger and truly centered */
.home-two .item-card{
  grid-column: span 6;
  max-width: 520px;     /* controls visual width */
  width: 100%;
  margin: 0 auto;       /* centers each card */
}

/* More landscape / banner-style image */
.home-photo .item-thumb{
  aspect-ratio: 16 / 9; /* wider look */
}

/* Remove overlays & badges (safety) */
.home-photo .item-thumb::after{ content: none; }
.home-photo .img-title-overlay{ display: none; }
.home-photo .badge{ display: none; }

/* Mobile: stack and go full-width */
@media (max-width: 640px){
  .home-two .item-card{
    grid-column: span 12;
    max-width: 100%;
  }
}
