/* carlomigueldy.dev/about — the static, crawlable profile. Same ink and paper as the home page. */

@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(fonts/archivo-var.woff2) format('woff2-variations'), url(fonts/archivo-var.woff2) format('woff2'); }
@font-face { font-family: 'Archivo Black'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/archivo-black.woff2) format('woff2'); }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-display: swap; font-weight: 100 800; src: url(fonts/martian-mono-var.woff2) format('woff2-variations'), url(fonts/martian-mono-var.woff2) format('woff2'); }

:root {
  --paper: #F0F1F5;
  --ink: #0D1015;
  --mute: #555B66;
  --hlb: rgba(13, 16, 21, .14);
  --hatch: repeating-linear-gradient(45deg, var(--ink) 0 2px, transparent 2px 7px);
  --mono: 'Martian Mono', ui-monospace, monospace;
  --brut: 'Archivo', system-ui, sans-serif;
  --gut: 40px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  /* Body text matches the home page's chat bubble: Archivo at 125% width. */
  font: 500 15px/1.65 var(--brut);
  font-stretch: 125%;
  letter-spacing: -.005em;
  cursor: url(assets/cursor-default.svg) 3 2, auto;
  overflow-x: hidden;
}
a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: url(assets/cursor-link.svg) 15 15, pointer; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skipl { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 12px; background: var(--ink); color: var(--paper); font: 700 12px/1 var(--mono); text-decoration: none; }
.skipl:focus { top: 12px; }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 18px max(var(--gut), env(safe-area-inset-right)) 14px max(var(--gut), env(safe-area-inset-left));
  background: var(--paper);
  border-bottom: 1px solid var(--hlb);
}
.name { display: inline-flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--ink); font: 400 20px/1 'Archivo Black', sans-serif; letter-spacing: -.01em; text-transform: uppercase; white-space: nowrap; }
.name::after { content: ""; display: block; height: 7px; width: 34%; background-image: var(--hatch); box-shadow: inset 0 0 0 1.5px var(--ink); transition: width .35s cubic-bezier(.2, .8, .2, 1); }
.name:hover::after { width: 100%; }
.top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { padding: 7px 11px; border: 1px solid var(--hlb); border-radius: 999px; font: 500 11px/1 var(--mono); color: var(--mute); text-decoration: none; }
.top nav a:hover { color: var(--ink); border-color: var(--ink); }

/* ---------- page ---------- */
main { max-width: 960px; margin: 0 auto; padding: 56px var(--gut) 24px; box-sizing: border-box; }
section { margin: 0 0 64px; scroll-margin-top: 90px; }

.hero { display: flex; align-items: center; gap: 36px; margin-bottom: 36px; }
.pfp { width: 148px; height: 148px; flex: none; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); box-shadow: 6px 6px 0 0 var(--hlb); }
.kick { margin: 0 0 10px; font: 700 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
h1 { margin: 0; font: 400 clamp(34px, 6vw, 60px)/.98 'Archivo Black', sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
h1 .role { display: block; margin-top: 12px; font: 800 clamp(16px, 2.2vw, 21px)/1.2 var(--brut); font-stretch: 125%; letter-spacing: 0; text-transform: none; }
.lede { margin: 16px 0 0; max-width: 40em; font-size: 17.5px; font-weight: 600; line-height: 1.5; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 72px; border: 1.5px solid var(--ink); border-radius: 12px; box-shadow: 8px 8px 0 0 var(--hlb); overflow: hidden; }
.facts div { padding: 14px 16px; border-left: 1px solid var(--hlb); }
.facts div:first-child { border-left: 0; }
.facts dt { margin: 0 0 6px; font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.45; }

h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; padding-bottom: 12px; font: 400 22px/1.1 'Archivo Black', sans-serif; text-transform: uppercase; letter-spacing: -.005em; border-bottom: 2px solid var(--ink); }
h2 span { font: 700 11px/1 var(--mono); color: var(--mute); letter-spacing: .08em; }
h3 { margin: 0 0 8px; font: 800 17px/1.3 var(--brut); font-stretch: 112%; }

.list { margin: 0; padding: 0; list-style: none; }
.list li, .job li { position: relative; padding-left: 20px; margin: 0 0 10px; }
.list li::before, .job li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; background-image: var(--hatch); background-size: 7px 7px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.list b { font-weight: 750; }

/* ---------- experience ---------- */
.job { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--hlb); }
.job:first-of-type { border-top: 0; padding-top: 4px; }
.when { margin: 3px 0 0; font: 500 11.5px/1.5 var(--mono); color: var(--mute); }
.at { display: block; margin-top: 2px; font-weight: 600; font-stretch: 100%; color: var(--mute); }
.job ul { margin: 0; padding: 0; list-style: none; }
.job li { font-size: 15px; }

/* ---------- products ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { padding: 16px 18px 6px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); box-shadow: 6px 6px 0 0 var(--hlb); }
.card .ctx { margin: 0 0 8px; font: 500 10.5px/1.5 var(--mono); color: var(--mute); overflow-wrap: anywhere; }
.card .ctx a { color: var(--mute); }
.card .ctx a:hover { color: var(--ink); }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { font-size: 14.5px; margin: 0 0 12px; }

/* ---------- skills ---------- */
.skills { margin: 0; }
.skills div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; padding: 12px 0; border-top: 1px solid var(--hlb); }
.skills div:first-child { border-top: 0; padding-top: 0; }
.skills dt { font: 700 11px/1.7 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.skills dd { margin: 0; font-size: 15px; }

/* ---------- contact ---------- */
.avail { margin: 0 0 16px; font-size: 16.5px; font-weight: 600; max-width: 36em; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.pill { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); text-decoration: none; font: 700 13px/1 var(--brut); font-stretch: 125%; overflow-wrap: anywhere; }
.pill:hover, .pill.solid { background: var(--ink); color: var(--paper); }
.pill.solid:hover { background: var(--paper); color: var(--ink); }

.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 960px; margin: 0 auto; padding: 22px var(--gut) calc(40px + env(safe-area-inset-bottom)); box-sizing: border-box; border-top: 1px solid var(--hlb); font: 500 11px/1.5 var(--mono); color: var(--mute); }
.foot a { color: var(--ink); }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--hlb); }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  .top { position: static; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 14px; padding-bottom: 10px; }
  .top nav { justify-content: flex-start; }
  .name { font-size: 17px; }
  main { padding-top: 32px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pfp { width: 104px; height: 104px; }
  .lede { font-size: 16.5px; }
  .facts { grid-template-columns: minmax(0, 1fr); margin-bottom: 52px; }
  .facts div { border-left: 0; }
  .facts div + div { border-top: 1px solid var(--hlb); }
  section { margin-bottom: 52px; }
  .job, .skills div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  h2 { font-size: 19px; }
}

/* Arriving from the home page's build: the preview's portrait morphs into this one. */
@view-transition { navigation: auto; }
.pfp { view-transition-name: pfp; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
