@font-face {
  font-family: "Baskervville";
  src: url("/mercantile/baskervville.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --evergreen: #1a2922;
  --evergreen-deep: #121d18;
  --forest-ink: #1d3026;
  --parchment: #eee6d5;
  --ivory: #f5ecda;
  --brass: #dac18d;
  --rule: #b9aa88;
  --display: "Baskervville", Georgia, serif;
  --body: Georgia, "Times New Roman", serif;
  --label: ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--evergreen-deep); color: var(--ivory); font: 1.125rem/1.55 var(--body); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, button:focus-visible { outline: .16rem solid #b26d40; outline-offset: .26rem; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.06; }
.shop-frame { width: min(calc(100% - 3rem), 78rem); margin-inline: auto; }
.skip { position: absolute; top: -6rem; z-index: 5; background: var(--parchment); color: var(--forest-ink); padding: .65rem 1rem; }
.skip:focus { top: .4rem; left: .4rem; }

.shop-header { border-bottom: 1px solid #665f45; background: var(--evergreen-deep); }
.shop-header-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 4.75rem; padding-block: .65rem; }
.shop-brand { display: inline-flex; align-items: center; gap: .8rem; font: clamp(1.1rem, 2.45vw, 1.55rem)/1.12 var(--display); text-decoration: none; }
.shop-monogram { width: 2.1rem; height: 2.1rem; display: inline-grid; place-items: center; flex: 0 0 auto; border: 3px double #a28b58; color: var(--brass); font-size: 1.3rem; }
.shop-header nav a { display: inline-flex; align-items: center; min-height: 2.75rem; padding-inline: .2rem; color: var(--brass); font: 650 .73rem/1.15 var(--label); letter-spacing: .13em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.shop-header nav a:hover { text-decoration: underline; }

.shop-hero {
  background:
    radial-gradient(ellipse at 18% 50%, #2d3d30 0%, transparent 72%),
    repeating-linear-gradient(90deg, transparent 0 22px, #0d191550 22px 23px),
    var(--evergreen);
}
.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5.15rem);
  align-items: center;
  padding-block: clamp(2.25rem, 5.4vw, 5rem);
}
.hero-content h1 { font-size: clamp(4rem, 7.35vw, 7.1rem); letter-spacing: -.052em; color: var(--ivory); line-height: .99; overflow-wrap: break-word; }
.hero-content h1 span { display: block; margin-bottom: .6rem; font-size: .59em; letter-spacing: -.018em; }
.hero-content h1::after { content: ""; display: block; height: 5px; width: 5rem; margin-top: 1.45rem; border-block: 1px solid #a38d5e; }
.hero-content p { max-width: 30ch; margin: 1.35rem 0 1.7rem; color: #e7dcc4; font-size: clamp(1.15rem, 1.75vw, 1.36rem); line-height: 1.48; text-wrap: pretty; }
.hero-photo { position: relative; min-width: 0; padding: .5rem; border: 1px solid #a18d60; background: #14211b; box-shadow: 0 1rem 2.5rem #0c130e55; }
.hero-photo::after { content: ""; inset: .5rem; position: absolute; border: 1px solid #e4c88d4d; pointer-events: none; }
.hero-image { display: block; width: 100%; height: auto; aspect-ratio: 1.19; object-fit: cover; object-position: 60% 50%; }

.shop-button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 3rem; padding: .75rem 1.13rem; border: 1px solid var(--brass); background: var(--brass); color: #231d13; font: 700 .77rem/1.35 var(--label); letter-spacing: .09em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.shop-button:hover { background: #edcf97; border-color: #edcf97; }
.shop-button span { font-size: 1rem; line-height: 1; }

.shop-shelves, .shop-paper { background: var(--parchment); color: var(--forest-ink); }
.shop-shelves { border-top: 4px double #9a8354; padding-block: clamp(2.45rem, 5.6vw, 4.5rem); }
.shop-shelves h2 { font-size: clamp(2.45rem, 4.7vw, 4rem); letter-spacing: -.045em; }
.shop-empty { margin: 1rem 0 0; padding-top: 1.15rem; border-top: 1px solid var(--rule); color: #5b5040; }
.shop-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); gap: 1.2rem; padding: 0; margin: 1.4rem 0 0; }
.shop-card { display: block; height: 100%; padding: .45rem; border: 1px solid var(--rule); background: #f8f0df; text-decoration: none; }
.shop-card:hover { border-color: #596245; }
.shop-card:hover h3 { text-decoration: underline; }
.shop-card-photo { aspect-ratio: 4 / 3; background: #ded3bc; }
.shop-card-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-card-copy { padding: .85rem .65rem; }
.shop-card-copy h3 { font-size: 1.55rem; overflow-wrap: anywhere; }
.shop-card-copy p { display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap; margin: .5rem 0 0; }
.shop-card-copy p span, .shop-condition { color: #5b5040; }
.shop-card-copy strong, .shop-price { color: #5a322b; }

.shop-product, .shop-checkout-message { padding-block: clamp(1.8rem, 5vw, 4rem) clamp(3rem, 8vw, 6rem); }
.shop-back { display: inline-block; margin-bottom: 1.5rem; color: #3d5142; }
.shop-product-grid { display: grid; gap: clamp(1.4rem, 4vw, 3.5rem); align-items: start; }
.shop-product-photo { background: #ded3bc; border: 1px solid var(--rule); }
.shop-product-photo img { display: block; width: 100%; max-height: 37rem; object-fit: contain; }
.shop-product h1, .shop-checkout-message h1 { font-size: clamp(2.55rem, 5.5vw, 4.65rem); letter-spacing: -.053em; overflow-wrap: anywhere; }
.shop-price { font: clamp(1.45rem, 2.75vw, 2rem)/1.25 var(--display); margin: 1rem 0 .45rem; }
.shop-condition { margin-top: 0; }
.shop-description { white-space: pre-wrap; }
.shop-paper .shop-button { background: #294034; border-color: #294034; color: #fff0d4; }
.shop-paper .shop-button:hover { background: #1a2b23; border-color: #1a2b23; }
.shop-footer { padding: 1.35rem 0 1.65rem; color: #d8c7a9; font-size: .98rem; border-top: 1px solid #665f45; }

@media (min-width: 47rem) {
  .shop-product-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

@media (max-width: 48rem) {
  .shop-frame { width: min(calc(100% - 2rem), 35rem); }
  .shop-header-inner { min-height: 4rem; }
  .shop-monogram { width: 1.75rem; height: 1.75rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 1.65rem; padding-block: 1.25rem 2.3rem; }
  .hero-photo { grid-row: 1; padding: .34rem; }
  .hero-photo::after { inset: .34rem; }
  .hero-image { aspect-ratio: 1.55; }
  .hero-content h1 { font-size: clamp(3.55rem, 12.2vw, 6rem); }
  .hero-content h1::after { margin-top: 1rem; }
  .hero-content h1 span { margin-bottom: .43rem; }
  .hero-content p { margin: 1.05rem 0 1.2rem; }
}

@media (max-width: 23rem) {
  .shop-brand { gap: .45rem; }
  .shop-header nav a { font-size: .62rem; letter-spacing: .07em; }
  .hero-content h1 { font-size: clamp(3rem, 14vw, 3.55rem); }
}
