:root {
  color-scheme: light;
  --ink: #202720;
  --muted: #596354;
  --line: #cdd3c9;
  --green: #365b44;
  font: 100%/1.5 "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8faf5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #347254; outline-offset: 4px; }
.mast, main { width: min(90%, 74rem); margin-inline: auto; }
.mast { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; border-bottom: 1px solid var(--line); }
.mast a { text-decoration: none; }
.brand { display: flex; gap: .65rem; align-items: center; font-size: 1.25rem; font-weight: 750; letter-spacing: -.055em; }
.mark { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--green); color: white; border-radius: 50%; font: italic bold 1.65rem Georgia, serif; }
nav { display: flex; gap: 1.75rem; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: clamp(3rem, 6vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.eyebrow, .category { margin: 0; color: var(--green); text-transform: uppercase; letter-spacing: .11em; font-size: .78rem; font-weight: 750; }
h1, h2, p { margin: 0; }
h1 { margin-top: .6rem; font: 500 clamp(4rem, 8vw, 7.5rem)/1 Georgia, serif; letter-spacing: -.07em; }
h1 em { color: var(--green); }
.lede { max-width: 18rem; color: var(--muted); font-size: 1.15rem; }
#shop { padding-block: 2rem 3rem; }
.shop-heading, .title-line { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
h2 { font: 500 2rem/1.2 Georgia, serif; letter-spacing: -.04em; }
#count, .condition, small { color: var(--muted); font-size: .9rem; }
#filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.5rem; }
#filters button { background: transparent; border: 1px solid var(--line); border-radius: 2rem; padding: .45rem 1rem; }
#filters button[aria-pressed="true"] { background: var(--green); color: white; border-color: var(--green); }
#grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.5rem; }
.item { width: 100%; max-width: 32rem; display: block; padding: 0; background: transparent; border: 0; text-align: left; }
.item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #e4e9de; border-radius: .6rem; }
.item:hover strong { text-decoration: underline; }
.item-copy { display: grid; gap: .25rem; padding-block: 1rem; }
.title-line { font-size: 1.15rem; }
.price { font-weight: 650; }
#about { border-top: 1px solid var(--line); padding-block: 2rem 4rem; }
#about p { max-width: 40rem; margin-top: .75rem; color: var(--muted); }
dialog { width: min(92vw, 32rem); max-height: 90vh; border: none; padding: 0; border-radius: .75rem; background: #f8faf5; color: var(--ink); }
dialog::backdrop { background: rgb(15 25 19 / .65); }
#close { position: absolute; right: .75rem; top: .75rem; background: white; border: 0; border-radius: 50%; width: 2.5rem; height: 2.5rem; font-size: 1.5rem; }
#detail-image { width: 100%; height: min(36vh, 18rem); object-fit: cover; display: block; }
.detail-copy { padding: 1.5rem; display: grid; gap: .65rem; }
#detail-price { font-size: 1.25rem; font-weight: 650; }
@media (max-width: 40rem) {
  .intro { display: block; }
  .lede { margin-top: 1.25rem; }
  .mast { min-height: 4.5rem; }
  nav { gap: 1rem; }
}
