/* ================================================================
   NEDERLANDER COLLECTION — Stylesheet
   Institutional serif design. Mobile-first. Progressive enhancement.
   ================================================================ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --ink:       #1c1917;
  --ink-light: #44403c;
  --bg:        #faf8f4;
  --bg-alt:    #f3efe8;
  --surface:   #ffffff;
  --sienna:    #9a4a2c;
  --sienna-bg: rgba(154,74,44,0.06);
  --gold:      #a67c37;
  --muted:     #8c8278;
  --light:     #b0a99f;
  --rule:      #e0dbd3;
  --radius:    4px;
  --max-w:     1140px;
  --max-w-narrow: 780px;
}

/* ── ACCESSIBILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

/* ── BASE TYPOGRAPHY ── */
body {
  font-family: Georgia, 'Times New Roman', 'DejaVu Serif', serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.5rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.3rem; margin-top: 1.8rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a { color: var(--sienna); text-decoration: none; }
a:hover { text-decoration: underline; }

blockquote {
  border-left: 3px solid var(--rule);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  color: var(--ink-light);
  font-style: italic;
}

/* ── LAYOUT ── */
.container     { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 1.5rem; }

/* ── SITE HEADER ── */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 2rem 0 1.5rem;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.site-title a { color: inherit; text-decoration: none; }
.site-title em { font-style: italic; font-weight: 400; color: var(--sienna); }

.site-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}

.site-header__meta {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── NAVIGATION ── */
.site-nav {
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  position: sticky;
  top: 0;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.site-nav .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  align-items: center;
}

.site-nav a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 15px;
  color: var(--ink-light);
  padding: 0.35rem 0;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav a:hover { color: var(--sienna); }
.site-nav a[aria-current="page"] {
  color: var(--sienna);
  border-bottom: 2px solid var(--sienna);
}

.site-nav__sep {
  color: var(--rule);
  font-size: 13px;
  user-select: none;
}

/* ── BREADCRUMBS ── */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 1rem 0 0;
  line-height: 1.4;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--sienna); }
.breadcrumbs__sep { margin: 0 0.4rem; color: var(--light); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}

.page-header h1 { margin-bottom: 0.5rem; }

.page-header__desc {
  font-size: 16px;
  color: var(--ink-light);
  max-width: 640px;
  line-height: 1.65;
}

.page-header__meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* ── ITEMS GRID ── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

/* ── ITEM CARD ── */
.item-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.item-card:hover {
  box-shadow: 0 6px 24px rgba(28,25,23,0.1);
  transform: translateY(-2px);
}

.item-card a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }

.item-card__image {
  height: 220px;
  background: var(--bg-alt);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-card__placeholder {
  font-size: 2.8rem;
  opacity: 0.25;
  line-height: 1;
}

.item-card__body {
  padding: 1rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-card__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 0.3rem;
  font-family: Georgia, serif;
}

.item-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.item-card__desc {
  font-size: 14px;
  color: var(--ink-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.item-card__footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

.item-card__date { font-style: italic; }

/* ── ITEM PAGE ── */
.item-page {
  padding: 0 0 4rem;
}

.item-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 420px;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.item-hero__media {
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.item-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 600px;
  padding: 1rem;
}

.item-hero__placeholder {
  font-size: 4rem;
  opacity: 0.2;
}

.item-hero__info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.item-hero__category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sienna);
  margin-bottom: 0.5rem;
  font-family: Georgia, serif;
}

.item-hero__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.item-hero__desc {
  font-size: 16px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* ── ITEM METADATA TABLE ── */
.item-meta {
  padding: 2rem 0;
}

.item-meta__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem 2rem;
}

.item-meta__field {}

.item-meta__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
  font-family: Georgia, serif;
}

.item-meta__value {
  font-size: 15px;
  color: var(--ink);
}

/* ── ITEM CONTEXT (biography / research) ── */
.item-context {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

.item-context h2 {
  font-size: 1.3rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.item-context__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-light);
}

.item-context__source {
  margin-top: 1rem;
  font-size: 13px;
}

.item-context__source a {
  color: var(--sienna);
}

/* ── TAGS ── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
}

.tag-list li {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  padding: 0.15rem 0.55rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-radius: 2px;
}

/* ── RELATED ITEMS ── */
.related-items {
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
}

.related-items h2 {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.related-items .items-grid {
  padding: 0;
}

/* ── CATEGORY SUMMARY ── */
.category-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 1rem 0 0;
  font-size: 14px;
  color: var(--muted);
}

.category-stats strong {
  color: var(--ink);
  font-weight: 600;
}

/* ── RESEARCH ARTICLE ── */
.research-article {
  padding: 2rem 0 4rem;
}

.research-article__body {
  font-size: 17px;
  line-height: 1.78;
}

.research-article__body h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

.research-article__body h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.4rem;
}

.research-article__body p {
  margin-bottom: 1.1rem;
}

.research-article__items {
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}

/* ── CONTACT PAGE ── */
.contact-section {
  padding: 2rem 0 4rem;
}

.contact-section h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

.contact-section p {
  max-width: 640px;
}

.contact-email {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  color: var(--sienna);
  padding: 0.5rem 0;
}

/* ── SEARCH (progressive enhancement) ── */
.search-box {
  margin-bottom: 1.5rem;
}

.search-box input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0.8rem;
  font-size: 15px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.search-box input:focus {
  outline: none;
  border-color: var(--sienna);
  box-shadow: 0 0 0 3px rgba(154,74,44,0.08);
}

/* ── FILTER PILLS (progressive enhancement) ── */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.filter-pill {
  background: none;
  border: 1px solid var(--rule);
  padding: 0.3rem 0.75rem;
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}

.filter-pill:hover {
  color: var(--ink);
  border-color: var(--ink-light);
}

.filter-pill--active {
  color: var(--sienna);
  border-color: var(--sienna);
  background: var(--sienna-bg);
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  margin-top: 3rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 12px;
  color: var(--muted);
}

/* ── STRUCTURED DATA (visually hidden) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .item-hero {
    grid-template-columns: 1fr;
  }
  .item-hero__media { min-height: 280px; }
  .item-hero__info { padding: 1.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container, .container--narrow { padding: 0 1rem; }
  .items-grid { grid-template-columns: 1fr; gap: 1rem; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .site-header__meta { text-align: left; }
  .item-meta__grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}

/* ── PRINT ── */
@media print {
  .site-nav, .site-footer, .search-box, .filter-pills { display: none; }
  body { font-size: 12pt; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .item-hero { grid-template-columns: 1fr; }
}

/* ── MEDIA TABS (Photo / 3D Scan) ── */
.media-tabs__nav {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.media-tab {
  background: none;
  border: 1px solid var(--rule);
  padding: 0.3rem 0.85rem;
  font-family: Georgia, serif;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius);
  transition: all 0.15s ease;
}
.media-tab:hover {
  color: var(--ink);
  border-color: var(--ink-light);
}
.media-tab.active {
  color: var(--sienna);
  border-color: var(--sienna);
  background: var(--sienna-bg);
}
