/* Joseph's biography: a hand-lettered poster in the portfolio's color world. */
.nav .bio-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: 500 10px/1 "DM Mono", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav .bio-link:hover { color: var(--yellow); }
.contact .bio-link {
  position: relative;
  margin: 0 0 34px;
  padding: 9px 23px 12px;
  border: 2px solid var(--ink);
  background: #fff51e;
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font: 400 30px/1.15 "Permanent Marker", "Segoe Print", cursive;
  letter-spacing: -.03em;
  transform: rotate(-4deg);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.contact .bio-link:hover { transform: rotate(-2deg) translateY(-2px); box-shadow: 6px 7px 0 var(--ink); }
.bio-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
/* About: editorial typography, a real portrait, and marker accents. */
.bio-modal {
  --about-yellow: #fff122;
  --about-pink: #ee007a;
  position: fixed;
  inset: 0;
  width: min(1160px, calc(100vw - 40px));
  max-width: none;
  height: fit-content;
  max-height: calc(100svh - 40px);
  margin: auto;
  padding: 0;
  border: 2px solid var(--ink);
  background: var(--about-yellow);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--about-pink);
  overflow: hidden;
}
.bio-modal::backdrop { background: rgba(9, 9, 9, .87); }
.bio-shell { position: relative; }
.bio-controls { position: relative; height: 64px; background: var(--about-yellow); }
.bio-scroll {
  max-height: calc(100svh - 108px);
  padding: 12px clamp(26px, 4.2vw, 52px) 42px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--ink) var(--about-yellow);
  scrollbar-width: thin;
}
.bio-scroll:focus { outline: none; }
.bio-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: -5px; }
.bio-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--about-yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 400 33px/1 Manrope, Arial, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
.bio-close:hover { background: var(--ink); color: var(--about-yellow); }
.bio-close:focus-visible { outline: 3px solid var(--about-pink); outline-offset: 4px; }
.bio-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 34px; padding-right: 28px; }
.bio-title { position: relative; flex: 0 1 auto; margin: 0; font: 400 clamp(76px, 10.4vw, 132px)/1.05 "Permanent Marker", "Segoe Print", cursive; letter-spacing: -.07em; transform: rotate(-4deg); }
.bio-title::after { content: ''; position: absolute; left: 3%; bottom: -5px; width: 94%; height: 9px; background: var(--about-pink); clip-path: polygon(0 46%, 99% 0, 96% 69%, 5% 100%); transform: rotate(1deg); }
.bio-name { margin: 0 0 8px; color: var(--about-pink); font: 400 clamp(25px, 3.6vw, 41px)/1.3 "Permanent Marker", "Segoe Print", cursive; letter-spacing: -.045em; transform: rotate(-2deg); }
.bio-editorial { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 4vw, 54px); align-items: start; }
.bio-visual { position: relative; padding: 10px 9px 14px; }
.bio-portrait { position: relative; width: 100%; aspect-ratio: .69; margin: 0; border: 5px solid var(--cream); background: #fcf022; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; transform: rotate(-2deg); }
.bio-portrait img { position: absolute; left: -25%; bottom: 0; width: 150%; max-width: none; height: auto; object-fit: initial; }
.bio-tape { position: absolute; z-index: 2; top: 1px; width: 80px; height: 23px; background: rgba(255, 248, 236, .86); pointer-events: none; }
.bio-tape-left { left: -1px; transform: rotate(-20deg); }
.bio-tape-right { right: 1px; transform: rotate(21deg); }
.bio-scribble { position: absolute; z-index: 2; left: -8px; bottom: -11px; width: 89px; height: 59px; color: var(--ink); pointer-events: none; }
.bio-marker { position: absolute; right: -5px; top: 59px; width: 36px; height: 67px; color: var(--about-pink); pointer-events: none; }
.bio-portrait-caption { position: relative; z-index: 2; display: block; width: max-content; max-width: 100%; margin: 12px auto 0; padding: 7px 10px; background: var(--cream); color: var(--ink); font: 500 10px/1.5 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; transform: rotate(2deg); }
.bio-curious { position: relative; width: max-content; max-width: 100%; margin: 22px auto 0; color: var(--about-pink); font: 400 clamp(24px, 3vw, 33px)/1.4 "Permanent Marker", "Segoe Print", cursive; letter-spacing: -.04em; transform: rotate(-4deg); }
.bio-curious::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: currentColor; border-radius: 60% 40% 70% 30%; transform: rotate(-1deg); }
.contact .contact-identity, .contact .contact-location { text-transform: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-top: 25px; }
.contact .contact-links a { margin-top: 0; border-bottom-width: 1px; font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.bio-copy { min-width: 0; padding-top: 7px; }
.bio-copy p { margin: 0 0 23px; font: 400 clamp(17px, 1.6vw, 19px)/1.7 Manrope, Arial, sans-serif; letter-spacing: -.012em; overflow-wrap: break-word; }
.bio-copy p:last-child { margin-bottom: 0; }
.bio-copy .bio-lead { font-size: clamp(19px, 1.9vw, 22px); font-weight: 600; line-height: 1.65; letter-spacing: -.025em; }
.bio-fun { position: relative; margin: 33px 0 0; padding-top: 25px; border-top: 2px solid var(--ink); color: var(--about-pink); font: 400 clamp(28px, 3vw, 37px)/1.38 "Permanent Marker", "Segoe Print", cursive; letter-spacing: -.035em; }
.bio-fun strong { font-weight: 400; }
html.bio-open { overflow: hidden; }
@media (max-width: 700px) {
  .head h2 { font-size: clamp(48px, 15vw, 60px); }
  .bar { align-items: flex-start; gap: 10px; }
  .mark { flex: 0 0 96px; }
  .nav { min-width: 0; max-width: calc(100% - 106px); flex-wrap: wrap; justify-content: flex-end; gap: 9px 7px; overflow: visible; }
  .nav a, .nav .bio-link { flex-shrink: 0; white-space: nowrap; }
  .nav .bio-link { font-size: 9px; flex-shrink: 0; }
  .bio-modal { width: calc(100vw - 24px); max-height: calc(100svh - 24px); box-shadow: 4px 4px 0 var(--about-pink); }
  .bio-controls { height: 58px; }
  .bio-scroll { max-height: calc(100svh - 86px); padding: 7px 23px 34px; }
  .bio-close { top: 10px; right: 10px; width: 46px; height: 46px; }
  .bio-heading { display: block; margin-bottom: 25px; padding-right: 0; }
  .bio-title { width: max-content; max-width: 100%; margin-top: 5px; font-size: clamp(55px, 17vw, 92px); }
  .bio-name { margin: 20px 0 0; font-size: clamp(25px, 6.8vw, 34px); line-height: 1.35; }
  .bio-editorial { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .bio-visual { width: min(100%, 350px); justify-self: center; padding: 10px 10px 15px; }
  .bio-portrait { aspect-ratio: .74; }
  .bio-portrait img { width: 135%; left: -17.5%; }
  .bio-tape { width: 65px; height: 20px; }
  .bio-scribble { left: -2px; bottom: -8px; width: 73px; height: 48px; }
  .bio-marker { right: 1px; width: 30px; height: 55px; }
  .bio-portrait-caption { font-size: 9px; padding: 6px 9px; margin-top: 13px; }
  .bio-curious { font-size: clamp(23px, 6.5vw, 29px); margin-top: 22px; }
  .bio-copy { padding-top: 0; }
  .bio-copy p { font-size: 17px; line-height: 1.75; margin-bottom: 24px; }
  .bio-copy .bio-lead { font-size: 19px; line-height: 1.65; }
  .bio-fun { margin-top: 28px; padding-top: 24px; font-size: 26px; line-height: 1.45; }
}
@media (max-width: 360px) {
  .bio-scroll { padding-right: 20px; padding-left: 20px; }
  .bio-title { font-size: 53px; }
  .bio-name { font-size: 25px; }
  .bio-copy p { font-size: 16px; }
  .bio-copy .bio-lead { font-size: 18px; }
  .bio-fun { font-size: 24px; }
}
