/* The template shop: the site's own look (site.css), with product cards, a gallery, a comparison and an FAQ.
   Long reading text sits on the navy sheet, like Capabilities on the home page. */
.top nav a[aria-current="page"] { color: var(--sky); }
.sheet { position: relative; padding-top: 10vh; padding-bottom: 10vh; }
.sheet::before { content: ''; position: absolute; inset: 0; z-index: 0; background: #172150; mix-blend-mode: multiply; pointer-events: none; }
.sheet > * { position: relative; z-index: 1; }

.shop-hero { min-height: 74vh; min-height: 74svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 140px var(--gutter) 8vh; }
.shop-hero h1 { font-size: clamp(46px, 7.6vw, 132px); line-height: .94; letter-spacing: -.025em; max-width: 16ch; margin-top: 22px; text-wrap: balance; text-shadow: 0 2px 40px rgba(7, 10, 20, .6); }
.shop-hero h1 em { color: var(--sky); }
.shop-hero .lead { max-width: 62ch; margin-top: 26px; font-size: 18px; line-height: 1.95; }
.crumbs { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--sky); }

/* product cards on the shop page */
.products { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 40px; margin-top: 36px; }
.product { background: rgba(0, 0, 0, .72); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.product__shot { display: block; aspect-ratio: 16 / 9; background: #000; }
.product__shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.product__shot:hover img { transform: scale(1.02); }
.product__body { padding: 26px 28px 30px; }
.product h2 { font: 400 clamp(36px, 3.6vw, 54px)/1 var(--serif); letter-spacing: -.01em; }
.product h2 a { text-decoration: none; }
.product h2 a:hover { color: var(--sky); }
.product p { margin-top: 14px; line-height: 1.85; color: var(--paper); }
.product .tags { margin-top: 14px; }

/* the buy box: one row per edition */
.buy { display: grid; gap: 12px; margin-top: 24px; }
.edition { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 3px; background: rgba(0, 0, 0, .55); }
.edition__name { font: 600 17px/1.3 var(--sans); }
.edition__note { grid-column: 1; font: 400 13px/1.6 var(--sans); color: var(--soft); }
.edition .btn { grid-row: 1 / span 2; grid-column: 2; }
.edition .soon { grid-row: 1 / span 2; grid-column: 2; max-width: 150px; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 3px; font: 400 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--soft); }
.price { font: 400 12px/1 var(--mono); letter-spacing: .08em; color: var(--sky); margin-left: 8px; }
.alt-links { margin-top: 16px; font: 400 12px/1.9 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.alt-links a { color: var(--sky); text-decoration: none; margin-right: 18px; }
.alt-links a:hover { text-decoration: underline; }

/* wide screens: image beside the text, so one template fills the row */
@media (min-width: 1100px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(380px, .8fr); }
  .product__shot { aspect-ratio: auto; height: 100%; min-height: 100%; }
  .product__body { padding: 34px 38px 36px; align-self: center; }
}

/* product page */
.pp { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pp__shot { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.pp__shot img { display: block; width: 100%; height: auto; }
.pp__buy { background: rgba(0, 0, 0, .78); border: 1px solid var(--line); border-radius: 4px; padding: 26px; }
.pp__buy h2 { font: 400 30px/1.1 var(--serif); }
.pp__buy .small { margin-top: 14px; font: 400 13px/1.7 var(--sans); color: var(--soft); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.gallery figure { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #000; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { padding: 12px 16px; font: 400 12px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); background: #000; }
h2.section { font: 400 clamp(34px, 4vw, 64px)/1 var(--serif); letter-spacing: -.015em; margin-top: 22px; }
.feats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); margin-top: 30px; }
.feats li { border-top: 1px solid var(--line); padding: 20px 0 30px; }
.feats h3 { font-size: 19px; }
.feats p { margin-top: 10px; line-height: 1.85; }
.compare { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 15.5px; }
.compare th, .compare td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.compare thead th { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.compare tbody th { font-weight: 600; width: 28%; }
.faq { margin-top: 26px; max-width: 80ch; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font: 600 18px/1.4 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; display: inline-block; width: 1.4em; color: var(--sky); font-family: var(--mono); }
.faq details[open] summary::before { content: '–'; }
.faq details p { padding: 0 0 20px 1.4em; line-height: 1.9; max-width: 70ch; }
.faq a, .prose a { color: var(--sky); }
.prose { max-width: 70ch; margin-top: 22px; line-height: 1.95; }
.prose p + p { margin-top: 14px; }
.foot { padding: 10vh var(--gutter) 6vh; color: var(--soft); font: 400 13px/1.9 var(--mono); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot a { color: var(--soft); }

@media (max-width: 1000px) {
  .pp { grid-template-columns: minmax(0, 1fr); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .gallery, .feats { grid-template-columns: minmax(0, 1fr); }
  .edition { grid-template-columns: minmax(0, 1fr); }
  .edition .btn { grid-row: auto; grid-column: 1; justify-content: center; }
  .edition .soon { grid-row: auto; grid-column: 1; max-width: none; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 12px 6px; }
}
