@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #24211d;
  --muted: #5f5850;
  --gold: #77541e;
  --line: #d9cfbe;
  --paper: #faf7f0;
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: Montserrat, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1rem/1.6 var(--sans); }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1; }
h2 { font-size: clamp(2.45rem, 5vw, 3.9rem); letter-spacing: -.035em; }
.frame { width: min(calc(100% - 6rem), 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; left: 1rem; top: -5rem; padding: .75rem; background: white; }
.skip:focus { top: .5rem; }
:focus-visible { outline: 3px solid #9b671b; outline-offset: 4px; }
.assistance { background: #24211d; color: #fff8e9; font-size: .875rem; }
.assistance .frame, footer .frame { display: flex; justify-content: space-between; gap: 1rem; padding-block: .65rem; }
.assistance a, .masthead a, .button, .outline { text-decoration: none; }
.assistance b { margin-left: .45rem; color: #f6d28b; }
.masthead { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { width: 186px; height: 83px; object-fit: contain; object-position: left center; }
.masthead nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(.85rem, 3vw, 2.5rem); font-size: .875rem; font-weight: 600; }
.masthead nav a:hover, footer a:hover { text-decoration: underline; }
.button, .outline { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1.15rem; border: 1px solid var(--gold); font-size: .875rem; font-weight: 700; }
.button { color: white; background: var(--gold); }
.button:hover { background: #5a3e16; }
.outline { color: var(--gold); }
.outline:hover { background: #f4ebdb; }
.hero { background: var(--paper); border-block: 1px solid #ece3d4; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.7rem, 6.2vw, 5.4rem); }
.hero-copy { padding-block: .8rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--gold); font-weight: 700; font-size: .875rem; letter-spacing: .12em; }
.eyebrow span { width: 1.9rem; height: 1px; background: var(--gold); }
h1 { margin-top: .85rem; font-size: clamp(3.15rem, 6.5vw, 6.45rem); letter-spacing: -.047em; line-height: .88; }
.hero-copy p { max-width: 33rem; margin: 1.35rem 0 1.65rem; color: var(--muted); }
.featured { padding: .7rem; border: 1px solid #d5c29f; background: #fff; }
.featured img { width: 100%; height: clamp(230px, 29vw, 410px); object-fit: contain; background: white; }
.featured figcaption { border-top: 1px solid #eee5d7; text-align: center; padding: .45rem .4rem .05rem; color: var(--gold); font: 600 1.3rem var(--serif); }
.section { padding-block: clamp(3.25rem, 6.5vw, 5.8rem); }
.section-heading p { max-width: 54ch; margin-top: .55rem; color: var(--muted); }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; margin-top: 1.75rem; }
.filters label { display: grid; gap: .3rem; font-size: .875rem; font-weight: 700; }
.filters input, .filters select { width: 100%; min-width: 0; min-height: 49px; padding: .55rem .8rem; border: 1px solid #bcb09f; border-radius: 0; background-color: white; font-size: 1rem; font-weight: 400; }
.filters select { appearance: none; padding-right: 2rem; background-image: linear-gradient(45deg,transparent 50%,var(--gold) 50%),linear-gradient(135deg,var(--gold) 50%,transparent 50%); background-position: calc(100% - 16px) 51%,calc(100% - 10px) 51%; background-size: 6px 6px; background-repeat: no-repeat; }
.results-bar { display: flex; align-items: center; justify-content: space-between; min-height: 57px; gap: .8rem; font-size: .875rem; color: var(--muted); }
#reset { border: 0; padding: .45rem 0; background: transparent; color: var(--gold); text-decoration: underline; }
#reset:disabled { visibility: hidden; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { width: 100%; padding: 0; display: flex; flex-direction: column; text-align: left; border: 1px solid var(--line); background: white; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: #a68047; box-shadow: 0 .3rem .9rem #33291513; }
.card-photo { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; padding: .8rem; border-bottom: 1px solid #eee5d7; }
.card-photo img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.card-copy { padding: .95rem 1rem 1rem; display: grid; align-content: start; flex: 1; gap: .35rem; }
.card-name { font: 600 clamp(1.48rem, 2.4vw, 1.95rem)/.98 var(--serif); }
.card-editions, .item-number, .detail-theme { font-size: .875rem; color: var(--muted); }
.card-editions { margin-top: .25rem; }
.card-action { font-size: .875rem; color: var(--gold); font-weight: 700; margin-top: .2rem; }
.empty { grid-column: 1/-1; padding: 2rem; background: var(--paper); }
.contents { background: var(--paper); border-block: 1px solid #ece3d4; }
.contents-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; padding-block: 3.6rem; }
.contents p, .contact p { margin-top: .75rem; max-width: 58ch; color: var(--muted); }
.contents ul { align-self: center; }
[data-contents] { margin: .45rem 0 0; padding-left: 1.2em; }
[data-contents] li::marker { color: var(--gold); }
.contact { text-align: center; }
.contact p { margin-inline: auto; }
.contact-actions, .locations { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.35rem; }
.locations { gap: .75rem 1.75rem; font-size: .875rem; }
.locations a { text-decoration: none; }
.locations span { color: var(--gold); white-space: nowrap; text-decoration: underline; }
footer { background: #24211d; color: #fff8e9; font-size: .875rem; }
footer .frame { padding-block: 1.5rem; }
dialog { width: min(880px, calc(100% - 2rem)); max-height: calc(100% - 2rem); padding: 0; border: 1px solid var(--line); color: var(--ink); }
dialog::backdrop { background: #211b15a8; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-shell { display: grid; grid-template-columns: .96fr 1.04fr; position: relative; }
.close-form { position: absolute; top: .55rem; right: .55rem; }
.close { width: 43px; height: 43px; padding: 0; border: 1px solid var(--line); background: white; font-size: 1.65rem; line-height: 1; }
.detail-image { align-self: stretch; display: grid; place-items: center; min-width: 0; padding: 1rem; border-right: 1px solid var(--line); }
.detail-image img { width: 100%; object-fit: contain; }
.detail-body { padding: 2.3rem 1.6rem 1.6rem; }
.detail-body h2 { font-size: clamp(2.1rem, 5vw, 3.3rem); margin: .2rem 0 1.1rem; }
.detail-body h3 { font-size: 1.7rem; margin-top: .8rem; }
.detail-body ul { font-size: .95rem; }
.detail-body .button { margin-top: 1rem; }
#editions { border: 0; padding: 0; margin: 0; font-size: .875rem; }
#editions legend { font-weight: 700; margin-bottom: .25rem; }
#edition-options { display: flex; flex-wrap: wrap; gap: .4rem; }
#edition-options label { position: relative; cursor: pointer; }
#edition-options input { position: absolute; opacity: 0; }
#edition-options span { display: block; padding: .35rem .65rem; border: 1px solid var(--line); }
#edition-options input:checked + span { border-color: var(--gold); background: var(--paper); color: var(--gold); font-weight: 700; }
#edition-options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.item-number { margin-top: .45rem; }
@media (max-width: 900px) { .frame { width: calc(100% - 3.5rem); } .hero-grid { gap: 2rem; } .desktop { display: none; } .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .frame { width: calc(100% - 2rem); } .assistance .frame { justify-content: center; } .assistance .frame > span { display: none; }
  .masthead { min-height: auto; flex-direction: column; align-items: flex-start; gap: .2rem; padding-block: .5rem .8rem; }
  .logo { width: 150px; height: 66px; } .masthead nav { gap: .65rem 1.1rem; } .masthead .outline { min-height: 38px; padding: .4rem .6rem; }
  .hero-grid, .contents-grid, .dialog-shell { grid-template-columns: 1fr; gap: 1rem; }
  .hero-grid { padding-block: 1.6rem; } .hero-copy { padding-block: .6rem; } .featured img { height: 215px; }
  .filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .6rem; } .filters label:first-child { grid-column: 1/-1; }
  .catalog-grid { gap: .65rem; } .card-copy { padding: .55rem; } .card-photo { padding: .25rem; }
  .contents-grid { padding-block: 2.4rem; }
  .detail-image { border-right: 0; border-bottom: 1px solid var(--line); } .detail-image img { max-height: 220px; }
  .detail-body { padding: 0 1rem 1rem; } footer .frame { flex-direction: column; gap: .4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
