:root {
  --ink: #111111;
  --paper: #ffffff;
  --warm: #f4efe8;
  --line: #d8d2c7;
  --muted: #68635d;
  --text: #1E1E1E;
  --accent: #e63946;
  --charcoal: #202020;
  --mist: #f7f5f1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Montserrat, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: inherit; }
a:focus, button:focus, input:focus { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 1000;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border: 1px solid var(--accent);
}
.skip-link:focus { top: 16px; }

.container { width: min(1180px, calc(100% - 32px)); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--ink);
  border-bottom: 1px solid rgba(216, 210, 199, 0.28);
}

.site-header nav {
  background: transparent;
  box-shadow: none;
  min-height: 72px;
  line-height: 72px;
}

.site-header .brand-logo,
.mobile-brand,
.footer-brand {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}

.site-header .brand-logo {
  color: #fff;
  font-size: 28px;
  white-space: nowrap;
}

.site-header nav ul a {
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav ul a:hover,
.site-header li.active > a {
  color: #fff;
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.dropdown-content {
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(17,17,17,0.18);
}

.dropdown-content li > a {
  color: var(--ink);
  line-height: 1.4;
}

.sidenav {
  background: var(--ink);
  padding-top: 20px;
}
.sidenav li > a { color: #fff; }
.sidenav .mobile-child { padding-left: 46px; color: rgba(255,255,255,0.72); }

.breadcrumb-nav {
  background: var(--warm);
  box-shadow: none;
  height: auto;
  line-height: 1.4;
  padding: 13px 0;
}
.breadcrumb-nav .breadcrumb {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.breadcrumb-nav .breadcrumb:before { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 78px);
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
}

.eyebrow,
.card-meta,
.card-byline,
.article-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.52) contrast(1.15);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 96px 0;
}

.hero-content h1 {
  max-width: 760px;
  color: #fff;
  margin-bottom: 28px;
}

.hero-content p {
  max-width: 620px;
  color: rgba(255,255,255,0.82);
  font-size: 18px;
}

.wall-btn,
.wall-btn:focus {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--warm);
  border-radius: 2px;
  box-shadow: none;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.wall-btn:hover { background: #bd2430; }

.intro-strip {
  background: var(--warm);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}
.intro-strip .col {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  color: var(--charcoal);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.intro-strip i { color: var(--accent); }

.section { padding: 76px 0; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
}

.listing-hero,
.article-hero,
.static-hero {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.listing-hero.compact,
.static-hero.compact { padding: 54px 0; }
.image-led-hero {
  background: var(--ink);
}
.image-led-hero h1,
.image-led-hero .eyebrow { color: #fff; }

.listing-grid,
.gallery-grid,
.category-grid { margin-bottom: 0; }

.card {
  border-radius: 4px;
  border: 1px solid var(--line);
  box-shadow: none;
}

.artwork-card {
  height: 100%;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.artwork-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(17,17,17,0.12);
}
.artwork-card .card-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--warm);
  overflow: hidden;
}
.artwork-card .card-image img,
.category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform .5s ease, filter .2s ease;
}
.artwork-card:hover img,
.category-thumb:hover img {
  transform: scale(1.04);
  filter: grayscale(0.25);
}
.artwork-card h2,
.category-card h2 {
  font-size: 24px;
  line-height: 1.18;
  margin: 8px 0 10px;
}
.artwork-card h2 a,
.category-card h2 a { text-decoration: none; }
.artwork-card .card-content p,
.category-card p { color: var(--muted); }

.content-flow {
  min-width: 0;
  color: var(--charcoal);
}
.content-flow > *:first-child { margin-top: 0; }
.content-flow p,
.content-flow li {
  font-size: 17px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
.content-flow a,
.read-more,
.footer-links a,
.collection-item {
  color: var(--accent);
  text-decoration: none;
}
.content-flow a:hover,
.read-more:hover,
.footer-links a:hover { text-decoration: underline; }

.content-figure {
  margin: 32px 0;
  background: var(--warm);
  border: 1px solid var(--line);
  padding: 12px;
}
.content-figure img,
.main-image img {
  display: block;
  max-width: 100%;
  height: auto;
}
figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.content-list {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.framed-flow,
.narrow-flow,
.content-article {
  max-width: 900px;
}
.framed-flow {
  border: 1px solid var(--line);
  padding: 32px;
  background: #fff;
}

.sidebar-panel {
  position: sticky;
  top: 110px;
  background: var(--warm);
  border: 1px solid var(--line);
  padding: 20px;
}
.sidebar-panel h2 {
  font-size: 22px;
  margin-top: 0;
}
.sidebar-panel .collection {
  border-radius: 0;
  border-color: var(--line);
}
.sidebar-panel .collection-item {
  color: var(--charcoal);
  line-height: 1.35;
}

.article-header {
  padding: 70px 0 34px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.summary {
  max-width: 760px;
  font-size: 20px;
  color: var(--muted);
}
.toc {
  background: var(--warm);
  border-left: 4px solid var(--accent);
  margin: 24px 0 36px;
  padding: 16px 20px;
}
.toc ul {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.toc li { list-style: none; }

.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  margin-bottom: 24px;
  padding: 18px;
}
.category-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--warm);
  margin: -18px -18px 16px;
}
.horizontal-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: 20px;
}
.horizontal-card .category-thumb {
  margin: 0;
  aspect-ratio: 4 / 3;
}
.minimal-card {
  border-width: 0 0 0 4px;
  border-left-color: var(--accent);
  background: var(--mist);
}

.table-block {
  max-width: 100%;
  overflow-x: auto;
  margin: 28px 0;
}
.table-block table {
  min-width: 520px;
  border: 1px solid var(--line);
}

blockquote {
  border-left-color: var(--accent);
  color: var(--charcoal);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1.42;
}

.unknown-block {
  border: 1px dashed var(--line);
  padding: 14px;
  color: var(--muted);
}

.page-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.76);
  padding-top: 56px;
}
.page-footer .footer-brand {
  display: inline-block;
  color: #fff;
  font-size: 30px;
  margin-bottom: 12px;
}
.footer-title {
  color: #fff;
  font-size: 22px;
  margin-top: 0;
}
.footer-links li { margin-bottom: 8px; }
.footer-action {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  padding: 10px 16px;
}
.footer-copyright {
  background: #060606;
  color: rgba(255,255,255,0.58);
  margin-top: 34px;
}
.footer-copyright a { color: rgba(255,255,255,0.72); }

@media (max-width: 992px) {
  .site-header nav { min-height: 64px; line-height: 64px; }
  .site-header .brand-logo { font-size: 23px; }
  .home-hero { min-height: 520px; }
  .section { padding: 56px 0; }
  .sidebar-panel { position: static; margin-top: 24px; }
  .horizontal-card { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 24px, 1180px); }
  .home-hero { min-height: 470px; }
  .hero-content { padding: 72px 0; }
  .intro-strip .col { justify-content: flex-start; }
  .section-heading { display: block; }
  .framed-flow { padding: 20px; }
  .article-header { padding-top: 46px; }
  .toc ul { display: block; }
}
