:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --ink: #29291f;
  --muted: #746e61;
  --line: #dcd4c3;
  --red: #8e3b36;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial,Helvetica,sans-serif;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
  color: inherit;
}
header,main,footer {
  width: min(1120px,calc(100% - 48px));
  margin: auto;
}
.cardtop {
  font: 11px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
h1 {
  font-family: Georgia,serif;
  font-size: clamp(46px,6.4vw,88px);
  letter-spacing: -.075em;
  line-height: 1;
  font-weight: 400;
  margin: 0;
  padding-top: clamp(24px,4vw,48px);
}
h1 em {
  color: var(--red);
  font-weight: 400;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  gap: 10px;
}
.toolbar p {
  margin: 0;
  color: var(--muted);
  font: 16px/1.4 Georgia,serif;
}
.toolbar button {
  flex: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 100px;
  padding: 8px 13px;
  font-size: 12px;
}
.toolbar button:hover,.share:hover {
  background: #eae1cf;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 36px 24px;
}
article {
  scroll-margin-top: 20px;
  min-width: 0;
  border-top: 3px solid var(--bean);
  padding: 10px 0 15px;
}
article:target {
  outline: 2px solid var(--red);
  outline-offset: 8px;
}
.cardtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-bottom: 10px;
}
.share {
  min-height: 28px;
  border: 0;
  background: transparent;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0;
}
.pair {
  container-type: inline-size;
}
.pair,.labels {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
  position: relative;
}
figure {
  margin: 0;
  min-width: 0;
}
.photo {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: color-mix(in srgb,var(--bean) 35%,#f4eedf);
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bean-photo {
  background: #fff;
}
.toolbar .arrow {
  color: inherit;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-content: center;
  text-align: center;
  font-size: 12px;
}
.missing .fallback {
  display: grid;
}
.missing img {
  display: none;
}
.as {
  position: absolute;
  left: 50%;
  top: calc((100cqw - 5px)/4);
  transform: translate(-50%,-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: italic 17px Georgia,serif;
  pointer-events: none;
}
.labels {
  margin-top: 12px;
  gap: 12px;
}
.labels h2 {
  font: 400 clamp(19px,2.6vw,31px)/1.05 Georgia,serif;
  letter-spacing: -.035em;
  margin: 0;
}
.labels p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}
footer {
  margin-top: 24px;
  padding: 24px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
footer strong {
  color: var(--ink);
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%,20px);
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 13px;
  opacity: 0;
  transition: .2s;
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}
@media (max-width:650px) {
  .share,.toolbar button {
    min-height: 44px;
  }
  header,main,footer {
    width: calc(100% - 30px);
  }
  .gallery {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .labels h2 {
    font-size: 25px;
  }
  .as {
    width: 30px;
    height: 30px;
  }
}
@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none!important;
  }
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.credits {
  margin-top: 0.6rem;
}
.credits summary {
  cursor: pointer;
}
.credits p, .credits ul {
  margin: 0.5rem 0;
}
.credits ul {
  padding-left: 1.25rem;
}

.priced-specimen {
  position: relative;
}
button.bean-photo {
  width: 100%;
  padding: 0;
  border: 0;
}
.price-quote {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 5px 8px;
  border: 1px solid var(--red);
  background: var(--paper);
  color: var(--red);
  font: 12px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  pointer-events: none;
}
.price-quote strong {
  font: bold 19px/1.1 Georgia, serif;
}
.labels p a {
  text-underline-offset: 2px;
}
