:root {
  color-scheme: light;
  font-size: 112.5%;
  --ink: #17251f;
  --green-950: #10271f;
  --green-900: #17382d;
  --green-800: #21483a;
  --green-100: #dce4dc;
  --paper: #f3efe4;
  --paper-deep: #e7dfce;
  --paper-light: #fbf8f0;
  --copper: #a66a3f;
  --copper-deep: #78472d;
  --line: rgba(23, 56, 45, 0.2);
  --shadow: 0 24px 70px rgba(16, 39, 31, 0.14);
  --serif: "Noto Serif SC", "Songti SC", "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", "Yu Gothic", sans-serif;
  --page-gutter: clamp(0.75rem, 1.5vw, 2rem);
  --intro-width: 1560px;
  --catalogue-width: 2400px;
  --type-small: 0.8rem;
  --type-reading: 0.9rem;
  --text-secondary: #505c53;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eee8da;
  --green-950: #07110d;
  --green-900: #122a21;
  --green-800: #8fb29f;
  --green-100: #263c32;
  --paper: #0b1511;
  --paper-deep: #14231c;
  --paper-light: #192a22;
  --copper: #cf9365;
  --copper-deep: #a96842;
  --line: rgba(231, 223, 206, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --text-secondary: #c5cbbf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.2rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(166, 106, 63, 0.08), transparent 28rem),
    linear-gradient(90deg, rgba(23, 56, 45, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 7px 7px, auto;
  font-family: var(--sans);
  line-height: 1.65;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 12% 18%, rgba(207, 147, 101, 0.09), transparent 30rem),
    linear-gradient(90deg, rgba(231, 223, 206, 0.018) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 7px 7px, auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
}

:where(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--copper-deep);
  outline-offset: 3px;
}

.site-header :focus-visible {
  outline-color: var(--copper);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.55rem 0.9rem;
  color: var(--paper-light);
  background: var(--green-900);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.96);
  border-bottom: 1px solid rgba(231, 223, 206, 0.18);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--intro-width), calc(100% - 2 * var(--page-gutter)));
  min-height: 4.875rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: inherit;
  text-decoration: none;
}

.brand-seal,
.footer-mark {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--paper-light);
  background: var(--copper);
  border-radius: 2px;
  font: 700 1.3rem/1 var(--serif);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.brand strong,
.brand small {
  display: block;
}

.header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
}

.theme-switcher {
  position: relative;
  isolation: isolate;
  width: 17.6rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.24rem;
  background: rgba(7, 17, 13, 0.3);
  border: 1px solid rgba(243, 239, 228, 0.24);
  border-radius: 999px;
}

.theme-switcher::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0.24rem;
  left: 0.24rem;
  width: calc((100% - 0.48rem) / 3);
  height: calc(100% - 0.48rem);
  background: var(--paper-deep);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(4, 17, 13, 0.24);
  transition: transform 180ms ease;
}

.theme-switcher[data-active="system"]::before {
  transform: translateX(100%);
}

.theme-switcher[data-active="dark"]::before {
  transform: translateX(200%);
}

.theme-switcher button {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
  padding: 0.42rem 0.48rem;
  color: rgba(251, 248, 240, 0.84);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}

.theme-switcher button:hover,
.theme-switcher button:focus-visible {
  color: #fbf8f0;
}

.theme-switcher button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}

.theme-switcher button.is-active {
  color: var(--green-950);
}

.theme-switcher svg {
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong {
  font: 700 1.22rem/1.1 var(--serif);
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 0.28rem;
  color: rgba(251, 248, 240, 0.82);
  font-size: var(--type-small);
  letter-spacing: 0.2em;
}

.language-switcher {
  display: flex;
  padding: 0.24rem;
  border: 1px solid rgba(243, 239, 228, 0.24);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 3.35rem;
  padding: 0.42rem 0.75rem;
  color: rgba(251, 248, 240, 0.84);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.875rem;
}

.language-switcher button:hover,
.language-switcher button:focus-visible {
  color: var(--paper-light);
}

.language-switcher button.is-active {
  color: var(--green-950);
  background: var(--paper-deep);
}

.hero {
  color: var(--paper-light);
  background:
    linear-gradient(112deg, rgba(10, 32, 25, 0.97), rgba(23, 56, 45, 0.92)),
    var(--green-900);
  overflow: hidden;
}

.hero-inner {
  position: relative;
  width: min(var(--intro-width), calc(100% - 2 * var(--page-gutter)));
  min-height: 480px;
  margin: 0 auto;
  padding: 7.4rem 0 6.2rem;
}

.hero-inner::before,
.hero-inner::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(231, 223, 206, 0.13);
  border-radius: 50%;
}

.hero-inner::before {
  width: 460px;
  height: 460px;
  right: -90px;
  top: 34px;
  box-shadow:
    0 0 0 52px rgba(231, 223, 206, 0.025),
    0 0 0 104px rgba(231, 223, 206, 0.018);
}

.hero-inner::after {
  width: 112px;
  height: 112px;
  right: 84px;
  top: 208px;
  border-radius: 8px;
  transform: rotate(45deg);
}

.eyebrow,
.section-number,
.detail-id {
  margin: 0;
  color: var(--copper);
  font-size: var(--type-small);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  max-width:1200px;
  margin: 1.2rem 0 1rem;
  font: 600 clamp(2.8rem, 7vw, 5.8rem)/1.1 var(--serif);
  letter-spacing: 0.08em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 40rem;
  margin: 0;
  color: rgba(251, 248, 240, 0.88);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  color: rgba(251, 248, 240, 0.82);
  font-size: var(--type-reading);
  letter-spacing: 0.08em;
}

.hero-meta strong {
  color: var(--paper-light);
  font: 600 1.25rem var(--serif);
}

.meta-divider {
  width: 1px;
  height: 1.1rem;
  background: rgba(251, 248, 240, 0.24);
}

.collection-section {
  width: min(var(--catalogue-width), calc(100% - 2 * var(--page-gutter)));
  margin: 0 auto;
  padding: 6rem 0 7rem;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.6rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0.35rem 0 0;
  font: 600 clamp(2rem, 4vw, 3.3rem)/1.15 var(--serif);
  letter-spacing: 0.08em;
  text-wrap: balance;
}

.section-heading > p {
  max-width: 100%;
  margin: 0 0 0.4rem auto;
  color: var(--text-secondary);
  font-size: var(--type-reading);
  text-align: right;
}

.catalogue-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 15rem) minmax(0, 1fr);
  align-items: start;
  gap: 1.75rem;
}

.catalogue-sidebar {
  position: sticky;
  top: 6.2rem;
  max-height: calc(100vh - 7.4rem);
  padding: 1.4rem;
  background:
    linear-gradient(rgba(251, 248, 240, 0.93), rgba(251, 248, 240, 0.93)),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(23, 56, 45, 0.04) 7px 8px);
  border: 1px solid rgba(23, 56, 45, 0.16);
  border-top: 3px solid var(--copper);
  box-shadow: 0 12px 36px rgba(16, 39, 31, 0.07);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(120, 71, 45, 0.48) transparent;
  scrollbar-width: thin;
}

.sidebar-heading {
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.sidebar-heading h3 {
  margin: 0.35rem 0 0;
  font: 600 1.35rem/1.25 var(--serif);
  letter-spacing: 0.06em;
}

.collection-search > label,
.filter-group legend {
  color: var(--green-900);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.48rem;
}

.search-row input {
  min-width: 0;
  height: 2.45rem;
  padding: 0 0.7rem;
  color: var(--ink);
  background: var(--paper-light);
  border: 1px solid rgba(23, 56, 45, 0.24);
  border-right: 0;
  border-radius: 0;
  font: inherit;
}

.search-row input:focus-visible {
  border-color: var(--copper);
  outline-offset: -2px;
}

.search-row button {
  min-width: 3.6rem;
  padding: 0 0.72rem;
  color: var(--paper-light);
  background: var(--green-900);
  border: 1px solid var(--green-900);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
}

.search-row button:hover,
.search-row button:focus-visible {
  background: var(--copper-deep);
  border-color: var(--copper-deep);
}

.collection-search > p {
  margin: 0.45rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.filter-groups {
  margin-top: 1.3rem;
}

.filter-group {
  min-width: 0;
  margin: 0;
  padding: 1rem 0;
  border: 0;
  border-top: 1px solid rgba(23, 56, 45, 0.11);
}

.filter-group legend {
  width: 100%;
  padding: 0 0 0.42rem;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 1.95rem;
  padding: 0.18rem 0.34rem;
  color: rgba(23, 37, 31, 0.7);
  cursor: pointer;
  font-size: 0.875rem;
}

.filter-group label:hover,
.filter-group label:focus-within {
  color: var(--green-900);
  background: rgba(166, 106, 63, 0.08);
}

.filter-group input {
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
  accent-color: var(--copper-deep);
}

.filter-group input:checked + span {
  color: var(--green-900);
  font-weight: 800;
}

.clear-filters {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.62rem 0.8rem;
  color: var(--copper-deep);
  background: transparent;
  border: 1px solid rgba(120, 71, 45, 0.42);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
}

.clear-filters:hover,
.clear-filters:focus-visible {
  color: var(--paper-light);
  background: var(--copper-deep);
}

.collection-results {
  min-width: 0;
}

.results-toolbar {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(23, 56, 45, 0.11);
}

.refresh-collection {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  min-width: 6.6rem;
  padding: 0.5rem 0.85rem;
  color: var(--paper-light);
  background: var(--green-900);
  border: 1px solid var(--green-900);
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.refresh-collection:hover,
.refresh-collection:focus-visible {
  background: var(--copper-deep);
  border-color: var(--copper-deep);
}

.refresh-collection:active {
  transform: translateY(1px);
}

.refresh-collection:disabled {
  opacity: 0.38;
  cursor: default;
}

.refresh-collection svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.results-toolbar p {
  margin: 0;
  color: var(--text-secondary);
  font: 0.875rem var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}

.no-results {
  min-height: 22rem;
  padding: 6rem 2rem;
  color: rgba(23, 37, 31, 0.55);
  background: rgba(251, 248, 240, 0.56);
  border: 1px dashed rgba(23, 56, 45, 0.24);
  text-align: center;
}

.no-results[hidden] {
  display: none;
}

.no-results > span {
  display: block;
  color: var(--copper);
  font: 2.4rem/1 var(--serif);
}

.no-results h3 {
  margin: 1rem 0 0.35rem;
  color: var(--green-900);
  font: 600 1.2rem var(--serif);
}

.no-results p {
  margin: 0;
  font-size: 0.78rem;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.35rem 1.1rem;
}

.collection-card {
  position: relative;
  min-width: 0;
  background: var(--paper-light);
  border: 1px solid rgba(23, 56, 45, 0.13);
  box-shadow: 0 12px 38px rgba(16, 39, 31, 0.07);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-open {
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.card-open:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: -3px;
}

.card-image {
  position: relative;
  aspect-ratio: 5 / 3.5;
  background: #dfddd4;
  overflow: hidden;
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(16, 39, 31, 0.08);
  pointer-events: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transition: transform 500ms ease;
}

.item-tooltip {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  min-width: 10rem;
  max-width: min(22rem, calc(100vw - 1.25rem));
  padding: 0.7rem 0.85rem;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.5);
  border: 1px solid rgba(231, 223, 206, 0.28);
  border-left: 3px solid var(--copper);
  border-radius: 2px;
  box-shadow: 0 12px 32px rgba(4, 17, 13, 0.28);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  backdrop-filter: blur(10px) saturate(115%);
  transition: none;
  will-change: transform;
}

.item-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.item-tooltip-name {
  display: block;
  color: #fffdf7;
  font: 600 0.86rem/1.4 var(--serif);
  text-shadow: 0 1px 3px rgba(4, 17, 13, 0.7);
}

.item-tooltip-price {
  display: block;
  margin-top: 0.18rem;
  color: #f0c39d;
  font-size: var(--type-small);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(4, 17, 13, 0.7);
}

.card-share {
  position: absolute;
  z-index: 3;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.68);
  border: 1px solid rgba(251, 248, 240, 0.38);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 140ms ease, transform 140ms ease;
}

.card-share:hover,
.card-share:focus-visible,
.card-share[aria-expanded="true"] {
  background: var(--copper-deep);
  transform: scale(1.06);
}

.card-share:focus-visible {
  outline: 2px solid var(--paper-light);
  outline-offset: 2px;
}

.card-share svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.share-menu {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  width: min(15.5rem, calc(100vw - 1.25rem));
  max-height: calc(100dvh - 20px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.75rem;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.96);
  border: 1px solid rgba(231, 223, 206, 0.24);
  border-top: 3px solid var(--copper);
  box-shadow: 0 18px 45px rgba(4, 17, 13, 0.34);
  backdrop-filter: blur(12px);
}

.share-menu[hidden] {
  display: none;
}

.share-menu-title {
  margin: 0 0 0.55rem;
  color: rgba(251, 248, 240, 0.72);
  font: var(--type-small)/1.4 var(--serif);
  letter-spacing: 0.06em;
}

.share-menu-actions {
  display: grid;
  gap: 0.25rem;
}

.share-menu-actions button {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.52rem 0.6rem;
  color: var(--paper-light);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 0.875rem;
  text-align: left;
}

.share-menu-actions button:hover,
.share-menu-actions button:focus-visible {
  background: rgba(231, 223, 206, 0.13);
}

.share-menu-actions button:focus-visible {
  outline: 2px solid #dda77c;
  outline-offset: -2px;
}

.share-menu-actions button > span:first-child {
  color: #dda77c;
  font-size: 1rem;
  text-align: center;
}

.share-toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 1.25rem;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1rem;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.94);
  border-left: 3px solid var(--copper);
  box-shadow: 0 12px 32px rgba(4, 17, 13, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.6rem);
  transition: opacity 140ms ease, transform 140ms ease;
}

.share-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.collection-card:hover .card-image img {
  transform: scale(1.025);
}

.card-index {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.32rem 0.62rem;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.82);
  font-size: var(--type-small);
  letter-spacing: 0.16em;
  backdrop-filter: blur(8px);
}

.card-body {
  padding: 1.25rem 1.2rem 1.15rem;
}

.card-topline,
.card-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-topline {
  flex-wrap: wrap;
  column-gap: 0.6rem;
  row-gap: 0.15rem;
}

.card-category {
  margin: 0;
  color: var(--copper-deep);
  font-size: var(--type-small);
  letter-spacing: 0.06em;
}

.image-total {
  color: var(--text-secondary);
  font-size: var(--type-small);
}

.card-body h3 {
  min-height: 2.7em;
  margin: 0.55rem 0 0.35rem;
  font: 600 1.32rem/1.35 var(--serif);
  letter-spacing: 0.035em;
  overflow-wrap: anywhere;
}

.card-period {
  min-height: 1.6em;
  margin: 0;
  color: var(--text-secondary);
  font: var(--type-reading) var(--serif);
}

.card-dimensions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.18rem;
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-size: var(--type-reading);
  font-variant-numeric: tabular-nums;
  line-height: 1.55;
}

.card-dimensions span {
  color: var(--copper-deep);
  font-weight: 700;
  white-space: nowrap;
}

.card-bottomline {
  justify-content: flex-end;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(23, 56, 45, 0.11);
}

.card-price {
  font-size: 0.95rem;
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--green-800);
  font-size: 0.73rem;
  font-weight: 700;
}

.status-badge::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  background: currentColor;
  border-radius: 50%;
}

.status-badge[data-status="sold"] {
  color: #7a4437;
}

.status-badge[data-status="reserved"] {
  color: #8a6729;
}

.status-badge[data-status="display_only"] {
  color: #5e665f;
}

.load-message {
  margin: 3rem 0;
  color: rgba(23, 37, 31, 0.56);
  text-align: center;
}

.load-message[hidden] {
  display: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem max(var(--page-gutter), calc((100% - var(--intro-width)) / 2));
  color: rgba(251, 248, 240, 0.84);
  background: var(--green-950);
  border-top: 3px solid var(--copper);
  font-size: var(--type-small);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.site-footer p {
  margin: 0;
}

.footer-mark {
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  flex: 0 0 auto;
}

.item-dialog {
  width: min(72.5rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  padding: 0;
  color: var(--ink);
  background: var(--paper-light);
  border: 0;
  box-shadow: 0 40px 100px rgba(4, 17, 13, 0.48);
  overflow: auto;
  overscroll-behavior: contain;
}

.item-dialog::backdrop {
  background: rgba(7, 24, 18, 0.82);
  backdrop-filter: blur(6px);
}

.dialog-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(21.25rem, 0.8fr);
  min-height: min(730px, calc(100vh - 2rem));
}

.dialog-close {
  position: absolute;
  z-index: 10;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.88);
  border: 1px solid rgba(251, 248, 240, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: var(--copper-deep);
}

.gallery-panel {
  min-width: 0;
  padding: 2rem;
  background: #d9d6cc;
}

.main-image-wrap {
  position: relative;
  height: min(750px, calc(100vh - 185px));
  min-height: 360px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), rgba(16, 39, 31, 0.05)),
    #e7e4db;
  overflow: hidden;
}

.main-image-wrap img {
  position:absolute;
  inset:0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit:cover;
  object-position: center center;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  width: 2.7rem;
  height: 3.7rem;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.72);
  border: 0;
  cursor: pointer;
  font-size: 2rem;
  transform: translateY(-50%);
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: var(--copper-deep);
}

.gallery-prev {
  left: 0;
}

.gallery-next {
  right: 0;
}

.image-counter {
  position: absolute;
  right: 0.85rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  color: var(--paper-light);
  background: rgba(16, 39, 31, 0.74);
  font-size: var(--type-small);
  letter-spacing: 0.08em;
}

.thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.thumbnail {
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #cac7bd;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit:contain;
  object-position: center;
}

.thumbnail.is-active {
  border-color: var(--copper-deep);
}

.detail-panel {
  padding: 4.5rem 3rem 2.5rem;
  background: var(--paper-light);
  overflow: auto;
}

.detail-panel h2 {
  margin: 0.7rem 0 1rem;
  font: 600 clamp(2rem, 4vw, 3.2rem)/1.2 var(--serif);
  overflow-wrap: anywhere;
}

.detail-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-list > div {
  display: grid;
  grid-template-columns: 5.2rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.86rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--text-secondary);
  font-size: var(--type-small);
  letter-spacing: 0.1em;
}

.detail-list dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1rem;
}

.detail-commerce {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  background: var(--paper-deep);
  border-left: 3px solid var(--copper);
}

.detail-commerce > div {
  text-align: right;
}

.detail-commerce > div span,
.detail-commerce > div strong {
  display: block;
}

.detail-commerce > div span {
  color: var(--text-secondary);
  font-size: var(--type-small);
}

.detail-commerce > div strong {
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-size: 1rem;
}

body.dialog-open {
  overflow: hidden;
}

html[data-theme="dark"] .catalogue-sidebar {
  background:
    linear-gradient(rgba(25, 42, 34, 0.95), rgba(25, 42, 34, 0.95)),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(231, 223, 206, 0.035) 7px 8px);
  border-color: rgba(231, 223, 206, 0.13);
  border-top-color: var(--copper);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .section-heading > p,
html[data-theme="dark"] .collection-search > p,
html[data-theme="dark"] .filter-group label,
html[data-theme="dark"] .results-toolbar p,
html[data-theme="dark"] .no-results,
html[data-theme="dark"] .image-total,
html[data-theme="dark"] .card-period,
html[data-theme="dark"] .card-dimensions,
html[data-theme="dark"] .load-message,
html[data-theme="dark"] .detail-list dt,
html[data-theme="dark"] .detail-commerce > div span {
  color: var(--text-secondary);
}

html[data-theme="dark"] .collection-search > label,
html[data-theme="dark"] .filter-group legend,
html[data-theme="dark"] .filter-group input:checked + span,
html[data-theme="dark"] .filter-group label:hover,
html[data-theme="dark"] .no-results h3 {
  color: #e7dfce;
}

html[data-theme="dark"] .search-row input {
  color: var(--ink);
  background: #101e18;
  border-color: rgba(231, 223, 206, 0.2);
}

html[data-theme="dark"] .search-row button,
html[data-theme="dark"] .clear-filters:hover,
html[data-theme="dark"] .clear-filters:focus-visible {
  color: #fbf8f0;
}

html[data-theme="dark"] .filter-group,
html[data-theme="dark"] .results-toolbar,
html[data-theme="dark"] .card-bottomline {
  border-color: rgba(231, 223, 206, 0.11);
}

html[data-theme="dark"] .filter-group label:hover {
  background: rgba(207, 147, 101, 0.1);
}

html[data-theme="dark"] .clear-filters {
  color: #dca77e;
  border-color: rgba(207, 147, 101, 0.46);
}

html[data-theme="dark"] .no-results {
  background: rgba(25, 42, 34, 0.7);
  border-color: rgba(231, 223, 206, 0.2);
}

html[data-theme="dark"] .collection-card {
  border-color: rgba(231, 223, 206, 0.11);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] .card-image {
  background: #111e19;
}

html[data-theme="dark"] .card-image::after {
  box-shadow: inset 0 0 0 1px rgba(231, 223, 206, 0.06);
}

html[data-theme="dark"] .card-category,
html[data-theme="dark"] .card-dimensions span {
  color: #dca77e;
}

html[data-theme="dark"] .item-dialog,
html[data-theme="dark"] .detail-panel {
  background: var(--paper-light);
}

html[data-theme="dark"] .gallery-panel {
  background: #0e1915;
}

html[data-theme="dark"] .main-image-wrap {
  background:
    linear-gradient(135deg, rgba(231, 223, 206, 0.05), rgba(0, 0, 0, 0.2)),
    #14211c;
}

html[data-theme="dark"] .thumbnail {
  background: #101d18;
}

html[data-theme="dark"] .detail-commerce {
  background: #101e18;
}

html[data-theme="dark"] .theme-switcher::before {
  background: #e7dfce;
}

html[data-theme="dark"] .theme-switcher button.is-active {
  color: #10271f;
}

html[data-theme="dark"] .language-switcher button.is-active {
  color: #10271f;
  background: #e7dfce;
}

html[data-theme="dark"] .brand-seal,
html[data-theme="dark"] .footer-mark,
html[data-theme="dark"] .skip-link,
html[data-theme="dark"] .search-row button,
html[data-theme="dark"] .refresh-collection,
html[data-theme="dark"] .card-share,
html[data-theme="dark"] .card-index,
html[data-theme="dark"] .dialog-close,
html[data-theme="dark"] .gallery-arrow,
html[data-theme="dark"] .image-counter {
  color: #fbf8f0;
}

html[data-theme="dark"] .language-switcher button:not(.is-active):hover,
html[data-theme="dark"] .language-switcher button:not(.is-active):focus-visible,
html[data-theme="dark"] .hero-meta strong,
html[data-theme="dark"] .share-menu-actions button {
  color: #fbf8f0;
}

html[data-theme="dark"] .card-share:focus-visible {
  outline-color: #fbf8f0;
}

html[data-theme="dark"] .site-header,
html[data-theme="dark"] .hero,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .share-menu,
html[data-theme="dark"] .share-toast,
html[data-theme="dark"] .item-tooltip {
  color: #fbf8f0;
}

@media (max-width: 1280px) {
  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .catalogue-layout {
    grid-template-columns: 1fr;
  }

  .catalogue-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .filter-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .filter-group {
    border-top: 0;
  }
}

@media (max-width: 840px) {
  .hero-inner::before {
    right: -260px;
  }

  .section-heading {
    display: block;
  }

  .section-heading > p {
    margin: 1rem 0 0.4rem;
    text-align: left;
  }

  .collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dialog-shell {
    display: block;
  }

  .gallery-panel {
    padding: 1rem;
  }

  .main-image-wrap {
    height: min(58vh, 520px);
    min-height: 300px;
  }

  .detail-panel {
    padding: 2.4rem 1.5rem 2rem;
  }
}

@media (max-width: 1020px) {
  html {
    scroll-padding-top: 9rem;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.55rem 0;
  }

  .header-controls {
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(243, 239, 228, 0.16);
  }

  .theme-switcher {
    width: min(17.6rem, 100%);
    min-width: 0;
    flex-shrink: 1;
  }

  .language-switcher {
    flex-shrink: 0;
  }
}

@media (max-width: 760px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 68px;
    gap: 0.75rem;
  }

  .brand {
    min-width: 0;
  }

  .theme-switcher {
    width: 16.5rem;
  }

  .brand small {
    display: none;
  }

  .brand-seal {
    width: 2.1rem;
    height: 2.1rem;
  }

  .language-switcher button {
    min-width: auto;
    padding-inline: 0.5rem;
    white-space:nowrap;
  }

  .hero-inner {
    min-height: 430px;
    padding: 6rem 0 4.2rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .meta-divider {
    display: none;
  }

  .collection-section {
    padding: 4rem 0 5rem;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }

  .catalogue-sidebar {
    padding: 1.1rem;
  }

  .filter-groups {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .filter-group {
    border-top: 1px solid rgba(23, 56, 45, 0.11);
  }

  .card-body {
    padding: 1.3rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .item-dialog {
    width: 100%;
    max-height: 100vh;
    margin: 0;
  }

  .main-image-wrap {
    height: 52vh;
    min-height: 280px;
  }

  .dialog-close {
    top: 0.7rem;
    right: 0.7rem;
  }
}

@media (max-width: 430px) {
  .collection-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .theme-switcher svg {
    display: none;
  }
}

@media (max-width: 480px) {
  .theme-switcher {
    width: 8.8rem;
  }

  .theme-switcher button {
    padding-inline: 0.35rem;
  }

  .theme-switcher button span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (hover: none), (pointer: coarse) {
  .item-tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
