:root {
  --ink: #25251f;
  --paper: #f7f6f1;
  --muted: #5f6058;
  --line: #c9c9bd;
  --wine: #783c2f;
  --serif: "Baskervville",Baskerville,"Iowan Old Style",Georgia,serif;
  --sans: "DM Sans","Helvetica Neue",Arial,sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
}

button,input,select {
  font: inherit;
  color: inherit;
}

button,a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a {
  color: var(--wine);
  text-underline-offset: 3px;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #8d4d36;
  outline-offset: 3px;
}

.mast,main,footer {
  max-width: 1560px;
  margin: auto;
  padding-left: clamp(18px,4.8vw,78px);
  padding-right: clamp(18px,4.8vw,78px);
}

.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  min-height: 70px;
}

.signature {
  color: var(--ink);
  font: 25px var(--serif);
  text-decoration: none;
  white-space: nowrap;
}

.signature span {
  color: #9e9b8c;
  padding: 0 2px;
}

.mast nav {
  display: flex;
  align-items: stretch;
  gap: 24px;
}

.mast nav button,.subnav button {
  background: transparent;
  border: 0;
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}

.mast nav button[aria-current=true],.subnav button[aria-pressed=true] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 8px;
  text-decoration-color: var(--wine);
  text-decoration-thickness: 2px;
}

#intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 7%;
  align-items: center;
  padding: 35px 0 34px;
  border-bottom: 1px solid var(--ink);
}

.eyebrow,.card-label {
  font: 600 10px/1.4 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--wine);
  margin: 0 0 13px;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1 {
  font: normal clamp(42px,5.9vw,85px)/.95 var(--serif);
  letter-spacing: -.053em;
}

h1 em {
  font-weight: 400;
}

#intro-text {
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 19px 0 3px;
}

#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  align-items: end;
}

#hero button {
  padding: 0;
  border: 0;
  background: transparent;
  min-width: 0;
  text-align: left;
}

#hero .picture {
  height: clamp(95px,13vw,185px);
  width: 100%;
  background: #edece6;
  display: grid;
  place-items: center;
}

#hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  min-height: 0;
  mix-blend-mode: multiply;
}

#hero small {
  display: block;
  margin-top: 7px;
  font-size: 10px;
  color: var(--muted);
}

.workspace {
  padding-top: 26px;
}

.workspace-top,.data-links,#results-info,footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-top .eyebrow {
  margin-bottom: 2px;
}

.workspace h2 {
  font: normal clamp(31px,3.5vw,49px)/1.08 var(--serif);
  letter-spacing: -.035em;
}

.data-links {
  font-size: 12px;
  white-space: nowrap;
}

.data-links a {
  text-decoration: none;
}

.data-links a:hover {
  text-decoration: underline;
}

#explain {
  font-size: 14px;
  color: var(--muted);
  max-width: 900px;
  margin: 12px 0 19px;
}

#controls {
  display: flex;
  gap: 9px;
  align-items: end;
  flex-wrap: wrap;
}

#controls label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 132px;
}

#controls label.search {
  flex: 1 1 205px;
}

#controls label>span {
  font-size: 11px;
  color: var(--muted);
}

input,select,#clear {
  background: #fbfaf6;
  border: 1px solid var(--line);
  border-radius: 2px;
  height: 39px;
  padding: 0 10px;
  max-width: 100%;
}

#clear {
  background: transparent;
  border: 0;
  font-size: 12px;
  text-decoration: underline;
}

#results-info {
  margin: 20px 0 14px;
  font-size: 12px;
  color: var(--muted);
  min-height: 19px;
}

#results {
  min-height: 160px;
}

.yearhead {
  grid-column: 1/-1;
  margin: 12px 0 5px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.yearhead strong {
  font: normal 26px var(--serif);
}

.yearhead span {
  color: var(--muted);
  font-size: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 20px 15px;
}

.item {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
}

.item .pic {
  width: 100%;
  aspect-ratio: 1.24;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #eeede7;
  border: 1px solid #e7e6de;
}

.item img {
  height: 100%;
  width: 100%;
  object-fit: contain;
  min-height: 0;
  mix-blend-mode: multiply;
  transition: transform .2s;
}

.item:hover img {
  transform: scale(1.035);
}

.item:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.item .card-label {
  font-size: 9px;
  color: var(--wine);
  letter-spacing: .09em;
  margin: 10px 0 3px;
}

.item h3 {
  font: normal clamp(18px,1.55vw,25px)/1.13 var(--serif);
  overflow-wrap: anywhere;
}

.item .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.empty-img {
  font: italic 17px var(--serif);
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

.more {
  padding: 28px;
  text-align: center;
}

#more {
  background: var(--ink);
  color: white;
  border: 0;
  padding: 10px 22px;
}

.subnav {
  display: flex;
  gap: 22px;
  margin-top: 8px;
}

#tabs:empty {
  display: none;
}

.no-results {
  padding: 25px 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 20px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 12px;
}

.large-image {
  background: #edece6;
  display: grid;
  place-items: center;
  min-height: 180px;
  max-height: 380px;
}

.large-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 370px;
  mix-blend-mode: multiply;
}

.caption {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 12px;
}

.specs {
  width: 100%;
  margin: 0;
}

.specs div {
  display: grid;
  grid-template-columns: 94px 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 5px 0;
  font-size: 13px;
}

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

.specs dd {
  margin: 0;
  overflow-wrap: anywhere;
}

[hidden] {
  display: none!important;
}

@media(min-width:1450px) {
  .grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
  }
}

@media(max-width:900px) {
  .grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .mast nav {
    gap: 12px;
  }
  .data-links {
    gap: 9px;
  }
  #hero {
    gap: 7px;
  }
}

@media(max-width:670px) {
  .mast {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 12px;
    padding-bottom: 4px;
  }
  .mast nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .mast nav button {
    font-size: 12px;
  }
  #intro {
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    padding: 23px 0;
  }
  #hero {
    display: block;
  }
  #hero button+button {
    display: none;
  }
  #hero .picture {
    height: 130px;
  }
  .eyebrow {
    font-size: 9px;
  }
  #intro-text {
    font-size: 12px;
    margin-top: 12px;
  }
  .grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px 10px;
  }
  .data-links {
    display: block;
  }
  .data-links a {
    display: block;
    text-align: right;
  }
  #controls label {
    min-width: 92px;
    max-width: 47%;
    flex: 1;
  }
  #controls label.search {
    min-width: 100%;
    max-width: none;
  }
  #controls label>span {
    font-size: 10px;
  }
  .large-image {
    max-height: 220px;
  }
  .large-image img {
    max-height: 215px;
  }
  #clear {
    padding: 0 4px;
  }
  .yearhead {
    margin-top: 5px;
  }
  .mast,main,footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .item .card-label {
    font-size: 8px;
  }
  .item h3 {
    font-size: 19px;
  }
  footer {
    font-size: 10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .item img {
    transition: none;
  }
}
