/* ==========================================================================
   Sidewalk — bae6's trend blog. Design language = the storefront DS:
   Chivo brutalist lowercase display, Geist body, flat accent fills (mango /
   pista / lilac / sky / paper / tomato), square corners, no shadows except the
   2px 2px 0 #000 riso sticker stamp. Namespaced .sw-*; reuses .container,
   .btn, .products/.product, .editorial from storefront.css.
   ========================================================================== */

/* ---------- accent rotation (matches .cat palette) ---------- */
.sw-acc-0 { --sw-acc: var(--accent-mango); }
.sw-acc-1 { --sw-acc: var(--accent-pista); }
.sw-acc-2 { --sw-acc: var(--accent-lilac); }
.sw-acc-3 { --sw-acc: var(--accent-sky); }
.sw-acc-4 { --sw-acc: var(--accent-paper); }
.sw-acc-5 { --sw-acc: var(--accent-tomato); }

.sw-eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase; color: rgba(0,0,0,.6); display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.sw-eyebrow a { color: inherit; border-bottom: 1px solid currentColor; }
.sw-eyebrow .dot::before { content: "✦"; }

/* ---------- masthead (black editorial, DS .editorial register) ---------- */
.sw-mast { background: #000; color: #fff; padding: clamp(56px, 8vw, 110px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.sw-mast .sw-eyebrow { color: rgba(255,255,255,.7); justify-content: center; margin-bottom: 18px; }
.sw-mast h1 {
  font-family: var(--bae6-font-display); font-weight: 900; color: #fff;
  font-size: clamp(64px, 15vw, 200px); letter-spacing: -.045em; line-height: .85;
  text-transform: lowercase; margin: 0; text-align: center;
}
.sw-mast h1 em { font-style: normal; color: var(--accent-mango); }
.sw-mast p { text-align: center; max-width: 46ch; margin: 22px auto 0; color: rgba(255,255,255,.75); font-size: 15px; line-height: 1.55; }
.sw-mast .star { position: absolute; color: var(--accent-mango); font-family: var(--font-mono); font-weight: 300; font-size: 44px; opacity: .9; pointer-events: none; }
.sw-mast .s1 { top: 40px; left: 8%; transform: rotate(15deg); }
.sw-mast .s2 { bottom: 60px; right: 10%; transform: rotate(-12deg); }
.sw-mast .s3 { top: 45%; right: 5%; transform: rotate(25deg); font-size: 30px; color: var(--accent-pista); }
.sw-mast .s4 { top: 30%; left: 4%; transform: rotate(-20deg); font-size: 28px; color: var(--accent-lilac); }

/* ---------- trend strip: sticker pills, horizontal scroll ---------- */
.sw-trends { background: #000; padding: 0 0 clamp(36px, 5vw, 56px); }
.sw-trends__row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sw-trends__row::-webkit-scrollbar { display: none; }
.sw-pill {
  flex: 0 0 auto; font-family: var(--font-sticker); font-weight: 700; font-size: 20px; line-height: 1;
  background: var(--sw-acc, var(--accent-mango)); color: #000; padding: 12px 20px; border-radius: 40px;
  box-shadow: 2px 2px 0 #fff; text-decoration: none; white-space: nowrap;
  transition: transform .3s var(--ease-spring, cubic-bezier(.34,1.56,.64,1));
}
.sw-pill:hover { transform: rotate(-2deg) scale(1.05); color: #000; }
.sw-pill:nth-child(odd) { transform: rotate(-1.5deg); }
.sw-pill:nth-child(even) { transform: rotate(1.5deg); }
.sw-pill small { font-family: var(--font-mono); font-size: 11px; font-weight: 500; margin-left: 8px; opacity: .7; }
.sw-trends .sw-eyebrow { color: rgba(255,255,255,.6); margin-bottom: 14px; }

/* ---------- sections ---------- */
.sw-section { padding: clamp(48px, 7vw, 96px) 0; }
.sw-section--paper { background: var(--accent-paper); }
.sw-section .section-head { margin-bottom: clamp(24px, 4vw, 40px); }

/* ---------- feature (latest story): 2-col poster + text ---------- */
.sw-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .sw-feature { grid-template-columns: 1fr; } }
.sw-feature__img { display: block; aspect-ratio: 1/1; background: var(--sw-acc); overflow: hidden; }
.sw-feature__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.sw-feature:hover .sw-feature__img img { transform: scale(1.03); }
.sw-feature h2 {
  font-family: var(--bae6-font-display); font-weight: 800; font-size: clamp(32px, 4.6vw, 60px);
  letter-spacing: -.03em; line-height: .95; text-transform: lowercase; margin: 16px 0 18px;
}
.sw-feature h2 a { color: #000; }
.sw-feature h2 a:hover { color: var(--bae6-primary); }
.sw-feature p { font-size: 16px; line-height: 1.55; color: rgba(0,0,0,.72); max-width: 48ch; margin: 0 0 24px; }

/* ---------- card grid ---------- */
.sw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.5vw, 28px); }
@media (max-width: 1024px) { .sw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .sw-grid { grid-template-columns: 1fr; } }

.sw-card { display: block; text-decoration: none; color: #000; }
.sw-card__img { position: relative; aspect-ratio: 1/1; background: var(--sw-acc, var(--accent-paper)); overflow: hidden; }
.sw-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.sw-card:hover .sw-card__img img { transform: scale(1.04); }
.sw-card__flag { position: absolute; top: 12px; left: 12px; background: #000; color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; line-height: 1; z-index: 2; }
.sw-card .sw-eyebrow { margin: 14px 0 8px; }
.sw-card h3 { font-family: var(--bae6-font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; line-height: 1.05; text-transform: lowercase; margin: 0 0 8px; }
.sw-card:hover h3 { color: var(--bae6-primary); }
.sw-card p { font-size: 14px; line-height: 1.5; color: rgba(0,0,0,.65); margin: 0; }

/* ---------- single post ---------- */
.sw-hero { background: var(--sw-acc, var(--accent-mango)); padding: clamp(40px, 6vw, 80px) 0 clamp(36px, 5vw, 64px); }
.sw-hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .sw-hero__inner { grid-template-columns: 1fr; } }
.sw-hero .sw-eyebrow { color: rgba(0,0,0,.7); margin-bottom: 18px; }
.sw-hero h1 {
  font-family: var(--bae6-font-display); font-weight: 900; color: #000;
  font-size: clamp(38px, 6.2vw, 88px); letter-spacing: -.04em; line-height: .92;
  text-transform: lowercase; margin: 0;
}
.sw-hero__img { aspect-ratio: 1/1; overflow: hidden; background: rgba(0,0,0,.06); }
.sw-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-hero__tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.sw-tag {
  font-family: var(--font-sticker); font-weight: 700; font-size: 18px; line-height: 1;
  background: #fff; color: #000; padding: 9px 16px; border-radius: 40px; box-shadow: 2px 2px 0 #000; text-decoration: none;
  transition: transform .3s var(--ease-spring, cubic-bezier(.34,1.56,.64,1));
}
.sw-tag:hover { transform: rotate(-2deg) scale(1.05); color: #000; }
.sw-tag--ink { background: #000; color: #fff; box-shadow: 2px 2px 0 #fff; }
.sw-tag--ink:hover { color: #fff; }

.sw-prose { max-width: 680px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0; }
.sw-prose p, .sw-prose li { font-family: var(--bae6-font-body); font-size: 17px; line-height: 1.7; color: #111; }
.sw-prose p { margin: 0 0 1.35em; }
.sw-prose p:first-of-type { font-size: 19px; line-height: 1.6; color: #000; }
.sw-prose h2 { font-family: var(--bae6-font-display); font-weight: 800; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.025em; line-height: 1.05; margin: 2.2em 0 .7em; }
.sw-prose h3 { font-family: var(--bae6-font-display); font-weight: 700; font-size: 22px; letter-spacing: -.015em; margin: 1.8em 0 .6em; }
.sw-prose a { color: #000; border-bottom: 1px solid #000; }
.sw-prose a:hover { color: var(--bae6-primary); border-color: var(--bae6-primary); }
.sw-prose img, .sw-prose svg { max-width: 100%; height: auto; display: block; margin: 2em 0; }
.sw-prose figure { margin: 2em 0; }
.sw-prose blockquote {
  margin: 2em 0; padding: 20px 24px; background: var(--accent-paper); border-left: 4px solid #000;
  font-family: var(--bae6-font-display); font-weight: 600; font-size: 20px; line-height: 1.35;
}
.sw-prose blockquote p { margin: 0; font: inherit; }
.sw-prose ul, .sw-prose ol { padding-left: 1.3em; margin: 0 0 1.35em; }
.sw-prose hr { border: 0; border-top: 1px solid var(--bae6-border); margin: 3em 0; }
.sw-prose .sw-hashtags { font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; color: rgba(0,0,0,.6); margin-top: 2.5em; }

/* trend tiles: flat accent squares for each trend named in the post */
.sw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2.5em 0 0; }
@media (max-width: 600px) { .sw-tiles { grid-template-columns: repeat(2, 1fr); } }
.sw-tile {
  position: relative; aspect-ratio: 1/1; background: var(--sw-acc, var(--accent-paper)); display: flex; align-items: flex-end;
  padding: 14px; text-decoration: none; color: #000; overflow: hidden;
}
.sw-tile span { font-family: var(--bae6-font-display); font-weight: 800; font-size: clamp(16px, 2vw, 22px); letter-spacing: -.02em; line-height: 1; text-transform: lowercase; background: #fff; padding: 7px 10px; }
.sw-tile::after { content: "✦"; position: absolute; top: 10px; right: 12px; font-family: var(--font-mono); font-size: 20px; opacity: .55; }
.sw-tile:hover span { background: #000; color: #fff; }

/* wear it: products tagged with the post's trend(s) (shop's own card) */
.sw-wear { background: var(--accent-paper); }
.sw-wear .products { margin-top: 8px; }
.sw-empty {
  background: #fff; border: 1px dashed rgba(0,0,0,.3); padding: 36px; text-align: center;
  font-family: var(--bae6-font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; text-transform: lowercase;
}
.sw-empty small { display: block; font: 400 14px/1.5 var(--bae6-font-body); color: rgba(0,0,0,.6); text-transform: none; margin-top: 8px; }

/* ---------- trend archive hero ---------- */
.sw-trend-hero { background: var(--sw-acc, var(--accent-mango)); padding: clamp(48px, 7vw, 96px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; }
.sw-trend-hero .sw-eyebrow { color: rgba(0,0,0,.7); margin-bottom: 14px; }
.sw-trend-hero h1 {
  font-family: var(--bae6-font-display); font-weight: 900; font-size: clamp(52px, 12vw, 160px);
  letter-spacing: -.045em; line-height: .88; text-transform: lowercase; margin: 0; color: #000; max-width: 12ch;
}
.sw-trend-hero p { font-size: 16px; color: rgba(0,0,0,.72); margin: 20px 0 0; max-width: 52ch; }
.sw-trend-hero .star { position: absolute; right: 6%; top: 18%; font-family: var(--font-mono); font-size: clamp(60px, 10vw, 140px); font-weight: 300; color: rgba(0,0,0,.18); transform: rotate(14deg); pointer-events: none; }

/* ---------- prev / next + pagination ---------- */
.sw-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 32px 0; border-top: 1px solid var(--bae6-border); }
.sw-pager { display: flex; justify-content: center; gap: 12px; margin-top: 40px; }

/* ---------- global fix: our header/footer, no Astra padding leaks ---------- */
body.sidewalk #bae6-main { padding: 0; }
body.sidewalk .ast-container { max-width: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  .sw-pill, .sw-tag, .sw-card__img img, .sw-feature__img img { transition: none; transform: none !important; }
}
