/* ---------- /work page ---------- */

.wp { --text: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif; font-size: 18px; }

.wp__bar {
  position: relative;
  z-index: 30;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.wp__barend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.wp__main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 16px 70px;
  display: grid;
  gap: 38px;
  font-family: var(--text);
  line-height: 1.5;
}

.wp__main[aria-busy] { min-height: 70vh; }

/* hero */

.wp__hero {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 36px 32px 28px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 8px 8px 0 var(--ink);
}

.wp__hero .tape { top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg); }

.wp__title {
  font-family: var(--fat);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 96px);
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 4px;
}

.wp__title span {
  display: inline-block;
  color: var(--c);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 4px 5px 0 var(--ink);
  transform: rotate(var(--r));
}

.wp__title .sp { width: .3em; }

.wp__role { font-family: var(--hand); font-weight: 700; font-size: 25px; line-height: 1.2; color: var(--grape); }

.wp__summary { font-size: 19px; line-height: 1.6; max-width: 64ch; }

.wp__highlights {
  list-style: none;
  padding: 0;
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
}

.wp__highlights li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  align-content: start;
  overflow-wrap: break-word;
  padding: 12px 14px;
  background: var(--tint);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.wp__highlights .ic { width: 34px; height: 34px; }
.wp__highlights b { font-family: var(--hand); font-size: 21px; line-height: 1.1; }
.wp__highlights span { grid-column: 1 / -1; font-size: 15.5px; line-height: 1.4; }

/* sticky section chips */

.wp__nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  margin: -14px -16px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.wp__nav::-webkit-scrollbar { display: none; }

.wp__chip {
  flex-shrink: 0;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  padding: 2px 14px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}

.wp__chip:hover { background: var(--sun); }

/* sections */

.wp__sec { display: grid; gap: 16px; scroll-margin-top: 64px; }

.wp__secbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.wp__h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fat);
  font-weight: 400;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
}

.wp__h2 .ic { width: 1em; height: 1em; }

.wp__all {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 17px;
  padding: 2px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}

.wp__all:active { transform: translate(2px, 2px); box-shadow: none; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* experience timeline */

.xp-list { position: relative; display: grid; gap: 16px; padding-inline-start: 30px; }

.xp-list::before {
  content: "";
  position: absolute;
  inset-inline-start: 9px;
  top: 14px;
  bottom: 14px;
  width: 4px;
  background: repeating-linear-gradient(var(--ink) 0 8px, transparent 8px 14px);
}

.xp {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.xp::before {
  content: "";
  position: absolute;
  inset-inline-start: -33px; /* measured from inside the card's 3px border, so the 22px dot centres on the dashed line */
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tint);
  border: 3px solid var(--ink);
}

.xp > summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 26px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
}

.xp__ic, .pj__ic {
  display: grid;
  place-items: center;
  background: var(--tint);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}

.xp__ic { width: 54px; height: 54px; }
.xp__ic .ic { width: 32px; height: 32px; }

.xp__head { display: grid; gap: 3px; min-width: 0; }
.xp__title { font-family: var(--fat); font-weight: 400; font-size: 22px; line-height: 1.15; }
.xp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.xp__where { font-family: var(--hand); font-weight: 700; font-size: 19px; line-height: 1.1; opacity: .8; }

.xp__when {
  font-family: var(--pixel); font-variant-ligatures: none;
  font-size: 20px;
  line-height: 1.1;
  padding: 1px 9px;
  color: var(--sun);
  background: var(--ink);
  border-radius: 7px;
  white-space: nowrap;
}

.xp__sum { font-size: 15.5px; opacity: .8; }

.xp__chev, .pj__chev { width: 26px; height: 26px; transition: transform .2s; }
details[open] > summary .xp__chev, details[open] > summary .pj__chev { transform: rotate(180deg); }

.xp__body { margin: 0 20px; padding: 14px 0 20px; border-top: 2.5px dashed rgba(36, 26, 58, .3); border-top-color: color-mix(in srgb, var(--ink) 30%, transparent); }

/* markdown */

.md { display: grid; gap: 10px; font-size: 17px; line-height: 1.6; }
.md p { max-width: 72ch; }

.md h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 0;
  font-family: var(--hand);
  font-size: 22px;
  line-height: 1.1;
  color: var(--grape);
}

.md h4:first-child { margin-top: 0; }

.md h4::before {
  content: "";
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  transform: rotate(45deg);
}

.md ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.md li { position: relative; padding-inline-start: 24px; }

.md li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: .55em;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.md strong { font-weight: 700; background: linear-gradient(transparent 62%, rgba(255, 216, 74, .75) 0); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--sun) 75%, transparent) 0); }
.md code { font-family: var(--pixel); font-variant-ligatures: none; font-size: 1.15em; padding: 0 5px; background: #efe8ff; border-radius: 5px; }
.md a { color: var(--grape); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* projects */

.masonry { display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: 14px; align-items: start; }
.masonry > .lane { display: grid; gap: 14px; align-content: start; min-width: 0; }

.pj {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.pj > summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
}

.pj__ic { width: 42px; height: 42px; border-radius: 12px; }
.pj__ic .ic { width: 26px; height: 26px; }
.pj__head { display: grid; min-width: 0; }
.pj__title { font-family: var(--fat); font-weight: 400; font-size: 18px; line-height: 1.15; }
.pj__kind { font-family: var(--hand); font-weight: 700; font-size: 17px; opacity: .75; }
.pj__body { padding: 0 16px 14px; }
.pj__body .md { font-size: 16px; }

/* bug bounty */

.bb__blurb { font-size: 18px; max-width: 70ch; }
.bb { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }

.bb li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  background: var(--tint);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.bb li .ic { width: 30px; height: 30px; }
.bb b { display: block; font-size: 16px; line-height: 1.3; }
.bb small { display: block; font-family: var(--hand); font-weight: 700; font-size: 16px; opacity: .75; }

/* skills */

.sk, .ct, .lang {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}

.sk { display: grid; align-content: start; gap: 12px; padding: 14px 16px 16px; }

.sk h3, .ct h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--fat);
  font-weight: 400;
  font-size: 21px;
}

.sk h3 .ic, .ct h3 .ic { width: 30px; height: 30px; }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }

.chips li {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  padding: 3px 11px;
  background: var(--tint);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

/* certifications */

.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; align-items: start; }
.ct { display: grid; gap: 12px; padding: 16px 18px; }
.ct ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ct li { display: flex; align-items: flex-start; gap: 10px; font-size: 17px; line-height: 1.4; }
.ct li .ic { width: 22px; height: 22px; margin-top: 1px; }

/* languages */

.lang-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.lang { display: grid; gap: 4px; padding: 14px 16px 16px; background: var(--tint); }
.lang b { font-family: var(--fat); font-weight: 400; font-size: 24px; line-height: 1.1; }
.lang span { font-family: var(--hand); font-weight: 700; font-size: 19px; }

.lang__bar {
  display: block;
  height: 14px;
  margin-top: 6px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}

.lang__bar::after {
  content: "";
  display: block;
  width: var(--v);
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--lime) 0 8px, #7fd42a 8px 10px);
  border-right: 2.5px solid var(--ink);
}

/* outro */

.wp__outro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 24px;
  background: #ffe3f0;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

.wp__outro p { font-family: var(--hand); font-weight: 700; font-size: 22px; line-height: 1.25; }

@media (max-width: 640px) {
  .wp__hero { padding: 30px 18px 20px; box-shadow: 5px 5px 0 var(--ink); }
  .wp__summary { font-size: 17.5px; }
  .xp-list { padding-inline-start: 0; }
  .xp-list::before, .xp::before { display: none; }
  .xp > summary { grid-template-columns: 44px minmax(0, 1fr) 22px; gap: 12px; padding: 14px; }
  .xp__ic { width: 44px; height: 44px; border-radius: 12px; }
  .xp__ic .ic { width: 26px; height: 26px; }
  .xp__title { font-size: 19px; }
  .xp__body { margin: 0 14px; }
  .md { font-size: 16.5px; }
}
