/* About me page — matches the Figma frame "About me" (page "Alt version").
   Load AFTER thinking.css and sheets.css. */

.cols a[aria-current="page"]{text-decoration:underline}

/* ---------- stage: the Figma frame is 1671 wide; the keepsakes are placed as a share of that width ---------- */
.ab-stage{position:relative;max-width:1671px;margin:0 auto;padding:153px var(--gutter) 157px;overflow:clip;
  display:flex;flex-direction:column;align-items:center;gap:164px;text-align:center}

/* ---------- text ---------- */
.ab-block{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:60px;width:min(774px,100%)}
.ab-block h1,.ab-block h2{font:400 clamp(28px,2.8vw,40px)/1.36 var(--serif)}
.ab-copy{width:min(550px,100%);font-size:20px;line-height:1.2;display:flex;flex-direction:column;gap:24px}
.ab-copy a{text-decoration:none;white-space:nowrap}
.ab-copy a:hover{text-decoration:underline dotted;text-underline-position:from-font}
.ab-arrow{font-family:'Inter',sans-serif;margin-left:2px}

/* ---------- keepsakes ---------- */
/* --x/--y/--w/--h: the item's box in the 1671px Figma frame (y measured from below the 72px nav) */
.ab-items{position:absolute;inset:0;pointer-events:none}
.ab-item{position:absolute;display:grid;place-items:center;
  left:calc(var(--x) * 100% / 1671);top:calc(var(--y) * 1px);width:calc(var(--w) * 100% / 1671);aspect-ratio:var(--w) / var(--h)}
.ab-item>img{width:100%;height:100%;object-fit:cover}
.ab-rot{display:block;position:relative;width:var(--iw);height:var(--ih);transform:rotate(var(--r))}
.ab-rot>img{width:100%;height:100%;object-fit:cover}
.ab-crop{overflow:hidden}
.ab-crop>img{position:absolute;max-width:none}

.ab-clippy {--x:93;   --y:99;  --w:131.393;--h:213.211}
.ab-clippy .ab-rot{--iw:75.66%;--ih:93.51%;--r:9.64deg}
.ab-nokia  {--x:134.07;--y:815.72;--w:230.092;--h:272.441}
.ab-nokia .ab-rot{--iw:84.61%;--ih:90.09%;--r:8.84deg}
.ab-phone  {--x:1375.29;--y:7.05;--w:380.423;--h:353.905}
.ab-phone .ab-rot{--iw:70.19%;--ih:87.59%;--r:-70.85deg}
.ab-phone .ab-crop>img{left:-34.41%;top:-11.59%;width:194.58%;height:111.59%}
.ab-encarta{--x:184;  --y:436; --w:199;--h:174}
.ab-dress  {--x:33;   --y:586; --w:141;--h:202}
.ab-book   {--x:1235; --y:816; --w:275.417;--h:236.335}
.ab-book .ab-rot{--iw:85.89%;--ih:76.71%;--r:15deg}
.ab-book .ab-crop>img{left:-14.02%;top:-16.46%;width:139.25%;height:127.74%}
.ab-imac   {--x:1320; --y:452; --w:237;--h:158}
.ab-cat    {--x:1510; --y:654; --w:167;--h:204}
.ab-cat>img{transform:scaleX(-1)}

/* the keepsakes fade in a little slower and softer than the text */
.js .ab-item[data-reveal]{transition-duration:1.4s}

/* not enough room beside the text: drop the keepsakes */
@media (max-width:1100px){
  .ab-items{display:none}
  .ab-stage{padding-top:clamp(56px,10vw,120px);padding-bottom:clamp(72px,10vw,157px);gap:clamp(80px,12vw,164px)}
}
@media (max-width:640px){
  .ab-block{gap:32px}
  .ab-copy{font-size:18px}
}
