/* Seller storefront, 2026 design pass.
   Tokens come from anou-tokens.css (loaded by base.html); this file only adds
   the page's own layout. One responsive set of controls — no desktop/mobile
   duplicate DOM, which is what broke the 2021 page. */

.st-page {
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink-body);
}
.st-page *, .st-page *::before, .st-page *::after { box-sizing: border-box; }
.st-page [hidden] { display: none; }

.st-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- shared text ---------- */
.st-eyebrow {
  margin: 0 0 var(--s-1); color: var(--anou-blue);
  font-family: var(--font-ui); font-size: var(--text-label);
  letter-spacing: 2px; text-transform: uppercase; line-height: 1.4;
}
.st-h2, .st-h3 {
  font-family: var(--font-display); font-weight: 900; color: var(--ink); margin: 0;
}
.st-h2 { font-size: var(--text-h2); line-height: 1.2; }
.st-h3 { font-size: var(--text-h3); line-height: 1.25; }
.st-prose { margin: 0 0 14px; font-size: var(--text-body); line-height: 1.7; color: var(--ink-body); overflow-wrap: anywhere; }
.st-prose:last-child { margin-bottom: 0; }
.st-fine { margin: 0; font-size: var(--text-cap); line-height: 1.5; color: var(--ink-faint); }
.st-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: var(--text-sm);
  color: var(--anou-blue); text-decoration: none;
}
.st-link:hover { color: var(--anou-blue-dark); }
.st-toggle {
  display: inline-block; margin: 14px 0 0; background: none; border: 0; padding: 0;
  cursor: pointer; font-family: var(--font-body); font-size: var(--text-sm); color: var(--anou-blue);
}
.st-toggle:hover { color: var(--anou-blue-dark); }
.st-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border: 0; cursor: pointer;
  background: var(--anou-blue); color: #fff; text-decoration: none;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
}
.st-button:hover { background: var(--anou-blue-dark); color: #fff; }
.st-input {
  width: 100%; height: 46px; padding: 0 12px; background: #fff;
  border: 1px solid var(--anou-blue-border); border-radius: 0; outline: 0;
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
}
.st-input:focus { border-color: var(--anou-blue); }

/* ---------- hero ---------- */
.st-hero { position: relative; max-height: 340px; overflow: hidden; background: var(--anou-blue-6); }
.st-hero-image { display: block; width: 100%; height: 340px; object-fit: cover; }
.st-hero-scrim {
  position: absolute; inset: 0; padding: 0 24px; text-align: center; color: #fff;
  background: linear-gradient(rgba(20,30,50,.2), rgba(20,30,50,.55));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-2);
}
/* no photo: the scrim still needs a body to sit on */
.st-hero-empty .st-hero-scrim {
  position: static; min-height: 260px;
  background: linear-gradient(160deg, var(--anou-blue-2), var(--anou-blue));
}
.st-hero-eyebrow {
  margin: 0; font-family: var(--font-ui); font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; color: #fff; opacity: .9;
}
.st-hero-title {
  margin: 0; font-family: var(--font-display); font-weight: 900;
  font-size: 46px; line-height: 1.1; color: #fff; overflow-wrap: anywhere;
}
.st-hero-sub { margin: 0; font-size: var(--text-body); color: #fff; opacity: .9; }

/* ---------- story ---------- */
.st-story {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: start;
  max-width: var(--page-max); margin: 0 auto; padding: 56px var(--page-pad);
}
.st-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, max-content));
  justify-content: start; gap: 36px; margin: 32px 0 10px; padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}
.st-stat { margin: 0; }
.st-stat-value { display: block; font-family: var(--font-display); font-weight: 900; font-size: var(--text-h2); line-height: 1.1; color: var(--ink); }
.st-stat-accent { color: var(--anou-blue); }
.st-stat-label {
  display: block; margin-top: 4px; font-family: var(--font-ui); font-size: var(--text-label);
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-faint);
}
/* the one offset photo on the page — padding keeps the shadow from clipping */
.st-story-figure { margin: 0; padding: 12px 0 0 12px; }
.st-story-image {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  box-shadow: var(--anou-blue) -12px -12px;
}
.st-story-figure figcaption { margin-top: var(--s-2); }

/* ---------- makers + visit band ---------- */
.st-band { background: var(--anou-blue-panel); }
.st-band-inner {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: start;
  max-width: var(--page-max); margin: 0 auto; padding: 44px var(--page-pad);
}
.st-band-single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.st-makers {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 18px 10px;
  list-style: none; margin: var(--s-4) 0 0; padding: 0;
}
.st-maker { display: flex; }
.st-maker-button {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  width: 100%; padding: 0; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: center;
}
.st-maker-button:hover .st-maker-face { box-shadow: 0 0 0 2px var(--anou-blue); }
.st-maker-button:hover .st-maker-name { color: var(--anou-blue); }
.st-maker-button:focus-visible { outline: 2px solid var(--anou-blue); outline-offset: 4px; }
.st-maker-face {
  display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(46,51,61,.12); background: var(--anou-blue-6);
}
.st-maker-initial {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: var(--text-h3); color: var(--anou-blue);
}
.st-maker-name { font-size: var(--text-cap); line-height: 1.3; color: var(--ink-body); text-transform: capitalize; overflow-wrap: anywhere; }

/* one maker's story, in place of the grid */
.st-maker-detail { margin-top: var(--s-2); }
.st-maker-back { display: inline-block; margin-bottom: var(--s-4); }
.st-maker-detail-body { display: flex; gap: var(--s-5); align-items: flex-start; }
.st-maker-portrait {
  display: block; width: 128px; height: 128px; flex-shrink: 0; border-radius: 50%;
  object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(46,51,61,.14);
  background: var(--anou-blue-6); font-size: 44px;
}
.st-maker-detail-text { min-width: 0; }
.st-maker-detail-name { margin-bottom: var(--s-2); text-transform: capitalize; }
.st-maker-detail-text p {
  margin: 0 0 12px; font-size: var(--text-body); line-height: 1.7; color: var(--ink-body);
  overflow-wrap: anywhere;
}
.st-maker-detail-text p:last-child { margin-bottom: 0; }

.st-card-panel {
  background: #fff; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(46,51,61,.05); padding: 26px;
}
.st-panel-body { margin: 10px 0 var(--s-3); font-size: 14px; line-height: 1.7; color: var(--ink-body); }
.st-map { display: block; width: 100%; height: auto; border: 1px solid var(--border); }
.st-map-caption { margin: var(--s-1) 0 var(--s-3); }
.st-panel-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.st-panel-foot { margin: var(--s-3) 0 0; }
.st-waitlist { display: flex; gap: var(--s-1); }
.st-waitlist .st-input { flex: 1; min-width: 0; }
.st-waitlist .st-button { height: 46px; padding: 0 20px; flex-shrink: 0; }
#st-waitlist-status { margin-top: var(--s-1); }
#st-waitlist-status.st-waitlist-error { color: var(--error); }
#st-waitlist-status.st-waitlist-done { color: var(--success); }

/* ---------- sections ---------- */
.st-section { max-width: var(--page-max); margin: 0 auto; padding: 56px var(--page-pad) 0; }
.st-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
/* minmax(0, 1fr), never bare 1fr: a bare fr track's minimum is min-content, so
   one wide item silently steals width from its whole column. The "N more
   pieces" tile did exactly that in Safari — aspect-ratio: 1/1 gives it a
   min-content WIDTH transferred from its content height, and as item 25 it
   always lands in column 1, which came out ~2x the other two. */
.st-picked { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin-top: 22px; }

/* ---------- shop ---------- */
.st-shop {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s-7); align-items: start;
  max-width: var(--page-max); margin: 0 auto; padding: 56px var(--page-pad) var(--s-8);
}
.st-rail { display: flex; flex-direction: column; }
.st-rail .st-h3 { font-size: 18px; margin-bottom: 14px; }
.st-rail-section { border-top: 1px solid var(--border); }
.st-rail-head {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 14px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-ui); font-size: var(--text-label); letter-spacing: 2px;
  text-transform: uppercase; color: var(--ink);
}
.st-rail-arrow { color: var(--ink-faint); font-size: var(--text-label); }
.st-rail-body { display: flex; flex-direction: column; gap: var(--s-1); padding-bottom: 14px; }
.st-choice { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.st-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.st-choice-mark {
  width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--anou-blue-border);
  background: #fff; flex-shrink: 0; position: relative;
}
.st-radio:checked + .st-choice-mark { border-color: var(--anou-blue); background: var(--anou-blue); }
.st-radio:checked + .st-choice-mark::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: #fff;
}
.st-radio:focus-visible + .st-choice-mark,
.st-radio:focus-visible + .st-unit-label { outline: 2px solid var(--anou-blue); outline-offset: 2px; }
.st-choice-label { font-size: var(--text-sm); color: var(--ink-body); }

.st-units { display: flex; gap: var(--s-1); }
.st-unit { cursor: pointer; }
.st-unit-label {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--anou-blue-border);
  background: #fff; color: var(--ink-body);
  font-family: var(--font-ui); font-size: var(--text-label); letter-spacing: 1px;
}
.st-radio:checked + .st-unit-label { background: var(--anou-blue); border-color: var(--anou-blue); color: #fff; }
.st-size-row { display: flex; gap: var(--s-1); align-items: center; }
.st-size-row .st-input { width: 0; flex: 1; height: 38px; font-size: var(--text-sm); }
.st-size-x { color: var(--ink-faint); font-size: var(--text-cap); }
.st-size-unit { color: var(--ink-muted); font-size: var(--text-cap); }
.st-rail-foot { border-top: 1px solid var(--border); padding-top: var(--s-3); }
.st-crosssell { margin-top: var(--s-5); background: var(--anou-blue-panel); padding: 18px; }
.st-crosssell .st-panel-body { margin: 0 0 10px; font-size: var(--text-sm); }

.st-results-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--s-3); flex-wrap: wrap; margin-bottom: 18px;
}
.st-count { margin: 0; font-size: var(--text-sm); color: var(--ink-muted); }
.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }

/* ---------- cards ---------- */
.st-card { position: relative; min-width: 0; }
.st-card-link { display: block; text-decoration: none; color: inherit; }
.st-card-photo { background: var(--anou-blue-6); aspect-ratio: 1 / 1; }
.st-card-wide .st-card-photo { aspect-ratio: 4 / 3; }
.st-card-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-card-name {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  margin: 10px 0 0; font-family: var(--font-ui); font-size: 14px; color: var(--ink); line-height: 1.35;
}
.st-card-price { white-space: nowrap; }
.st-card-stock { margin: 3px 0 0; font-size: var(--text-cap); }
.st-in-stock { color: var(--success); }
.st-made-to-order { color: var(--ink-faint); }
.st-card-makers { margin: 3px 0 0; font-size: var(--text-sm); color: var(--ink-muted); }
.st-card-maker-names { color: var(--anou-blue); }
.st-card-partner { margin: 3px 0 0; font-size: var(--text-cap); color: var(--anou-blue); }
.st-card-dims { margin: 2px 0 0; font-size: var(--text-cap); color: var(--ink-faint); }
.st-heart {
  position: absolute; top: 12px; right: 12px; background: none; border: 0; padding: 0;
  cursor: pointer; font-size: 17px; line-height: 1; color: #fff;
  text-shadow: 0 1px 4px rgba(46,51,61,.45);
}
.st-heart[aria-pressed="true"] { color: var(--anou-blue); text-shadow: 0 1px 4px rgba(255,255,255,.65); }
.st-heart:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* "1,018 more pieces" tile — a real link to page 2, not decoration */
.st-more {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-1); aspect-ratio: 1 / 1; padding: var(--s-4); text-align: center;
  background: var(--anou-blue-panel); text-decoration: none;
  min-width: 0;  /* belt and braces with minmax(0,1fr) above — see that note */
}
.st-more-count { font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--ink); }
.st-more-text { font-size: var(--text-sm); line-height: 1.5; color: var(--ink-body); }
.st-more-cta { margin-top: 6px; font-family: var(--font-ui); font-size: var(--text-cap); letter-spacing: 1.5px; text-transform: uppercase; color: var(--anou-blue); }

/* ---------- states + pager ---------- */
.st-state { grid-column: 1 / -1; border: 1px solid var(--border); padding: var(--s-7); text-align: center; }
.st-state-title { margin: 0 0 6px; font-family: var(--font-display); font-weight: 900; font-size: 18px; color: var(--ink); }
.st-state-message { margin: 0 0 14px; font-size: var(--text-sm); color: var(--ink-muted); }
.st-grid[aria-busy="true"] { opacity: .45; }
.st-pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.st-page-link {
  background: none; border: 0; cursor: pointer; padding: 9px 14px;
  font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-body);
}
.st-page-link:hover { color: var(--anou-blue); }
.st-page-current {
  background: var(--anou-blue); color: #fff; font-family: var(--font-ui);
}
.st-page-gap { padding: 9px 6px; color: var(--ink-faint); font-size: var(--text-sm); }
.st-page-link[disabled] { color: var(--ink-faint); cursor: default; }
.st-partner { padding-bottom: var(--s-6); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .st-hero-title { font-size: 30px; }
  .st-hero-image, .st-hero { max-height: 260px; }
  .st-hero-image { height: 260px; }
  .st-story, .st-band-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .st-band-single { grid-template-columns: minmax(0, 1fr); }
  .st-story-figure { padding: 12px 0 0 12px; }
  .st-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .st-shop { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .st-grid, .st-picked { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-section { padding-top: var(--s-6); }
  .st-shop { padding-top: var(--s-6); }
}
@media (max-width: 640px) {
  .st-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-grid, .st-picked { grid-template-columns: minmax(0, 1fr); }
  .st-waitlist { flex-direction: column; }
  .st-waitlist .st-button { width: 100%; }
  .st-maker-detail-body { flex-direction: column; align-items: center; text-align: center; }
}
