/* Skills shelves in "The Approach" section. The section is written into index.html
   after the React root so crawlers read every skill; substack.js moves it into the
   Approach box (.framer-1jkumsn on tablet and desktop, .framer-1b641ad on phones) once
   Framer has hydrated. Skills also live in knowsAbout in index.html and in llms.txt,
   so keep the three lists in step.
   Phone: four shelves stacked under the paragraph.
   Tablet: two columns of shelves under the paragraph.
   Desktop (1440 and up): one column of shelves either side of the paragraph. */

/* Framer's own skill tags are hidden; only the paragraph and the shelves remain. */
.framer-1jkumsn > :not(.framer-13zirrn-container):not(#sk),
.framer-1b641ad > :not(.framer-1t5qqby-container):not(#sk) { display: none !important; }

#sk {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  font-family: Inter, "Inter Placeholder", sans-serif;
}
.sk-col { display: contents; }
.sk-store { order: 1; }
.sk-find { order: 2; }
.sk-keep { order: 3; }
.sk-plan { order: 4; }

.sk-grp { display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Shelf name between two short gradient rules, like the site's "I'm on Substack" row. */
.sk-lab {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  font-family: "Instrument Serif", "Instrument Serif Placeholder", serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}
.sk-lab::before,
.sk-lab::after {
  content: "";
  flex: 0 1 48px;
  min-width: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%);
}
.sk-lab::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.35) 100%); }

/* Tags are inline boxes in a centred line so text-wrap: balance evens out the rows. The
   tag order in index.html was chosen so no shelf ends on a lone tag at the widths these
   columns take (272 to 420px); recheck that after adding or renaming a tag. */
.sk-list {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  text-wrap: balance;
  font-size: 0;
  line-height: 42px;
}
.sk-list li {
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin: 0 3px;
  padding: 0 13px;
  vertical-align: middle;
  box-sizing: border-box;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  /* The layered shadow Framer gives the original tags. */
  box-shadow:
    0.47px 0.47px 0.67px -0.75px rgba(0, 0, 0, 0.18),
    1.29px 1.29px 1.83px -1.5px rgba(0, 0, 0, 0.18),
    2.84px 2.84px 4.01px -2.25px rgba(0, 0, 0, 0.17),
    6.29px 6.29px 8.9px -3px rgba(0, 0, 0, 0.14),
    16px 16px 22.63px -3.75px rgba(0, 0, 0, 0.06);
}
/* Each tag leans a little, on a seven-step cycle with one near-flat tag and pairs that
   lean the same way, so rows don't zigzag. Two shelves start three steps in. */
.sk-list li { transform: rotate(var(--r, 0deg)) translateY(var(--y, 0px)); }
.sk-list li:nth-child(7n + 1) { --r: -3deg; --y: 0px; }
.sk-list li:nth-child(7n + 2) { --r: -1deg; --y: -1px; }
.sk-list li:nth-child(7n + 3) { --r: 2deg; --y: 2px; }
.sk-list li:nth-child(7n + 4) { --r: 0.5deg; --y: 0px; }
.sk-list li:nth-child(7n + 5) { --r: 3deg; --y: 0px; }
.sk-list li:nth-child(7n + 6) { --r: -2deg; --y: 1px; }
.sk-list li:nth-child(7n + 7) { --r: 1deg; --y: -1px; }
.sk-find li:nth-child(7n + 1), .sk-plan li:nth-child(7n + 1) { --r: 0.5deg; --y: 0px; }
.sk-find li:nth-child(7n + 2), .sk-plan li:nth-child(7n + 2) { --r: 3deg; --y: 0px; }
.sk-find li:nth-child(7n + 3), .sk-plan li:nth-child(7n + 3) { --r: -2deg; --y: 1px; }
.sk-find li:nth-child(7n + 4), .sk-plan li:nth-child(7n + 4) { --r: 1deg; --y: -1px; }
.sk-find li:nth-child(7n + 5), .sk-plan li:nth-child(7n + 5) { --r: -3deg; --y: 0px; }
.sk-find li:nth-child(7n + 6), .sk-plan li:nth-child(7n + 6) { --r: -1deg; --y: -1px; }
.sk-find li:nth-child(7n + 7), .sk-plan li:nth-child(7n + 7) { --r: 2deg; --y: 2px; }

/* Very narrow phones: slimmer tags so two still fit on a row. */
@media (max-width: 359.98px) {
  .sk-list li { padding: 0 10px; }
}

/* Phone: the box held Framer's scattered tags at a fixed height; let it fit the shelves. */
@media (max-width: 809.98px) {
  .framer-1b641ad { height: auto !important; gap: 40px !important; }
  /* Framer orders the paragraph at 7 in this box; keep the shelves after it. */
  #sk { order: 99; }
}

/* Tablet: a 2x2 grid under the paragraph, so the second-row labels line up. Each row
   pairs shelves that wrap to the same number of tag rows (store with new customers,
   repeat customers with plan), so neither column leaves a hole above its next label. */
@media (min-width: 810px) and (max-width: 1439.98px) {
  .framer-1jkumsn { height: auto !important; gap: 48px !important; }
  #sk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 40px;
    align-items: start;
    max-width: none;
    margin: 0;
    /* Centred in the box, so it can spread across the box's 96px side padding. */
    width: min(832px, calc(100% + 192px));
  }
  .sk-store { grid-area: 1 / 1; }
  .sk-find { grid-area: 1 / 2; }
  .sk-keep { grid-area: 2 / 1; }
  .sk-plan { grid-area: 2 / 2; }
}

/* Desktop: one grid centred on the paragraph, a 300px column of shelves each side of
   it (24px clear of the paragraph's 700px), with shared rows so the labels line up. */
@media (min-width: 1440px) {
  #sk {
    position: absolute;
    top: 50%;
    left: -204px;
    width: 1348px;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 28px 0;
    align-items: start;
    transform: translateY(-50%);
  }
  .sk-store { grid-area: 1 / 1; }
  .sk-find { grid-area: 1 / 3; }
  .sk-keep { grid-area: 2 / 1; }
  .sk-plan { grid-area: 2 / 3; }
}
