/* The home page's "built with One Shot" proof strip (shared/marketing/_showcase).
 *
 * In its OWN stylesheet, not application.css, purely so it can be stripped from a kit release: the
 * strip is shiponeshot.com's own marketing, and everything else it needs is already on
 * delivery/deny.txt. `stylesheet_link_tag :app` links every file in this directory, so this loads
 * with no layout change here, and its absence in a buyer's tree is simply one link fewer.
 *
 * It reads the tokens defined at the top of application.css, which always ships.
 */

/* A .card whose padding has moved off the wrapper onto .site__text, so the screenshot can sit
   flush to the card's edges. */
.showcase { padding-block: 48px; }
.showcase__lede { font-size: 15px; color: var(--ink-3); margin: 0 0 24px; }
.showcase__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

.site { display: flex; flex-direction: column; background: var(--bg-raised); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; transition: border-color 120ms ease; }
/* Hover is an affordance, so only the cards that go somewhere get one. Our own card
   is a plain div (see _showcase), and stays inert. */
a.site:hover { border-color: var(--gold); }
.site__shot { display: block; position: relative; aspect-ratio: 16 / 10; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* The same three tokens the flash and the callout use to mark a caveat, so a half-finished site
   reads as a note we are volunteering rather than a new colour in the palette. */
.site__wip { position: absolute; top: 8px; right: 8px; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.4; color: var(--gold); background: var(--bg-accent); border: 1px solid var(--gold-45); border-radius: var(--r-chip); padding: 3px 7px; }
.site__text { padding: 16px; }
.site__name { display: block; font-size: 15px; font-weight: 500; color: var(--ink); transition: color 120ms ease; }
a.site:hover .site__name { color: var(--gold); }
.site__domain { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 2px; }
.site__body { display: block; font-size: 13.5px; color: var(--ink-3); margin-top: 10px; }

/* Narrow, in three steps. The middle one is the one that matters: below 760px, seven cards in two
   columns is four rows and taller than the phone screen, which is no longer a band you glance at.
   So it stops being a grid and becomes a strip that scrolls sideways and bleeds to both edges of
   the container, where the cut-off card is what tells you to swipe. (The third step is the shared
   mobile block at the bottom of this file; --gutter clamps down to 20px on its own.) */
@media (max-width: 1039px) {
  .showcase__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
  .showcase__grid { display: flex; gap: 12px; overflow-x: auto; padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding-bottom: 4px; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); }
  .site { flex: 0 0 260px; scroll-snap-align: start; }
}

@media (max-width: 640px) {
  /* Matches 02-base.css's mobile block; --gutter clamps to 20px at this width on its own. */
  .showcase { padding-block: 40px; }
}
